[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221019145246.v2.7.Ia91f031f5f770af7bd2ff3e28b398f277606d970@changeid>
Date: Wed, 19 Oct 2022 14:54:40 -0700
From: Brian Norris <briannorris@...omium.org>
To: Ulf Hansson <ulf.hansson@...aro.org>
Cc: Shawn Lin <shawn.lin@...k-chips.com>,
Shawn Guo <shawnguo@...nel.org>,
Fabio Estevam <festevam@...il.com>,
Haibo Chen <haibo.chen@....com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@...adcom.com>,
NXP Linux Team <linux-imx@....com>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Florian Fainelli <f.fainelli@...il.com>,
Michal Simek <michal.simek@...inx.com>,
Faiz Abbas <faiz_abbas@...com>, linux-mmc@...r.kernel.org,
Jonathan Hunter <jonathanh@...dia.com>,
Al Cooper <alcooperx@...il.com>,
linux-arm-kernel@...ts.infradead.org,
Sowjanya Komatineni <skomatineni@...dia.com>,
linux-kernel@...r.kernel.org,
Thierry Reding <thierry.reding@...il.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Sascha Hauer <s.hauer@...gutronix.de>,
Brian Norris <briannorris@...omium.org>
Subject: [PATCH v2 7/7] mmc: sdhci-pci-*: Drop redundant ->cqe_private check
An earlier patch ("mmc: cqhci: Handle deactivate() when not yet
initialized") makes these redundant.
I keep these as a separate patch, since the earlier patch is a
prerequisite to some important bugfixes that need to be backported via
linux-stable.
Signed-off-by: Brian Norris <briannorris@...omium.org>
---
Changes in v2:
- New in v2
drivers/mmc/host/sdhci-pci-core.c | 3 +--
drivers/mmc/host/sdhci-pci-gli.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c
index 169b84761041..63d62a9228d7 100644
--- a/drivers/mmc/host/sdhci-pci-core.c
+++ b/drivers/mmc/host/sdhci-pci-core.c
@@ -236,8 +236,7 @@ static void sdhci_pci_dumpregs(struct mmc_host *mmc)
static void sdhci_cqhci_reset(struct sdhci_host *host, u8 mask)
{
- if ((host->mmc->caps2 & MMC_CAP2_CQE) && (mask & SDHCI_RESET_ALL) &&
- host->mmc->cqe_private)
+ if ((host->mmc->caps2 & MMC_CAP2_CQE) && (mask & SDHCI_RESET_ALL))
cqhci_deactivate(host->mmc);
sdhci_reset(host, mask);
}
diff --git a/drivers/mmc/host/sdhci-pci-gli.c b/drivers/mmc/host/sdhci-pci-gli.c
index 4d509f656188..5a13fe961620 100644
--- a/drivers/mmc/host/sdhci-pci-gli.c
+++ b/drivers/mmc/host/sdhci-pci-gli.c
@@ -924,8 +924,7 @@ static int gl9763e_add_host(struct sdhci_pci_slot *slot)
static void sdhci_gl9763e_reset(struct sdhci_host *host, u8 mask)
{
- if ((host->mmc->caps2 & MMC_CAP2_CQE) && (mask & SDHCI_RESET_ALL) &&
- host->mmc->cqe_private)
+ if ((host->mmc->caps2 & MMC_CAP2_CQE) && (mask & SDHCI_RESET_ALL))
cqhci_deactivate(host->mmc);
sdhci_reset(host, mask);
}
--
2.38.0.413.g74048e4d9e-goog
Powered by blists - more mailing lists