drivers: mmc: Fix R2 response type definition
authorShawn Guo <shawn.guo@linaro.org>
Fri, 28 Sep 2018 06:21:01 +0000 (14:21 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 28 Sep 2018 06:37:09 +0000 (14:37 +0800)
commita2a69bc89fb7f4badca445e2fe94d60f425de65e
treed09f9ac03bdcfe9093dcb5439c805e8b43c2fd8d
parent9068257ea7e0242214f9e833410d9b3fc8bcbe45
drivers: mmc: Fix R2 response type definition

The Poplar is broken on eMMC initialization because of commit
2a82a9c95f6c ("drivers: emmc: dw_mmc: Add response flag into response ID
definition").  It changes the driver behavior on response type handling
in dw_send_cmd(), because MMC_RESPONSE_R(2) and MMC_RESPONSE_R2 are
different things.  MMC core is still sending the former while we already
changed to check the latter in dw_mmc driver.

This patch fixes R2 response type in MMC core code.  It's the same
thing as what commit 94522ff7f6d2 ("drivers: mmc: Fix R3 response type
definition") does for R3 response.

With this fix, Poplar is back to work.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
drivers/mmc/mmc.c