From 2ccbde6a77a0faf2209ff5b72c9846bf9932b362 Mon Sep 17 00:00:00 2001 From: Sarthak Garg Date: Tue, 2 Mar 2021 13:28:05 +0530 Subject: [PATCH] mmc: sdhci-msm: Affine irq to first set of mask when CONFIG_SMP enabled For MDM targets with single CPU, CONFIG_SMP won't be enabled so irq_set_affinity_hint will always return EINVAL leading to unnecessary WARN_ON. Use irq_set_affinity_hint only for multiple CPU's or when CONFIG_SMP enabled. Change-Id: Id37299759927953e485850fb015a3739fd3daed7 Signed-off-by: Sarthak Garg --- drivers/mmc/host/sdhci-msm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index aa1a815a380b..3922756aae15 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -3741,8 +3741,10 @@ static int sdhci_msm_setup_qos(struct sdhci_msm_host *msm_host) if (!msm_host->sdhci_qos) return 0; - /* Affine irq to first set of mask */ +#ifdef CONFIG_SMP + /* Affine irq to first set of mask for multiple CPU's*/ WARN_ON(irq_set_affinity_hint(host->irq, &qcg->mask)); +#endif /* Setup notifier for case of affinity change/migration */ msm_host->affinity_notify.notify = sdhci_msm_irq_affinity_notify;