mmc: core: Limit retries when analyse of SDIO tuples fails
authorFengnan Chang <fengnanchang@gmail.com>
Sat, 23 Jan 2021 03:32:31 +0000 (11:32 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:13:06 +0000 (11:13 +0100)
commitf92e04f764b86e55e522988e6f4b6082d19a2721
tree470a485e35853b06f97c516770d3d4c35d346285
parent1048ba83fb1c00cd24172e23e8263972f6b5d9ac
mmc: core: Limit retries when analyse of SDIO tuples fails

When analysing tuples fails we may loop indefinitely to retry. Let's avoid
this by using a 10s timeout and bail if not completed earlier.

Signed-off-by: Fengnan Chang <fengnanchang@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210123033230.36442-1-fengnanchang@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio_cis.c