All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
@ 2016-12-13  5:27 Yao Yuan
  2017-01-23 19:05 ` york sun
  2017-03-20 16:12 ` Jagan Teki
  0 siblings, 2 replies; 11+ messages in thread
From: Yao Yuan @ 2016-12-13  5:27 UTC (permalink / raw)
  To: u-boot

Hi Jagan,

Do you have any comments?

Thanks for your work and you know it's important for QSPI with S25FS512S.

It seems S25FS512S can't support the SECT_4K, right?
And it better to retain the disable_4kb, but we can add a flag in dts to select whether enable it.

Best Regards,
Yao

From: Yao Yuan
Sent: Wednesday, November 30, 2016 3:23 PM
To: 'Jagan Teki' <jagan@openedev.com>
Subject: sf: Remove spansion_s25fss_disable_4KB_erase

Hi Jagan,

I have noticed that you have a patch to:

commit 116e005cfd00021424f5f81eeedd355e4ca72f07
Author: Jagan Teki <jagan at amarulasolutions.com<mailto:jagan@amarulasolutions.com>>
Date:   Tue Nov 15 22:57:42 2016 +0530

- Removed spansion_s25fss_disable_4KB_erase code
- Add SECT_4K for S25FS512S chip

Do you have any test for this patch?
Because with this patch, my QSPI driver can't working with S25FS512S.

As you said,
In spansion S25FS-S family the physical sectors are grouped as normal and parameter sectors.
Parameter sectors are 4kB in size with 8 set located at the bottom or top address of a device.
Normal sectors are similar to other flash family with sizes of 64kB or 32 kB.

Base on the RM and in my understand, not all the erase sectors are 4-kb.

In my case regions are:

1. 0-32KiB (8*4KiB) - 4K_ERASE (0x20/0x21)

2. 32 - 256 - SE_CMD (0xd8/0xdc)

3. Rest of the flash SE_CMD (0xd8/0xdc)

4. To erase whole flash you can also use CHIP_ERASE_CMD

(0x60/0xC7) command, you just need to add one more mtd

partition that will cover whole flash.

So we can't add SECT_4K for S25FS512S chip.
If we add SECT_4K for S25FS512S chip, that means all the erase sectors are 4-kb.
But I think it's not right.

And disable 4kb is necessary for me, I also suggestion to add a flag to select whether enable 4-kb.

if (of_property_read_bool(np, "spi-nor, disable-4kb")) {

                spansion_s25fs_disable_4kb_erase();

}

else

...



In dts:

&qspi {

qflash0: s25fs512s at 0 {

compatible = "spansion, s25fs512s";

                spi-nor, disable-4kb

#address-cells = <1>;

#size-cells = <1>;

spi-max-frequency = <20000000>;

reg = <0>;

};


Attachment is the RM for S25FS-S.

Thanks.

Best Regards,
Yao

-------------- next part --------------
A non-text attachment was scrubbed...
Name: S25FS512S_00.pdf
Type: application/pdf
Size: 1758713 bytes
Desc: S25FS512S_00.pdf
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161213/2303fa58/attachment-0001.pdf>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2016-12-13  5:27 [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase Yao Yuan
@ 2017-01-23 19:05 ` york sun
  2017-01-27 18:04   ` Jagan Teki
  2017-03-20 16:12 ` Jagan Teki
  1 sibling, 1 reply; 11+ messages in thread
From: york sun @ 2017-01-23 19:05 UTC (permalink / raw)
  To: u-boot

On 12/12/2016 09:32 PM, Yao Yuan wrote:
> Hi Jagan,
>
>
>
> Do you have any comments?
>
>
>
> Thanks for your work and you know it?s important for QSPI with S25FS512S.
>
>
>
> It seems S25FS512S can?t support the SECT_4K, right?
>
> And it better to retain the disable_4kb, but we can add a flag in dts to
> select whether enable it.
>
>

Jagan,

This is blocking me from using the board with this specific flash chip. 
Can you take a look? By reverting this single commit 116e005c, my board 
works again.

York

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2017-01-23 19:05 ` york sun
@ 2017-01-27 18:04   ` Jagan Teki
  2017-03-16  1:44     ` york sun
       [not found]     ` <73af5495-a439-30d0-565e-469b758d8b19@nxp.com>
  0 siblings, 2 replies; 11+ messages in thread
From: Jagan Teki @ 2017-01-27 18:04 UTC (permalink / raw)
  To: u-boot

On Mon, Jan 23, 2017 at 8:05 PM, york sun <york.sun@nxp.com> wrote:
> On 12/12/2016 09:32 PM, Yao Yuan wrote:
>> Hi Jagan,
>>
>>
>>
>> Do you have any comments?
>>
>>
>>
>> Thanks for your work and you know it?s important for QSPI with S25FS512S.
>>
>>
>>
>> It seems S25FS512S can?t support the SECT_4K, right?
>>
>> And it better to retain the disable_4kb, but we can add a flag in dts to
>> select whether enable it.
>>
>>
>
> Jagan,
>
> This is blocking me from using the board with this specific flash chip.
> Can you take a look? By reverting this single commit 116e005c, my board
> works again.

I will try to work on this.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2017-01-27 18:04   ` Jagan Teki
@ 2017-03-16  1:44     ` york sun
       [not found]     ` <73af5495-a439-30d0-565e-469b758d8b19@nxp.com>
  1 sibling, 0 replies; 11+ messages in thread
From: york sun @ 2017-03-16  1:44 UTC (permalink / raw)
  To: u-boot

On 01/27/2017 10:04 AM, Jagan Teki wrote:
> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york.sun@nxp.com> wrote:
>> On 12/12/2016 09:32 PM, Yao Yuan wrote:
>>> Hi Jagan,
>>>
>>>
>>>
>>> Do you have any comments?
>>>
>>>
>>>
>>> Thanks for your work and you know it’s important for QSPI with S25FS512S.
>>>
>>>
>>>
>>> It seems S25FS512S can’t support the SECT_4K, right?
>>>
>>> And it better to retain the disable_4kb, but we can add a flag in dts to
>>> select whether enable it.
>>>
>>>
>>
>> Jagan,
>>
>> This is blocking me from using the board with this specific flash chip.
>> Can you take a look? By reverting this single commit 116e005c, my board
>> works again.
>
> I will try to work on this.
>

Guys,

Where are we on this issue?

York

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2016-12-13  5:27 [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase Yao Yuan
  2017-01-23 19:05 ` york sun
@ 2017-03-20 16:12 ` Jagan Teki
  2017-03-27 16:45   ` Jagan Teki
  1 sibling, 1 reply; 11+ messages in thread
From: Jagan Teki @ 2017-03-20 16:12 UTC (permalink / raw)
  To: u-boot

Hi,

Let's start the discussion, if possible we may add linux-mtd ML.

Here is the details: from attached pdf Page no:2

In spansion S25FS-S family the physical sectors are grouped as
normal and parameter sectors. Parameter sectors are 4kB in size
with 8 set located at the bottom or top address of a device.
Normal sectors are similar to other flash family with sizes of
64kB or 32 kB.

Do we agree till this point?

To erase whole flash using sector erase(D8h or DCh) won't effect
the parameter sectors, so in order to erase these we must use 4K
sector erase commands (20h or 21h) separately.

So better to erase the whole flash using 4K sector erase instead
of detecting these family parts again and do two different erase
operations.

On Tue, Dec 13, 2016 at 10:57 AM, Yao Yuan <yao.yuan@nxp.com> wrote:
> Hi Jagan,
>
> Do you have any comments?
>
> Thanks for your work and you know it's important for QSPI with S25FS512S.
>
> It seems S25FS512S can't support the SECT_4K, right?
> And it better to retain the disable_4kb, but we can add a flag in dts to select whether enable it.
>
> Best Regards,
> Yao
>
> From: Yao Yuan
> Sent: Wednesday, November 30, 2016 3:23 PM
> To: 'Jagan Teki' <jagan@openedev.com>
> Subject: sf: Remove spansion_s25fss_disable_4KB_erase
>
> Hi Jagan,
>
> I have noticed that you have a patch to:
>
> commit 116e005cfd00021424f5f81eeedd355e4ca72f07
> Author: Jagan Teki <jagan at amarulasolutions.com<mailto:jagan@amarulasolutions.com>>
> Date:   Tue Nov 15 22:57:42 2016 +0530
>
> - Removed spansion_s25fss_disable_4KB_erase code
> - Add SECT_4K for S25FS512S chip
>
> Do you have any test for this patch?
> Because with this patch, my QSPI driver can't working with S25FS512S.
>
> As you said,
> In spansion S25FS-S family the physical sectors are grouped as normal and parameter sectors.
> Parameter sectors are 4kB in size with 8 set located at the bottom or top address of a device.
> Normal sectors are similar to other flash family with sizes of 64kB or 32 kB.
>
> Base on the RM and in my understand, not all the erase sectors are 4-kb.
>
> In my case regions are:
>
> 1. 0-32KiB (8*4KiB) - 4K_ERASE (0x20/0x21)
>
> 2. 32 - 256 - SE_CMD (0xd8/0xdc)
>
> 3. Rest of the flash SE_CMD (0xd8/0xdc)
>
> 4. To erase whole flash you can also use CHIP_ERASE_CMD
>
> (0x60/0xC7) command, you just need to add one more mtd
>
> partition that will cover whole flash.
>
> So we can't add SECT_4K for S25FS512S chip.
> If we add SECT_4K for S25FS512S chip, that means all the erase sectors are 4-kb.
> But I think it's not right.
>
> And disable 4kb is necessary for me, I also suggestion to add a flag to select whether enable 4-kb.
>
> if (of_property_read_bool(np, "spi-nor, disable-4kb")) {
>
>                 spansion_s25fs_disable_4kb_erase();
>
> }
>
> else
>
> ...
>
>
>
> In dts:
>
> &qspi {
>
> qflash0: s25fs512s at 0 {
>
> compatible = "spansion, s25fs512s";
>
>                 spi-nor, disable-4kb
>
> #address-cells = <1>;
>
> #size-cells = <1>;
>
> spi-max-frequency = <20000000>;
>
> reg = <0>;
>
> };
>
>
> Attachment is the RM for S25FS-S.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: S25FS-S_Prog_Guide_AN.pdf
Type: application/pdf
Size: 606238 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170320/024c6019/attachment-0001.pdf>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2017-03-20 16:12 ` Jagan Teki
@ 2017-03-27 16:45   ` Jagan Teki
  0 siblings, 0 replies; 11+ messages in thread
From: Jagan Teki @ 2017-03-27 16:45 UTC (permalink / raw)
  To: u-boot

Ping?

On Mon, Mar 20, 2017 at 9:42 PM, Jagan Teki <jagannadh.teki@gmail.com> wrote:
> Hi,
>
> Let's start the discussion, if possible we may add linux-mtd ML.
>
> Here is the details: from attached pdf Page no:2
>
> In spansion S25FS-S family the physical sectors are grouped as
> normal and parameter sectors. Parameter sectors are 4kB in size
> with 8 set located at the bottom or top address of a device.
> Normal sectors are similar to other flash family with sizes of
> 64kB or 32 kB.
>
> Do we agree till this point?
>
> To erase whole flash using sector erase(D8h or DCh) won't effect
> the parameter sectors, so in order to erase these we must use 4K
> sector erase commands (20h or 21h) separately.
>
> So better to erase the whole flash using 4K sector erase instead
> of detecting these family parts again and do two different erase
> operations.
>
> On Tue, Dec 13, 2016 at 10:57 AM, Yao Yuan <yao.yuan@nxp.com> wrote:
>> Hi Jagan,
>>
>> Do you have any comments?
>>
>> Thanks for your work and you know it's important for QSPI with S25FS512S.
>>
>> It seems S25FS512S can't support the SECT_4K, right?
>> And it better to retain the disable_4kb, but we can add a flag in dts to select whether enable it.
>>
>> Best Regards,
>> Yao
>>
>> From: Yao Yuan
>> Sent: Wednesday, November 30, 2016 3:23 PM
>> To: 'Jagan Teki' <jagan@openedev.com>
>> Subject: sf: Remove spansion_s25fss_disable_4KB_erase
>>
>> Hi Jagan,
>>
>> I have noticed that you have a patch to:
>>
>> commit 116e005cfd00021424f5f81eeedd355e4ca72f07
>> Author: Jagan Teki <jagan at amarulasolutions.com<mailto:jagan@amarulasolutions.com>>
>> Date:   Tue Nov 15 22:57:42 2016 +0530
>>
>> - Removed spansion_s25fss_disable_4KB_erase code
>> - Add SECT_4K for S25FS512S chip
>>
>> Do you have any test for this patch?
>> Because with this patch, my QSPI driver can't working with S25FS512S.
>>
>> As you said,
>> In spansion S25FS-S family the physical sectors are grouped as normal and parameter sectors.
>> Parameter sectors are 4kB in size with 8 set located at the bottom or top address of a device.
>> Normal sectors are similar to other flash family with sizes of 64kB or 32 kB.
>>
>> Base on the RM and in my understand, not all the erase sectors are 4-kb.
>>
>> In my case regions are:
>>
>> 1. 0-32KiB (8*4KiB) - 4K_ERASE (0x20/0x21)
>>
>> 2. 32 - 256 - SE_CMD (0xd8/0xdc)
>>
>> 3. Rest of the flash SE_CMD (0xd8/0xdc)
>>
>> 4. To erase whole flash you can also use CHIP_ERASE_CMD
>>
>> (0x60/0xC7) command, you just need to add one more mtd
>>
>> partition that will cover whole flash.
>>
>> So we can't add SECT_4K for S25FS512S chip.
>> If we add SECT_4K for S25FS512S chip, that means all the erase sectors are 4-kb.
>> But I think it's not right.
>>
>> And disable 4kb is necessary for me, I also suggestion to add a flag to select whether enable 4-kb.
>>
>> if (of_property_read_bool(np, "spi-nor, disable-4kb")) {
>>
>>                 spansion_s25fs_disable_4kb_erase();
>>
>> }
>>
>> else
>>
>> ...
>>
>>
>>
>> In dts:
>>
>> &qspi {
>>
>> qflash0: s25fs512s at 0 {
>>
>> compatible = "spansion, s25fs512s";
>>
>>                 spi-nor, disable-4kb
>>
>> #address-cells = <1>;
>>
>> #size-cells = <1>;
>>
>> spi-max-frequency = <20000000>;
>>
>> reg = <0>;
>>
>> };
>>
>>
>> Attachment is the RM for S25FS-S.
>
> thanks!
> --
> Jagan Teki
> Free Software Engineer | www.openedev.com
> U-Boot, Linux | Upstream Maintainer
> Hyderabad, India.



-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
       [not found]     ` <73af5495-a439-30d0-565e-469b758d8b19@nxp.com>
@ 2017-03-27 17:35       ` york sun
  2017-03-27 17:56         ` Jagan Teki
  0 siblings, 1 reply; 11+ messages in thread
From: york sun @ 2017-03-27 17:35 UTC (permalink / raw)
  To: u-boot

On 03/15/2017 06:44 PM, york.sun at nxp.com wrote:
> On 01/27/2017 10:04 AM, Jagan Teki wrote:
>> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york.sun@nxp.com> wrote:
>>> On 12/12/2016 09:32 PM, Yao Yuan wrote:
>>>> Hi Jagan,
>>>>
>>>>
>>>>
>>>> Do you have any comments?
>>>>
>>>>
>>>>
>>>> Thanks for your work and you know it’s important for QSPI with
>>>> S25FS512S.
>>>>
>>>>
>>>>
>>>> It seems S25FS512S can’t support the SECT_4K, right?
>>>>
>>>> And it better to retain the disable_4kb, but we can add a flag in
>>>> dts to
>>>> select whether enable it.
>>>>
>>>>
>>>
>>> Jagan,
>>>
>>> This is blocking me from using the board with this specific flash chip.
>>> Can you take a look? By reverting this single commit 116e005c, my board
>>> works again.
>>
>> I will try to work on this.
>>
>
> Guys,
>
> Where are we on this issue?
>
> York
>

Can we revert this patch or have a fix?

York

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2017-03-27 17:35       ` york sun
@ 2017-03-27 17:56         ` Jagan Teki
  2017-03-28  1:12           ` Mingkai Hu
  0 siblings, 1 reply; 11+ messages in thread
From: Jagan Teki @ 2017-03-27 17:56 UTC (permalink / raw)
  To: u-boot

On Mon, Mar 27, 2017 at 11:05 PM, york sun <york.sun@nxp.com> wrote:
> On 03/15/2017 06:44 PM, york.sun at nxp.com wrote:
>> On 01/27/2017 10:04 AM, Jagan Teki wrote:
>>> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york.sun@nxp.com> wrote:
>>>> On 12/12/2016 09:32 PM, Yao Yuan wrote:
>>>>> Hi Jagan,
>>>>>
>>>>>
>>>>>
>>>>> Do you have any comments?
>>>>>
>>>>>
>>>>>
>>>>> Thanks for your work and you know it’s important for QSPI with
>>>>> S25FS512S.
>>>>>
>>>>>
>>>>>
>>>>> It seems S25FS512S can’t support the SECT_4K, right?
>>>>>
>>>>> And it better to retain the disable_4kb, but we can add a flag in
>>>>> dts to
>>>>> select whether enable it.
>>>>>
>>>>>
>>>>
>>>> Jagan,
>>>>
>>>> This is blocking me from using the board with this specific flash chip.
>>>> Can you take a look? By reverting this single commit 116e005c, my board
>>>> works again.
>>>
>>> I will try to work on this.
>>>
>>
>> Guys,
>>
>> Where are we on this issue?
>>
>> York
>>
>
> Can we revert this patch or have a fix?

Just wanted to understand more about this, I've attached programming
model in previous mail about this and based on that I've fixed with
all 4K. Waiting for 'Yao Yuan' inputs on this.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2017-03-27 17:56         ` Jagan Teki
@ 2017-03-28  1:12           ` Mingkai Hu
  2017-03-31  0:19             ` york sun
  0 siblings, 1 reply; 11+ messages in thread
From: Mingkai Hu @ 2017-03-28  1:12 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: Jagan Teki [mailto:jagannadh.teki at gmail.com]
> Sent: Tuesday, March 28, 2017 1:57 AM
> To: york sun <york.sun@nxp.com>
> Cc: Jagan Teki <jagan@openedev.com>; u-boot at lists.denx.de; Mingkai Hu
> <mingkai.hu@nxp.com>
> Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
> 
> On Mon, Mar 27, 2017 at 11:05 PM, york sun <york.sun@nxp.com> wrote:
> > On 03/15/2017 06:44 PM, york.sun at nxp.com wrote:
> >> On 01/27/2017 10:04 AM, Jagan Teki wrote:
> >>> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york.sun@nxp.com> wrote:
> >>>> On 12/12/2016 09:32 PM, Yao Yuan wrote:
> >>>>> Hi Jagan,
> >>>>>
> >>>>>
> >>>>>
> >>>>> Do you have any comments?
> >>>>>
> >>>>>
> >>>>>
> >>>>> Thanks for your work and you know it’s important for QSPI with
> >>>>> S25FS512S.
> >>>>>
> >>>>>
> >>>>>
> >>>>> It seems S25FS512S can’t support the SECT_4K, right?
> >>>>>
> >>>>> And it better to retain the disable_4kb, but we can add a flag in
> >>>>> dts to select whether enable it.
> >>>>>
> >>>>>
> >>>>
> >>>> Jagan,
> >>>>
> >>>> This is blocking me from using the board with this specific flash chip.
> >>>> Can you take a look? By reverting this single commit 116e005c, my
> >>>> board works again.
> >>>
> >>> I will try to work on this.
> >>>
> >>
> >> Guys,
> >>
> >> Where are we on this issue?
> >>
> >> York
> >>
> >
> > Can we revert this patch or have a fix?
> 
> Just wanted to understand more about this, I've attached programming
> model in previous mail about this and based on that I've fixed with all 4K.
> Waiting for 'Yao Yuan' inputs on this.
> 

+Suresh to follow up this question.

Thanks,
Mingkai

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2017-03-28  1:12           ` Mingkai Hu
@ 2017-03-31  0:19             ` york sun
  2017-06-05  8:50               ` Suresh Gupta
  0 siblings, 1 reply; 11+ messages in thread
From: york sun @ 2017-03-31  0:19 UTC (permalink / raw)
  To: u-boot

On 03/27/2017 06:12 PM, Mingkai Hu wrote:
>
>> -----Original Message-----
>> From: Jagan Teki [mailto:jagannadh.teki at gmail.com]
>> Sent: Tuesday, March 28, 2017 1:57 AM
>> To: york sun <york.sun@nxp.com>
>> Cc: Jagan Teki <jagan@openedev.com>; u-boot at lists.denx.de; Mingkai Hu
>> <mingkai.hu@nxp.com>
>> Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
>>
>> On Mon, Mar 27, 2017 at 11:05 PM, york sun <york.sun@nxp.com> wrote:
>>> On 03/15/2017 06:44 PM, york.sun at nxp.com wrote:
>>>> On 01/27/2017 10:04 AM, Jagan Teki wrote:
>>>>> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york.sun@nxp.com> wrote:
>>>>>> On 12/12/2016 09:32 PM, Yao Yuan wrote:
>>>>>>> Hi Jagan,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Do you have any comments?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks for your work and you know it’s important for QSPI with
>>>>>>> S25FS512S.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> It seems S25FS512S can’t support the SECT_4K, right?
>>>>>>>
>>>>>>> And it better to retain the disable_4kb, but we can add a flag in
>>>>>>> dts to select whether enable it.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> Jagan,
>>>>>>
>>>>>> This is blocking me from using the board with this specific flash chip.
>>>>>> Can you take a look? By reverting this single commit 116e005c, my
>>>>>> board works again.
>>>>>
>>>>> I will try to work on this.
>>>>>
>>>>
>>>> Guys,
>>>>
>>>> Where are we on this issue?
>>>>
>>>> York
>>>>
>>>
>>> Can we revert this patch or have a fix?
>>
>> Just wanted to understand more about this, I've attached programming
>> model in previous mail about this and based on that I've fixed with all 4K.
>> Waiting for 'Yao Yuan' inputs on this.
>>
>
> +Suresh to follow up this question.
>

Suresh,

Can you follow up on this? This issue is blocking me from testing QSPI 
on LS1046ARDB. Even I revert this patch, I can only erase part of the flash.

York

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
  2017-03-31  0:19             ` york sun
@ 2017-06-05  8:50               ` Suresh Gupta
  0 siblings, 0 replies; 11+ messages in thread
From: Suresh Gupta @ 2017-06-05  8:50 UTC (permalink / raw)
  To: u-boot

Hi Jagan, 

As already discussed in this forum that flash "S25FS512S" have Hybrid sector option and to come out of this hybrid mode we required 
"spansion_s25fss_disable_4KB_erase" patch in which  we set bit 3 of "Configuration Register 3 Non-Volatile (CR3NV)/ Configuration Register-3 Volatile (CR3V)".
This disable 4-kB Erase and configure flash in Uniform Sector Architecture. 

After removing this patch, we are facing issues in erasing initial sectors of flash. 
Please let me know what is your plan to fix this issue, Can I send patch again ?   

Thanks 
SuresH

> -----Original Message-----
> From: york sun
> Sent: Friday, March 31, 2017 5:50 AM
> To: Suresh Gupta <suresh.gupta@nxp.com>
> Cc: Mingkai Hu <mingkai.hu@nxp.com>; Jagan Teki
> <jagannadh.teki@gmail.com>; Jagan Teki <jagan@openedev.com>; u-
> boot at lists.denx.de
> Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
> 
> On 03/27/2017 06:12 PM, Mingkai Hu wrote:
> >
> >> -----Original Message-----
> >> From: Jagan Teki [mailto:jagannadh.teki at gmail.com]
> >> Sent: Tuesday, March 28, 2017 1:57 AM
> >> To: york sun <york.sun@nxp.com>
> >> Cc: Jagan Teki <jagan@openedev.com>; u-boot at lists.denx.de; Mingkai Hu
> >> <mingkai.hu@nxp.com>
> >> Subject: Re: [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase
> >>
> >> On Mon, Mar 27, 2017 at 11:05 PM, york sun <york.sun@nxp.com> wrote:
> >>> On 03/15/2017 06:44 PM, york.sun at nxp.com wrote:
> >>>> On 01/27/2017 10:04 AM, Jagan Teki wrote:
> >>>>> On Mon, Jan 23, 2017 at 8:05 PM, york sun <york.sun@nxp.com> wrote:
> >>>>>> On 12/12/2016 09:32 PM, Yao Yuan wrote:
> >>>>>>> Hi Jagan,
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Do you have any comments?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Thanks for your work and you know it's important for QSPI with
> >>>>>>> S25FS512S.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> It seems S25FS512S can't support the SECT_4K, right?
> >>>>>>>
> >>>>>>> And it better to retain the disable_4kb, but we can add a flag
> >>>>>>> in dts to select whether enable it.
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> Jagan,
> >>>>>>
> >>>>>> This is blocking me from using the board with this specific flash chip.
> >>>>>> Can you take a look? By reverting this single commit 116e005c, my
> >>>>>> board works again.
> >>>>>
> >>>>> I will try to work on this.
> >>>>>
> >>>>
> >>>> Guys,
> >>>>
> >>>> Where are we on this issue?
> >>>>
> >>>> York
> >>>>
> >>>
> >>> Can we revert this patch or have a fix?
> >>
> >> Just wanted to understand more about this, I've attached programming
> >> model in previous mail about this and based on that I've fixed with all 4K.
> >> Waiting for 'Yao Yuan' inputs on this.
> >>
> >
> > +Suresh to follow up this question.
> >
> 
> Suresh,
> 
> Can you follow up on this? This issue is blocking me from testing QSPI on
> LS1046ARDB. Even I revert this patch, I can only erase part of the flash.
> 
> York

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-05  8:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-13  5:27 [U-Boot] sf: Remove spansion_s25fss_disable_4KB_erase Yao Yuan
2017-01-23 19:05 ` york sun
2017-01-27 18:04   ` Jagan Teki
2017-03-16  1:44     ` york sun
     [not found]     ` <73af5495-a439-30d0-565e-469b758d8b19@nxp.com>
2017-03-27 17:35       ` york sun
2017-03-27 17:56         ` Jagan Teki
2017-03-28  1:12           ` Mingkai Hu
2017-03-31  0:19             ` york sun
2017-06-05  8:50               ` Suresh Gupta
2017-03-20 16:12 ` Jagan Teki
2017-03-27 16:45   ` Jagan Teki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.