]> Git Repo - J-u-boot.git/commit
mtd: cfi: Fix checking status register feature
authorYork Sun <[email protected]>
Sat, 18 Nov 2017 19:09:08 +0000 (11:09 -0800)
committerStefan Roese <[email protected]>
Mon, 4 Dec 2017 06:41:32 +0000 (07:41 +0100)
commit2544f47078635958bacb106684a2f81f57a4ed80
treec6aa01528f1dad1f2708cb06cec1e121dc714685
parentb06c46de632c55f4c39d404c6f0f65e414b31050
mtd: cfi: Fix checking status register feature

Commit 72443c7f7d21 ("mtd: cfi: Add support for status register
polling") added a feature check to determine if status register
is available for certain flash chips. The "lower software bits"
register used to determine this feature is not backward compati-
ble. Older flash chips without this feature has reserved value
0xff. Instead of checking "lower software bits" register, use
CFI primary vendor-specific extended query. Since CFI version
1.4, software features can be read from offset 0x53 according to
document AN201168 from Cypress.

Signed-off-by: York Sun <[email protected]>
CC: Marek Vasut <[email protected]>
Tested-by: Marek Vasut <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
drivers/mtd/cfi_flash.c
This page took 0.034531 seconds and 4 git commands to generate.