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

2021-11-08 Thread chaochao2021666
HI jagan and ta I might have a different view, the caller can not get the correct response even though we can not operate the device sucessfully. I think it is necessary to return a valid value. if return 0, the device cannot actually be operated but the correct results are not possible

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

2021-11-05 Thread Jagan Teki
On Fri, Nov 5, 2021 at 10:47 PM wrote: > > Hi, > > On 6/22/21 8:21 AM, chao zeng wrote: > > 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 woul

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

2021-11-04 Thread Tom Rini
On Wed, Nov 03, 2021 at 01:18:42PM +0100, Jan Kiszka wrote: > On 04.10.21 15:36, Jan Kiszka wrote: > > On 13.09.21 09:48, Jan Kiszka wrote: > >> Hi all, > >> > >> Chao, please no top-post on mailing list. Also check your mail client, > >> it seems to inject a lot of bogus newlines. > >> > >> On 08.

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

2021-11-03 Thread Jan Kiszka
On 04.10.21 15:36, Jan Kiszka wrote: > On 13.09.21 09:48, Jan Kiszka wrote: >> Hi all, >> >> Chao, please no top-post on mailing list. Also check your mail client, >> it seems to inject a lot of bogus newlines. >> >> On 08.09.21 06:55, chaochao2021666 wrote: >>> >>> >>> >>> HI Jagan >>> >>> >>> >>>

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

2021-10-04 Thread Jan Kiszka
On 13.09.21 09:48, Jan Kiszka wrote: > Hi all, > > Chao, please no top-post on mailing list. Also check your mail client, > it seems to inject a lot of bogus newlines. > > On 08.09.21 06:55, chaochao2021666 wrote: >> >> >> >> HI Jagan >> >> >> >> sorry for the delay response. >> >> >> And I have

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

2021-09-13 Thread Jan Kiszka
Hi all, Chao, please no top-post on mailing list. Also check your mail client, it seems to inject a lot of bogus newlines. On 08.09.21 06:55, chaochao2021666 wrote: > > > > HI Jagan > > > > sorry for the delay response. > > > And I have checked the maser. There is still a problem with thi

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

2021-09-08 Thread chaochao2021666
HI Jagan sorry for the delay response. And I have checked the maser. There is still a problem with this feature。 reproduce steps: 1. enable the flash protect function 2. using sf cmd to erase the flash. I can get the erase "OK",not the "error". I think the root cause is that the detect

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

2021-06-29 Thread Jagan Teki
On Tue, Jun 22, 2021 at 10:51 AM chao zeng wrote: > > 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 protect

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

2021-06-22 Thread chao zeng
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 if the write-protection has enbale before operating the