Skip to content

spi: sf: ICH SPI driver fix and flash params update

Bin Meng u-boot 5 versions – New

Get series with b4
b4 am CAEUhbmXd2PY237DyLp7bLMRmCvziVChiiqSRRvhd9HBso3vxDA@mail.gmail.com

Versions newest first · linked by author and title

  1. v2 Latest posting 5/50 of 12 patches 0 repliesNew
  2. v2 posting 4/50 of 12 patches 0 repliesSuperseded
  3. v2 posting 3/50 of 12 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 2/50 of 12 patches0 repliesSuperseded
v2 posting 1/512 patches0 repliesSuperseded

Patches in v2 posting 5/5 No applies recorded yet

None of the 12 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 00/12] spi: sf: ICH SPI driver fix and flash params update

Hi Jagan,

Quoted 67 lines · Bin Meng

Hi Jagan,

Quoted 64 lines · Jagan Teki
Quoted 63 lines · Bin Meng

Hi Jagan,

Quoted 60 lines · Bin Meng

Hi Jagan,

Quoted 31 lines · Jagan Teki
Quoted 16 lines · Bin Meng

This series fix several bugs in current ICH SPI driver as well as adding byte program support for the SST25* flash.

Flash params are updated to explicitly list supported read commands and change flash sector size to 4KiB as long as flash supports sector erase (20h) command.

Changes for v2:
- Rebased to u-boot-spi/mater.
- Reviewed and updated the params of all currently supported flash parts per their datasheets.
- Corrected AT25DF321 JEDEC ID.
- Corrected Atmel bulk erase command to 50h instead of D8h.
- Added AT25DF321A, W25X10, W25X20, W25X80 params.

Quoted 13 lines

Bin Meng (12):
spi/ich.c: Fix a bug of reading from a non-64 bytes aligned address spi/ich.c: Set the rx operation mode for ich 7
spi: sf: Support byte program for sst spi flash
sf: Update SST flash params
sf: Update Atmel flash params
sf: Update EON flash params
sf: Update GigaDevice flash params
sf: Update Macronix flash params
sf: Update Spansion flash params
sf: Update Micron flash params
sf: Update Winbond flash params
sf: Give proper spacing between flash table params

Quoted 2 lines

I think you combined two or more changes(unrelated) in a common patches and Added Bulk erase support in e_cmd_rd of sf_params ie quite not correct.

Do you mean I should let PATCH 1/2/3 go as a separate patch set? Since these 3 are tested on my x86 board, could it be Simon to pick up these patches instead of through the u-boot-spi? Also I don't understand you comments about "adding bulk erase support in e_cmd_rd is not correct". The e_cmd_rd in sf_params is updated to specify all supported read commands the flash can support. There is no bulk erase here.

Quoted 8 lines

Please fix those and send me one more.

Mean while I will look at your scenario like you're controller only supports AS, As I said before as AS of AF both are similar way of transferring except the dummy
bits passing from the driver, try to see the fix on driver point of of instead of digging
common sf stuff.

Fixing on the driver part might be possible, might be not. Even though it is possible, I don't want to do that as the ICH manual explicitly says fast read command (0Bh) is not supported by the controller. As far as I can test, actually all of the commands which require an additional dummy byte after the address cycle fail to work. The matches what the manual says.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Regards,
Bin

A gentle ping.

Will back soon, please give some time.

Any update on this patch series?

Ping? Is there any chance this patch series will be merged into v2015.01? I see some other people are posting patches to add more SPI flash support in the parameter table which might do something different from what my patch series are trying to correct. Also I am going to post my x86 patches, and the SPI flash support on my x86 board requires the first 4 patches in this series.

Regards,
Bin