Message ID | 1507502482-22518-2-git-send-email-pure.logic@nexus-software.ie (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3136560364 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 8 Oct 2017 22:42:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2377628631 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 8 Oct 2017 22:42:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 183FD28639; Sun, 8 Oct 2017 22:42:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B94B328631 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 8 Oct 2017 22:42:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KvhlKg4wWeD6IOuUBzi2SkMeIDlDWI6JhvOmrSXvlKs=; b=GanL05s159j2o1YVSHi/bCJRl3 6FGYc9kKC2h7EahFfWUqgsZZEGNv0pHqW4h+/qb56O7w8PDOh4LLncrkWF6eA2A6h64Df7kZSmTwI HaPCbXeR9Sd5HLFQ18WDb/1fY2/yWhQuMT1PMDN6gBdLqkTV686ivcYR8WD9kXVOd/omk2tAX71Ra ZLEkOK6rOEnxvMGOYFzrV4dPJZSm+S+D6ICFgsiHDqnfKEXtXjVTawwasfy4pC4+4foOPklFCaK8p 0O7VvhmFizQvYXMaAD8w74z9j6GKj1V8QJBKmw9xN49XeLUON6/Rg41M6IM2Rsg7CoCJq0X7O90LI AyV2qQnw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e1KHJ-0004UF-Se; Sun, 08 Oct 2017 22:42:33 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1KGZ-0003k0-GX for linux-arm-kernel@lists.infradead.org; Sun, 08 Oct 2017 22:41:52 +0000 Received: by mail-wm0-x234.google.com with SMTP id l68so18916990wmd.5 for <linux-arm-kernel@lists.infradead.org>; Sun, 08 Oct 2017 15:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cbojEpAsgvWFHUfCdGi5BVM7MV/7cSd4lZ/8puF6TII=; b=FNdKgrdQJJTExzzs95anQSc9a2k7BTATU4PxbhwR9LEUrLA7vbX8lCmtKr43i5lG4I kqFD21qFtABi24s1/M9i7RjNcdmTlvTp66sCxHpGVU2OPJxAFqYIe/5MK61pntUPK424 N1lkp88eyGx3vc/kicauO77OH8IALryvytAGRgGi6+hgFFBIWFhuY3HqzjskzK/8jHzV HmyeJwGNKrlRALUfgYJtNbwI1hIgzdp5oaSY5dtT6bSXuXzt0rHrETiNiD5gXXC4CXOD JO2TulLBB4m7d2qpbRGffdCrJ6Ov/EdL7ca/2wUjP76Nw6jq9CIuT3CRQyNhMlVzRM7n 16Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cbojEpAsgvWFHUfCdGi5BVM7MV/7cSd4lZ/8puF6TII=; b=Od9b015sSPXonpJzWkrRJ6+YoshuvpoxBBVwtYZQJ9t4pOpELP24DQrwWVvdhKE3lt 9DtLbFF5M7or8k6cLO42ykzoC65/4cDy42/6sFmGT9Ad07Yav6DvcEFw6/2onQiYmrZd fR26L9Y9GtSXXg/j88ZNfjlwTCK44BUtQnID5/6pNEUa5sX8LB9G2LYXF2DujGLN5KqX nTEHyHCaawQ7urwjQA+UbWBMpNRbpmfrfcj93G+fjYPgFFYDPl8aQvOpB/js5Mn/Z09S mSjEsAGGmcAG+KsBo5xIzh9YuWMc8xP+xRsyzINLgS8dn3LdzzUHXxJt8fCZE1c3UfRO 0KJw== X-Gm-Message-State: AMCzsaVphsFgnXYjj8PH3j/O0PnuW2mxpmhz7TkrK+D5pwCCTww/9Pp3 sVRnEagw7IbSx/rxQ81Dabhabw== X-Google-Smtp-Source: AOwi7QDE1FsoDORfQiMN3tzWFtpg94TonTJ8Pqfs7w1qMOtTSuDhMrunopI6eog3iEMQq3UDEF1lMQ== X-Received: by 10.80.224.193 with SMTP id j1mr11562850edl.216.1507502485176; Sun, 08 Oct 2017 15:41:25 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id g45sm432909eda.19.2017.10.08.15.41.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Oct 2017 15:41:24 -0700 (PDT) From: Bryan O'Donoghue <pure.logic@nexus-software.ie> To: p.zabel@pengutronix.de, richard.leitner@skidata.com, srinivas.kandagatla@linaro.org, axel.lin@ingics.com, ping.bai@nxp.com, d.schultz@phytec.de, peng.fan@nxp.com, van.freenix@gmail.com Subject: [PATCH v2 1/7] nvmem: imx-ocotp: Restrict OTP write to IMX6 processors Date: Sun, 8 Oct 2017 23:41:16 +0100 Message-Id: <1507502482-22518-2-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507502482-22518-1-git-send-email-pure.logic@nexus-software.ie> References: <1507502482-22518-1-git-send-email-pure.logic@nexus-software.ie> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171008_154147_710820_FC65178C X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Bryan O'Donoghue <pure.logic@nexus-software.ie>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 193ca8f..17d160f 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -347,6 +347,8 @@ static int imx_ocotp_probe(struct platform_device *pdev) imx_ocotp_nvmem_config.dev = dev; imx_ocotp_nvmem_config.priv = priv; priv->config = &imx_ocotp_nvmem_config; + if (of_device_is_compatible(pdev->dev.of_node, "fsl,imx7d-ocotp")) + imx_ocotp_nvmem_config.read_only = true; nvmem = nvmem_register(&imx_ocotp_nvmem_config); if (IS_ERR(nvmem))