mmc: tmio: enhance illegal sequence handling
authorAi Kyuse <ai.kyuse.uw@renesas.com>
Thu, 3 Nov 2016 14:16:00 +0000 (15:16 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:00:55 +0000 (09:00 +0100)
commit96e0b2ba00ee5dacb12bed6585145ce784ec9153
tree6138603cf5fb798bbc392def4c2d34383ace257b
parentc820af5f18ec248b3cb61a9a9ce47ef0f2e9ec63
mmc: tmio: enhance illegal sequence handling

An illegal sequence command error may occur if there is a stopbit or
cmd_index error as well as a CRC error. The correct course of action
is to re-enable IRQs

An illegal sequence data error may occur if there is a CRC or stopbit
error,  or underrun. In this case set data->error correctly.

This is in preparation for enabling tuning support which relies on
differentiating between illegal sequence and other errors.

Signed-off-by: Ai Kyuse <ai.kyuse.uw@renesas.com>
[simon: broken out of a larger patch]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_pio.c