mmc: mtk-sd: Add support for ignoring cmd response CRC
authorAndy-ld Lu <andy-ld.lu@mediatek.com>
Tue, 26 Nov 2024 12:48:23 +0000 (20:48 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 10 Dec 2024 10:18:45 +0000 (11:18 +0100)
commit02fcf9c9e237e3a8c31cacf67dbb0366b78a7e4f
tree496f6c26fe25ab9ab6293e8dec1f768b40c17062
parented97550d470d00ebafe9de888fd100cb82d3abb6
mmc: mtk-sd: Add support for ignoring cmd response CRC

The current process flow does not handle MMC requests that are indicated
to ignore the command response CRC. For instance, cmd12 and cmd48 from
mmc_cqe_recovery() are marked to ignore CRC, but they are not matched to
the appropriate response type in msdc_cmd_find_resp(). As a result, they
are defaulted to 'MMC_RSP_NONE', which means no response is expected.

This commit applies the flag 'MMC_RSP_R1B_NO_CRC' to fix the response type
setting in msdc_cmd_find_resp() and adds the logic to ignore CRC in
msdc_cmd_done().

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Andy-ld Lu <andy-ld.lu@mediatek.com>
Message-ID: <20241126125041.16071-3-andy-ld.lu@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c