Re: [PATCH 2/2] nvmem: imx-ocotp: add write support

From: Richard Leitner
Date: Mon Mar 27 2017 - 10:00:41 EST


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
> <richard.leitner@xxxxxxxxxxx> 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 <richard.leitner@xxxxxxxxxxx>
>
> 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