mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 10:32:24 +00:00
When IS_ERR_VALUE was removed from the mmc core code, it was replaced
with a simple not-zero check. This does not work, as the value checked
is the return value for mmc_select_bus_width, which returns the set
bit width on success. This made eMMC modes higher than HS-DDR unusable.
Fix this by checking for a positive return value instead.
Fixes: 287980e49f ("remove lots of IS_ERR_VALUE abuses")
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Chen-Yu Tsai <[email protected]>
Acked-by: Hans de Goede <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Jaehoon Chung <[email protected]>
Reviewed-by: Shawn Lin <[email protected]>
Tested-by: Marcel Ziswiler <[email protected]>
Tested-by: Bjorn Andersson <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>