Message ID | 1508769290-2646-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 071E7601E8 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Oct 2017 14:43:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7E062881D for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Oct 2017 14:43:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC634288B2; Mon, 23 Oct 2017 14:43:32 +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 C80F32881D for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Oct 2017 14:43:31 +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=Pzg4HkirxgO65mzK5h3Jfv/TU+ KFF7DAer5WWYejS4Dxt5pnxTLVUPrJbiH6HcJhlL8oJcz/nA8h05IwFjvyZrMfAi+9eb1hkZtQOXi DMd5uVnZ8TPjiLlXNJivsHXMU3i8n2HVM+4mhDm7gfoARioD5xfznCIbJdyUg4gOiL0cHyaFb/ev2 uJitWO29FFD3S01A8P8QaQasjctPJ/1PPsE0COFXJXrjYuE2t4V5kLJ3jYTdb2m2DeCcTh//beUp9 xJ3nSmI0MrRaaV9pT3ElVR/5CMApu/bb3fLrQBNNXyAj33IPx+cLnAdVcqRs3Zx/kCwLKzUVFAflZ heSToN0w==; 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 1e6dwu-0002xr-0b; Mon, 23 Oct 2017 14:43:28 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e6dox-0005ND-CA for linux-arm-kernel@lists.infradead.org; Mon, 23 Oct 2017 14:35:23 +0000 Received: by mail-wm0-x242.google.com with SMTP id r68so10297859wmr.3 for <linux-arm-kernel@lists.infradead.org>; Mon, 23 Oct 2017 07:34:54 -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=2PdW+HRBTYQAXOhj8vS/SQ5KHlknx8gQ/kf5s538WjwzV5OkB4eC8HlaJHilyfYeOx w6inzYL0+Ke38yh0/oukrBX+coICZfgXDkDwM0HAZ+PPVxJyuSs2zftKCLy889wJx7AE ys8fs4Ukd0F474AICiubRa83EGYOQqPeNuF3DKyAT5i6brSt0fpgERj8r60jWa3Tdp4C Gdx6Buw+pFq74BgXpFpNu/EtTY/NZwIKX33lFMncuXKEt53Xuo+kOvTEq2oG8DPtDuTH xxz/Pj7Tgvm8dU0Dx6Fq0edoTXCot74xkw8Co6WaSDg8aBRLXD2yQYs4OF+qUsKfoHdP OdYQ== 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=Bb4euyigjNvTQLT++1ZTfiS610pJRz7SjfVApzZ0VYRdZacAENH/6de82JbMpCEZcp 9XdY9kTszs03hV6d7tTtv/AIvp1LB0l8ut4LrcuceeLbp7XPTAukVAtIhT5/z2mHXXeT ftaLSOg5j8BA0DueUCxrqm3TrevabM8RPv03Y8IW79gYq8fucC8N2OqIr9mXptjzQpBd ThONajX/aMo6FWknCq5pvlrq1DOgFsapXL5NtM3HpryHFuHrrGz35hadxPMxBFreCbyE 7GocteBvaKVmb3VZJbqLuEEZVIeppgLwboxCNb5JscTFw3ge58+pLuNbWPWO6IKA2NGQ 2syQ== X-Gm-Message-State: AMCzsaVBGLXCy4jQgHqXr154ry2Z24OFt/t9I5GgQpWrBzfU3N4+Cryj d5IyFx7YNai5h9S2K+Ureg3ZCg== X-Google-Smtp-Source: ABhQp+Qi+L0SBi5vgRZ0blQp2JciuPvpuzSq8VQhU3I2kpkrDAddmyNE0Z35KYzt3EM9HvJKVpBTyg== X-Received: by 10.80.226.74 with SMTP id o10mr16834831edl.290.1508769293406; Mon, 23 Oct 2017 07:34:53 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id w51sm7098180edd.60.2017.10.23.07.34.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Oct 2017 07:34:52 -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 v4 1/7] nvmem: imx-ocotp: Restrict OTP write to IMX6 processors Date: Mon, 23 Oct 2017 15:34:44 +0100 Message-Id: <1508769290-2646-2-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508769290-2646-1-git-send-email-pure.logic@nexus-software.ie> References: <1508769290-2646-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-20171023_073515_696328_1DA21F8D X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. 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: 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))