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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:29:18 +0000 (09:29 +0100)
commita03a8693b1a26a3ea435fd4b9607de00c573c60b
tree7bc5cfcd4b5c007c640943c56e076aeb05181ed6
parent57b452c5ab1e0b3126e14856939170d7a9bc72ef
mmc: core: Limit retries when analyse of SDIO tuples fails

commit f92e04f764b86e55e522988e6f4b6082d19a2721 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/sdio_cis.c