]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mmc: sdhci-f-sdh30: Replace with sdhci_pltfm
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Fri, 30 Jun 2023 00:45:33 +0000 (09:45 +0900)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 30 Oct 2023 11:00:09 +0000 (12:00 +0100)
commit1fd8395699b12c70c312aca8159855e82b6f437e
tree8fb7648c3cd50576e299a38a016a66f2a088c666
parent1c42b1a809f2d90d53673f1f0b6d061cdd5da6e9
mmc: sdhci-f-sdh30: Replace with sdhci_pltfm

BugLink: https://bugs.launchpad.net/bugs/2038969
commit 5def5c1c15bf22934ee227af85c1716762f3829f upstream.

Even if sdhci_pltfm_pmops is specified for PM, this driver doesn't apply
sdhci_pltfm, so the structure is not correctly referenced in PM functions.
This applies sdhci_pltfm to this driver to fix this issue.

- Call sdhci_pltfm_init() instead of sdhci_alloc_host() and
  other functions that covered by sdhci_pltfm.
- Move ops and quirks to sdhci_pltfm_data
- Replace sdhci_priv() with own private function sdhci_f_sdh30_priv().

Fixes: 87a507459f49 ("mmc: sdhci: host: add new f_sdh30")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230630004533.26644-1-hayashi.kunihiko@socionext.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/mmc/host/sdhci_f_sdh30.c