Commit 83c9c7e
spi: intel: Keep the BIOS partition inside the first chip
If there are two flash chips connected flash regions can refer to the
second chip too. In this case we may see the following warning:
mtd: partition "BIOS" extends beyond the end of device "0000:00:1f.5" --
size truncated to 0x400000
For this reason, check the BIOS partition size against the chip size and
make sure it stays within the that.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20240201121638.207632-2-mika.westerberg@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent e58db3b commit 83c9c7e
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1257 | 1264 | | |
1258 | 1265 | | |
1259 | 1266 | | |
| |||
1350 | 1357 | | |
1351 | 1358 | | |
1352 | 1359 | | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
1353 | 1364 | | |
1354 | 1365 | | |
1355 | 1366 | | |
| |||
1369 | 1380 | | |
1370 | 1381 | | |
1371 | 1382 | | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | 1383 | | |
1377 | 1384 | | |
1378 | 1385 | | |
| |||
0 commit comments