aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2022-03-03 17:45:22 +0100
committerUlf Hansson <[email protected]>2022-03-15 10:24:55 +0100
commit3b6c472822f8bdeaa3cea8290f5b4a210dca5585 (patch)
tree95486b9df599c8b02b2589f64eb256fcc493196e /net/lapb/lapb_iface.c
parente23b2f54db1dcdde8302e4ada41805c8297fac27 (diff)
mmc: core: Improve fallback to speed modes if eMMC HS200 fails
In the error path of mmc_select_hs200() we are trying our best to restore the card/host into a valid state. This makes sense, especially if we encounter a simple switch error (-EBADMSG). However, rather than then continue with using the legacy speed mode, let's try the other better speed modes first. Additionally, let's update the card->mmc_avail_type to avoid us from trying a broken HS200 mode again. In an Amlogic S905W based TV box where the switch to HS200 mode fails for the eMMC, this allows us to use the eMMC in DDR mode in favor of the legacy mode, which greatly improves the performance. Suggested-by: Heiner Kallweit <[email protected]> Signed-off-by: Ulf Hansson <[email protected]> Tested-by: Heiner Kallweit <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions