Skip to content

Commit d397a82

Browse files
committed
Merge tag 'mmc-v5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Pull MMC host fixes from Ulf Hansson: - sdhci-msm: Silence warning about turning function into static - sdhci-pci-gli: Fix support for GL975x by enabling MSI interrupt * tag 'mmc-v5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: mmc: sdhci-pci-gli: Enable MSI interrupt for GL975x mmc: sdhci-msm: Mark sdhci_msm_cqe_disable static
2 parents 7de41b1 + 31e43f3 commit d397a82

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

drivers/mmc/host/sdhci-msm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ static u32 sdhci_msm_cqe_irq(struct sdhci_host *host, u32 intmask)
15901590
return 0;
15911591
}
15921592

1593-
void sdhci_msm_cqe_disable(struct mmc_host *mmc, bool recovery)
1593+
static void sdhci_msm_cqe_disable(struct mmc_host *mmc, bool recovery)
15941594
{
15951595
struct sdhci_host *host = mmc_priv(mmc);
15961596
unsigned long flags;

drivers/mmc/host/sdhci-pci-gli.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,26 @@ static int gl9750_execute_tuning(struct sdhci_host *host, u32 opcode)
262262
return 0;
263263
}
264264

265+
static void gli_pcie_enable_msi(struct sdhci_pci_slot *slot)
266+
{
267+
int ret;
268+
269+
ret = pci_alloc_irq_vectors(slot->chip->pdev, 1, 1,
270+
PCI_IRQ_MSI | PCI_IRQ_MSIX);
271+
if (ret < 0) {
272+
pr_warn("%s: enable PCI MSI failed, error=%d\n",
273+
mmc_hostname(slot->host->mmc), ret);
274+
return;
275+
}
276+
277+
slot->host->irq = pci_irq_vector(slot->chip->pdev, 0);
278+
}
279+
265280
static int gli_probe_slot_gl9750(struct sdhci_pci_slot *slot)
266281
{
267282
struct sdhci_host *host = slot->host;
268283

284+
gli_pcie_enable_msi(slot);
269285
slot->host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
270286
sdhci_enable_v4_mode(host);
271287

@@ -276,6 +292,7 @@ static int gli_probe_slot_gl9755(struct sdhci_pci_slot *slot)
276292
{
277293
struct sdhci_host *host = slot->host;
278294

295+
gli_pcie_enable_msi(slot);
279296
slot->host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
280297
sdhci_enable_v4_mode(host);
281298

0 commit comments

Comments
 (0)