From patchwork Sun Oct 8 22:41:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 9992061 Return-Path: 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 90F9060364 for ; Sun, 8 Oct 2017 22:43:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8103E28563 for ; Sun, 8 Oct 2017 22:43:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7202328639; Sun, 8 Oct 2017 22:43:42 +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 0BADA28563 for ; Sun, 8 Oct 2017 22:43:42 +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=zsS3ccWOJObo2H/0S0bmlNnZ9Iwox8qoJdBVXCqwzQo=; b=XMiWneTzWqaMo05NrVV7P6kR9E WJrjn5kQ79WUhq2StMSIKHWktQc4Pp67MF6+nSRVdnEBSu8dt/GZFyNe4H9+VnXKlI+GFrLUpKGMD NsOw8AiZ+CpEz3ZQV3f5Qtr6e6hEQBt/knnYbZGG/wTUFBcQhrDCJN/V3DLF3+gPnyugVMw423j7Q o1abbAP0oa1UiLEPsq1R/Y/ALjjDFmJ3o/39MmDZcu51v0xjo26knINMXV3Mc7L06K4BXXn3BWWJV qyKI74tZMIOLrxM6jK8Dc8W/00kAV8W+RpHUaVz4usjlQkahxJya81tzgbHemm3Qf+cMekfOyeEBX vEh+r6xw==; 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 1e1KIP-0005TX-DG; Sun, 08 Oct 2017 22:43:41 +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 1e1KGd-0003l7-Q7 for linux-arm-kernel@lists.infradead.org; Sun, 08 Oct 2017 22:41:55 +0000 Received: by mail-wm0-x234.google.com with SMTP id i124so18048133wmf.3 for ; Sun, 08 Oct 2017 15:41:31 -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=Qsut4YoBqmFkp5NcSK1yX1F3ZzQCh0oP5OGwmhZPr1A=; b=ds9P+L9cNDOAhbR99pbY6lFuioTzNKHSn/PZ2APfpxQ30n6fRbxJpSMmS/suaWuAdk pxNZc+aPC4RnBIr2h8smEGV6HkYfKXsQhWH0ZJFsvsiqgEBmRWJI0Ow965oexFdaERYN moDcvKoj55IGxOxA0rFoMqaZG5PcJHzUCEJGTgIwN3Kpgh+l9gyFPTR5VpE7ASaPq4Dd SE32yYBfbw9dufvlONvZxYIoHFKR42e9kD1qKLFXvwEtsJuMW+2vbGxYLNr2tyTTLIYl VdJuruDzGdfxXTF8v9Q4Q9uJ1WI87OCZ5M7UuwaAaIzelmsbct+5ZgaGWSAehgIsQGsf qMaw== 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=Qsut4YoBqmFkp5NcSK1yX1F3ZzQCh0oP5OGwmhZPr1A=; b=DKNIew56xGH+2yzgc/JE5YaBzWQSoGSydMzkdlQaYgB3u3+D4cR5TeddDrj4oVrmOZ wTaebQB8/0f9NQ0aSsEeAIbemhceQptwgvov76hcDHJXP7R/V0ZtzoLUOoIDE6pypyKn Nl6nlkL3tiIA/ejOIk7HRVP+nvu3zTo9IHStBFp/q7zl1QdLq4AhGrZeNH088Cox7Wqm aiunRNWzzrELLbGp/YJzL91EkkJHrB81T67GjXRU6/gfNCtoPkZDP4ZjchHEnabrahWk VWVmWip6Y7PSlE44P/Rp+7dwsxkd0T0UC1sLr/ZE0r5oTPfj30ypunCqVRJC+HIqNy8R rqsg== X-Gm-Message-State: AMCzsaWQRZ+2nq2KFcYm9WgGboJKCfXW5Pv+MhuFCWzC9w2TTEY4faN3 u8R9+C4wNnidLpshX8uNH6l53g== X-Google-Smtp-Source: AOwi7QA1VjkGrHyTaHHs4NOWxIyiP0Aus08EWdQHHlo0oOekcpxHupFUP5/E9c16rpo9UFHGKVWUeQ== X-Received: by 10.80.139.232 with SMTP id n37mr11354420edn.291.1507502490474; Sun, 08 Oct 2017 15:41:30 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id g45sm432909eda.19.2017.10.08.15.41.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Oct 2017 15:41:29 -0700 (PDT) From: Bryan O'Donoghue 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 6/7] nvmem: imx-ocotp: Enable i.MX7D OTP write support Date: Sun, 8 Oct 2017 23:41:21 +0100 Message-Id: <1507502482-22518-7-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_154152_085060_44368D82 X-CRM114-Status: UNSURE ( 9.62 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bryan O'Donoghue , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP After applying patches for both banked access and write timings we can re-enable the OTP write interface on i.MX7D processors. Fixes: 0642bac7da42 ("nvmem: imx-ocotp: add write support") Signed-off-by: Bryan O'Donoghue --- drivers/nvmem/imx-ocotp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index f80aee9..8e8bc20 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -459,8 +459,6 @@ 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))