Andre Przywara
0b508ca821
sunxi: mmc: A20: Fix MMC optimisation
...
Some SoCs (as seen on A20) seem to misreport the MMC FIFO level if the
FIFO is completely full: the level size reads as zero, but the FIFO_FULL
bit is set. We won't do a single iteration of the read loop in this
case, so will be stuck forever.
Check for this situation and use a safe minimal FIFO size instead when
we hit this case.
This fixes MMC boot on A20 devices after the MMC FIFO optimisation
(9faae5457f
).
Signed-off-by: Andre Przywara <andre.przywara@arm.com >
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com >
2021-09-14 00:02:10 +01:00
..
2021-07-27 10:56:09 +05:30
2021-07-30 17:13:03 +08:00
2021-07-30 17:13:03 +08:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2021-06-22 12:02:11 +08:00
2021-02-02 15:33:42 -05:00
2021-07-06 14:07:36 -04:00
2021-08-09 14:46:51 +02:00
2021-01-18 15:23:06 -05:00
2021-09-13 11:46:50 +08:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-03-02 13:53:37 +01:00
2021-02-02 15:33:42 -05:00
2021-08-09 14:46:51 +02:00
2021-07-06 18:10:10 -04:00
2021-02-19 15:10:46 +08:00
2020-12-13 16:51:09 -07:00
2021-06-22 12:03:11 +08:00
2021-02-19 15:08:03 +08:00
2020-12-13 16:51:08 -07:00
2021-02-19 15:10:41 +08:00
2021-09-10 18:17:04 +08:00
2021-09-10 18:17:49 +08:00
2021-02-02 15:33:42 -05:00
2021-06-22 12:01:52 +08:00
2021-02-15 10:16:45 -05:00
2021-04-08 08:50:52 +02:00
2021-01-05 12:26:35 -07:00
2021-01-15 17:48:36 +08:00
2021-04-22 02:47:57 +02:00
2021-07-28 14:29:36 -04:00
2021-03-27 13:59:37 +13:00
2021-02-02 15:33:42 -05:00
2021-07-06 13:50:56 +08:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-02-19 15:11:08 +08:00
2021-08-11 18:02:07 +08:00
2021-07-30 17:12:15 +08:00
2021-02-02 15:33:42 -05:00
2021-07-21 10:27:35 -06:00
2021-02-02 15:33:42 -05:00
2021-09-10 18:13:34 +08:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2021-06-22 12:02:32 +08:00
2021-02-02 15:33:42 -05:00
2021-01-13 09:52:58 +01:00
2021-09-14 00:02:10 +01:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2021-01-31 14:08:45 +01:00
2020-12-13 16:51:08 -07:00
2021-02-02 15:33:42 -05:00
2021-08-26 08:08:11 +02:00