mmc: sdhci-of-esdhc: Don't walk device-tree on every interrupt
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 3 Sep 2020 01:20:29 +0000 (13:20 +1200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:43 +0000 (13:55 +0200)
commitc10bc9123c25713137297d58ae1b170599a79b45
treeb017065dace7e067001dcff86d8ae0b6cbfb8dea
parentfe7c9fa20fc246a86c5aca1cd68c74732902ba7a
mmc: sdhci-of-esdhc: Don't walk device-tree on every interrupt

commit 060522d89705f9d961ef1762dc1468645dd21fbd upstream.

Commit b214fe592ab7 ("mmc: sdhci-of-esdhc: add erratum eSDHC7 support")
added code to check for a specific compatible string in the device-tree
on every esdhc interrupat. Instead of doing this record the quirk in
struct sdhci_esdhc and lookup the struct in esdhc_irq.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20200903012029.25673-1-chris.packham@alliedtelesis.co.nz
Fixes: b214fe592ab7 ("mmc: sdhci-of-esdhc: add erratum eSDHC7 support")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-of-esdhc.c