Skip to content

Commit 35fcd28

Browse files
mmc: sdhci-brcmstb: Reconfigure on resume
Signed-off-by: Peter Bailey <peter.bailey@raspberrypi.com>
1 parent 33b71af commit 35fcd28

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/mmc/host/sdhci-brcmstb.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,13 @@ static int sdhci_brcmstb_resume(struct device *dev)
770770
struct sdhci_host *host = dev_get_drvdata(dev);
771771
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
772772
struct sdhci_brcmstb_priv *priv = sdhci_pltfm_priv(pltfm_host);
773+
const struct brcmstb_match_priv *match_priv =
774+
of_device_get_match_data(dev);
773775
int ret;
774776

777+
if (match_priv && match_priv->cfginit)
778+
match_priv->cfginit(host);
779+
775780
ret = sdhci_pltfm_resume(dev);
776781
if (!ret && priv->base_freq_hz) {
777782
ret = clk_prepare_enable(priv->base_clk);

0 commit comments

Comments
 (0)