Commit c27bb13
committed
mtd: spi-nor: fix erase_type array to indicate current map conf
BFPT advertises all the erase types supported by all the possible
map configurations. Mask out the erase types that are not supported
by the current map configuration.
Backward compatibility test done on sst26vf064b.
Fixes: b038e8e ("mtd: spi-nor: parse SFDP Sector Map Parameter Table")
Reported-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
(cherry picked from commit dc92843)
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>1 parent 3011fe9 commit c27bb13
1 file changed
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2943 | 2943 | | |
2944 | 2944 | | |
2945 | 2945 | | |
2946 | | - | |
| 2946 | + | |
2947 | 2947 | | |
2948 | 2948 | | |
2949 | 2949 | | |
2950 | 2950 | | |
2951 | | - | |
| 2951 | + | |
| 2952 | + | |
2952 | 2953 | | |
2953 | 2954 | | |
2954 | 2955 | | |
| |||
2962 | 2963 | | |
2963 | 2964 | | |
2964 | 2965 | | |
| 2966 | + | |
2965 | 2967 | | |
2966 | 2968 | | |
2967 | 2969 | | |
| |||
2978 | 2980 | | |
2979 | 2981 | | |
2980 | 2982 | | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
2981 | 2989 | | |
2982 | 2990 | | |
2983 | 2991 | | |
2984 | 2992 | | |
| 2993 | + | |
2985 | 2994 | | |
2986 | 2995 | | |
2987 | 2996 | | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
2988 | 3015 | | |
2989 | 3016 | | |
2990 | 3017 | | |
| |||
0 commit comments