Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753305AbdC0N7m (ORCPT ); Mon, 27 Mar 2017 09:59:42 -0400 Received: from mail2.skidata.com ([91.230.2.91]:37453 "EHLO mail2.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753257AbdC0N7a (ORCPT ); Mon, 27 Mar 2017 09:59:30 -0400 Authentication-Results: mail2.skidata.com; spf=None smtp.pra=richard.leitner@skidata.com; spf=PermError smtp.mailfrom=Richard.Leitner@skidata.com; spf=None smtp.helo=postmaster@sdmr1srv.skidata.net X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2E4BAA8GtlY/0oKEKxcGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBhUAHg1ubPR8QkyyCD4IOhiICg1MXAQIBAQEBAQEBA4EQhRYBBSM?= =?us-ascii?q?PAUYQCw0BCgICJgICRxAGAQwBBQICtViCJiYCihIBAQEBAQEBAQEBAQEBAQEBA?= =?us-ascii?q?QEBHwkBgQGFQ4IFCIJih1qCXwEEnFuCBZJDiF4XDIY0k2UhAoE5EhIRBR+HMHO?= =?us-ascii?q?IKIENAQEB?= X-IPAS-Result: =?us-ascii?q?A2E4BAA8GtlY/0oKEKxcGQEBAQEBAQEBAQEBBwEBAQEBhUA?= =?us-ascii?q?Hg1ubPR8QkyyCD4IOhiICg1MXAQIBAQEBAQEBA4EQhRYBBSMPAUYQCw0BCgICJ?= =?us-ascii?q?gICRxAGAQwBBQICtViCJiYCihIBAQEBAQEBAQEBAQEBAQEBAQEBHwkBgQGFQ4I?= =?us-ascii?q?FCIJih1qCXwEEnFuCBZJDiF4XDIY0k2UhAoE5EhIRBR+HMHOIKIENAQEB?= X-IronPort-AV: E=Sophos;i="5.36,231,1486422000"; d="scan'208";a="499539" Subject: Re: [PATCH 2/2] nvmem: imx-ocotp: add write support To: Fabio Estevam , Sascha Hauer , Shawn Guo References: <1490621491-28247-1-git-send-email-richard.leitner@skidata.com> <1490621491-28247-2-git-send-email-richard.leitner@skidata.com> CC: linux-kernel , Srinivas Kandagatla , Maxime Ripard , "robh+dt@kernel.org" , Mark Rutland , "devicetree@vger.kernel.org" , From: Richard Leitner Message-ID: <8a1caa0b-8117-4e2f-1782-a9251f617969@skidata.com> Date: Mon, 27 Mar 2017 15:59:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [172.16.60.30] X-ClientProxiedBy: sdex1srv.skidata.net (172.16.10.92) To sdex1srv.skidata.net (172.16.10.92) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 848 Lines: 22 On 03/27/2017 03:42 PM, Fabio Estevam wrote: > [Adding Pengutronix folks and Shawn on Cc] > > On Mon, Mar 27, 2017 at 10:31 AM, Richard Leitner > wrote: >> Implement write routine for OCOTP controller found in i.MX6 SoC's. >> Furthermore add locking to the read function to prevent race conditions. >> The write routine code is based on the fsl_otp driver from Freescale. >> >> Signed-off-by: Richard Leitner > > Do we really want to have write support in the driver? We need it for our "factory startup" process and other fusebox drivers support it as well. Therefore I thought it would be a good idea to bring it upstream. Furthermore you can disable it via devicetree (and it would also be possible to introduce a CONFIG for write support if it's wanted). kind regards, Richard L