[PATCH v3 10/19] nvmem: microchip-otpc: Avoid reading a write-only register

Claudiu Beznea claudiu.beznea at tuxon.dev
Sat Jan 31 07:58:53 PST 2026



On 1/20/26 17:44, Alexander Dahl wrote:
> The OTPC Control Register (OTPC_CR) has just write-only members.
> Reading from that register leads to a warning in OTPC Write Protection
> Status Register (OTPC_WPSR) in field Software Error Type (SWETYP) of
> type READ_WO (A write-only register has been read (warning).)
> 
> Just create the register write content from scratch is sufficient here.
> 
> Fixes: 98830350d3fc ("nvmem: microchip-otpc: add support")
> Cc:stable at vger.kernel.org
> Signed-off-by: Alexander Dahl<ada at thorsis.com>

Reviewed-by: Claudiu Beznea <claudiu.beznea at tuxon.dev>



More information about the linux-arm-kernel mailing list