Messages in this thread | | | Date | Fri, 02 Jul 2021 15:53:49 +0200 | From | Michael Walle <> | Subject | Re: [PATCH] mtd: core: handle flashes without OTP gracefully |
| |
Am 2021-07-02 15:49, schrieb Guenter Roeck: > On 7/2/21 2:38 AM, Michael Walle wrote: >> There are flash drivers which registers the OTP callbacks although the >> flash doesn't support OTP regions and return -ENODATA for these >> callbacks if there is no OTP. If this happens, the probe of the whole >> flash will fail. Fix it by handling the ENODATA return code and skip >> the OTP region nvmem setup. >> >> Fixes: 4b361cfa8624 ("mtd: core: add OTP nvmem provider support") >> Reported-by: Guenter Roeck <linux@roeck-us.net> >> Signed-off-by: Michael Walle <michael@walle.cc> > > Tested-by: Guenter Roeck <linux@roeck-us.net>
Thanks for confirming, and sorry for the inconvenience.
-michael
| |