Commit 0a8e983
mtd: cfi_cmdset_0002: Use chip_ready() for write on S29GL064N
Since commit dfeae10("mtd: cfi_cmdset_0002: Change write buffer to
check correct value") buffered writes fail on S29GL064N. This is
because, on S29GL064N, reads return 0xFF at the end of DQ polling for
write completion, where as, chip_good() check expects actual data
written to the last location to be returned post DQ polling completion.
Fix is to revert to using chip_good() for S29GL064N which only checks
for DQ lines to settle down to determine write completion.
Link: https://lore.kernel.org/r/b687c259-6413-26c9-d4c9-b3afa69ea124@pengutronix.de/
Fixes: dfeae10("mtd: cfi_cmdset_0002: Change write buffer to check correct value")
Cc: stable@vger.kernel.org
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220323170458.5608-3-ikegami.t@gmail.com1 parent 083084d commit 0a8e983
2 files changed
Lines changed: 35 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
436 | 440 | | |
437 | 441 | | |
438 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
439 | 452 | | |
440 | 453 | | |
441 | 454 | | |
| |||
474 | 487 | | |
475 | 488 | | |
476 | 489 | | |
| 490 | + | |
477 | 491 | | |
478 | 492 | | |
479 | 493 | | |
| |||
846 | 860 | | |
847 | 861 | | |
848 | 862 | | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
849 | 875 | | |
850 | 876 | | |
851 | 877 | | |
| |||
1662 | 1688 | | |
1663 | 1689 | | |
1664 | 1690 | | |
1665 | | - | |
1666 | | - | |
| 1691 | + | |
| 1692 | + | |
1667 | 1693 | | |
1668 | 1694 | | |
1669 | | - | |
| 1695 | + | |
1670 | 1696 | | |
1671 | 1697 | | |
1672 | 1698 | | |
1673 | 1699 | | |
1674 | 1700 | | |
1675 | 1701 | | |
1676 | 1702 | | |
1677 | | - | |
| 1703 | + | |
1678 | 1704 | | |
1679 | 1705 | | |
1680 | 1706 | | |
| |||
1942 | 1968 | | |
1943 | 1969 | | |
1944 | 1970 | | |
1945 | | - | |
1946 | | - | |
| 1971 | + | |
| 1972 | + | |
1947 | 1973 | | |
1948 | 1974 | | |
1949 | | - | |
| 1975 | + | |
1950 | 1976 | | |
1951 | 1977 | | |
1952 | 1978 | | |
1953 | 1979 | | |
1954 | 1980 | | |
1955 | 1981 | | |
1956 | | - | |
| 1982 | + | |
1957 | 1983 | | |
1958 | 1984 | | |
1959 | 1985 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
| |||
0 commit comments