]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mmc: sdhci: Allow override of mmc host operations
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 9 Feb 2016 14:12:35 +0000 (16:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 11 Feb 2016 10:39:56 +0000 (11:39 +0100)
commitbf60e592a1af4d6f65dd54593250183f14360eed
tree7817511c1fed04bd64e1a5ed78798f833f55589f
parenta32ef81c9889c9554a3c4b465c4ee7b2d26c6b10
mmc: sdhci: Allow override of mmc host operations

In the past, fixes for specific hardware devices were implemented
in sdhci using quirks.  That approach is no longer accepted because
the growing number of quirks was starting to make the code difficult
to understand and maintain.

One alternative to quirks, is to allow drivers to override the default
mmc host operations.  This patch makes it easy to do that, and it is
needed for a subsequent bug fix, for which separate patches are
provided.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org # v4.4+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h