Re: [PATCH v4 2/4] mtd: spi-nor: implement OTP support for Winbond and similar flashes

2021-03-15 Thread Michael Walle
Am 2021-03-15 09:31, schrieb tudor.amba...@microchip.com: On 3/6/21 2:05 AM, Michael Walle wrote: + nor->dirmap.rdesc = NULL; why can't we use dirmap? Dirmap is used if the controller supports (transparent) memory mapped access, right? As you see I'm not familiar with that, nor does m

Re: [PATCH v4 2/4] mtd: spi-nor: implement OTP support for Winbond and similar flashes

2021-03-15 Thread Michael Walle
Am 2021-03-15 09:20, schrieb tudor.amba...@microchip.com: On 3/6/21 2:05 AM, Michael Walle wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe Use the new OTP ops to implement OTP access on Winbond flashes. Most Winbond flashes provides up to four

Re: [PATCH v4 2/4] mtd: spi-nor: implement OTP support for Winbond and similar flashes

2021-03-15 Thread Tudor.Ambarus
On 3/6/21 2:05 AM, Michael Walle wrote: > + nor->dirmap.rdesc = NULL; why can't we use dirmap? > + > + ret = spi_nor_read_data(nor, addr, len, buf);

Re: [PATCH v4 2/4] mtd: spi-nor: implement OTP support for Winbond and similar flashes

2021-03-15 Thread Tudor.Ambarus
On 3/6/21 2:05 AM, Michael Walle wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Use the new OTP ops to implement OTP access on Winbond flashes. Most > Winbond flashes provides up to four different OTP regions ("Security > Registers"). >

[PATCH v4 2/4] mtd: spi-nor: implement OTP support for Winbond and similar flashes

2021-03-05 Thread Michael Walle
Use the new OTP ops to implement OTP access on Winbond flashes. Most Winbond flashes provides up to four different OTP regions ("Security Registers"). Winbond devices use a special opcode to read and write to the OTP regions, just like the RDSFDP opcode. In fact, it seems that the (undocumented) f