Re: [PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-16 Thread Tom Rini
On Tue, Nov 16, 2021 at 04:41:46PM +0800, chaochao wrote: > > On 2021/11/15 22:02, Jagan Teki wrote: > > On Mon, Nov 15, 2021 at 6:51 PM chaochao2021...@163.com > > wrote: > > > > > > On 2021/11/15 13:57, tudor.amba...@microchip.com wrote: > > > > > > Hi, > > > > > > + Michael > > > > > > On

Re: [PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-16 Thread chaochao
On 2021/11/15 22:02, Jagan Teki wrote: On Mon, Nov 15, 2021 at 6:51 PM chaochao2021...@163.com wrote: On 2021/11/15 13:57, tudor.amba...@microchip.com wrote: Hi, + Michael On 11/15/21 4:37 AM, chaochao2021...@163.com wrote: EXTERNAL EMAIL: Do not click links or open attachments unless

Re: [PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-15 Thread Jagan Teki
On Mon, Nov 15, 2021 at 7:48 PM Tom Rini wrote: > > On Mon, Nov 15, 2021 at 07:32:29PM +0530, Jagan Teki wrote: > > On Mon, Nov 15, 2021 at 6:51 PM chaochao2021...@163.com > > wrote: > > > > > > On 2021/11/15 13:57, tudor.amba...@microchip.com wrote: > > > > > > Hi, > > > > > > + Michael > > > >

Re: [PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-15 Thread Tom Rini
On Mon, Nov 15, 2021 at 07:32:29PM +0530, Jagan Teki wrote: > On Mon, Nov 15, 2021 at 6:51 PM chaochao2021...@163.com > wrote: > > > > On 2021/11/15 13:57, tudor.amba...@microchip.com wrote: > > > > Hi, > > > > + Michael > > > > On 11/15/21 4:37 AM, chaochao2021...@163.com wrote: > > > > EXTERNAL

Re: [PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-15 Thread Jagan Teki
On Mon, Nov 15, 2021 at 6:51 PM chaochao2021...@163.com wrote: > > On 2021/11/15 13:57, tudor.amba...@microchip.com wrote: > > Hi, > > + Michael > > On 11/15/21 4:37 AM, chaochao2021...@163.com wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is

Re: [PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-15 Thread chaochao2021...@163.com
On 2021/11/15 13:57, tudor.amba...@microchip.com wrote: Hi, + Michael On 11/15/21 4:37 AM,chaochao2021...@163.com wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe From: chao zeng When operating the write-protection

[PATCH v2] sf: Querying write-protect status before operating the flash

2021-11-14 Thread chaochao2021666
From: chao zeng When operating the write-protection flash,spi_flash_std_write() and spi_flash_std_erase() would return wrong result.The flash is protected, but write or erase the flash would show "OK". Check the flash write protection state before operating the flash and give a prompt to show