Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755134AbdC3GQu (ORCPT ); Thu, 30 Mar 2017 02:16:50 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:60809 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754441AbdC3GQt (ORCPT ); Thu, 30 Mar 2017 02:16:49 -0400 Date: Thu, 30 Mar 2017 08:16:43 +0200 From: Sascha Hauer To: Fabio Estevam Cc: Richard Leitner , Sascha Hauer , Shawn Guo , Mark Rutland , "devicetree@vger.kernel.org" , linux-kernel , "robh+dt@kernel.org" , Srinivas Kandagatla , Maxime Ripard , dev@g0hl1n.net Subject: Re: [PATCH 2/2] nvmem: imx-ocotp: add write support Message-ID: <20170330061643.mxk3regx6col4zt7@pengutronix.de> References: <1490621491-28247-1-git-send-email-richard.leitner@skidata.com> <1490621491-28247-2-git-send-email-richard.leitner@skidata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:15:17 up 4 days, 17:44, 19 users, load average: 0.00, 0.01, 0.00 User-Agent: Mutt/1.6.2-neo (2016-06-11) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 23 On Mon, Mar 27, 2017 at 10:42:06AM -0300, 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? Why not? The fuses must be written somewhere and some like to do it under Linux. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |