diff options
| author | Chen-Yu Tsai <[email protected]> | 2016-05-29 07:04:42 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2016-06-02 08:39:05 +0000 |
| commit | f741494363c6c90e6744117d2771bbdf0fb3c455 (patch) | |
| tree | 631a6a08eebc95f150c797a44ea4714c7c6ea57e /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | Linux 4.7-rc1 (diff) | |
| download | kernel-f741494363c6c90e6744117d2771bbdf0fb3c455.tar.gz kernel-f741494363c6c90e6744117d2771bbdf0fb3c455.zip | |
mmc: fix mmc mode selection for HS-DDR and higher
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: 287980e49ffc ("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]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
