Skip to content

Commit 9f3fbe8

Browse files
committed
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq fixes from Thomas Gleixner: "Two small fixlets: - Add the missing iomu mapping call in the Freescale/NXP/Qualcomm/ whoever owns it now/ SCFG MSI irqchip driver. Otherwise IRQs wont work at all. - Fix a SMP=n build warning in the STM32 irq chip driver" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: irqchip/ls-scfg-msi: Map MSIs in the iommu irqchip/stm32: Fix non-SMP build warning
2 parents a8a4021 + 0cdd431 commit 9f3fbe8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

drivers/irqchip/irq-ls-scfg-msi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <linux/of_pci.h>
2222
#include <linux/of_platform.h>
2323
#include <linux/spinlock.h>
24+
#include <linux/dma-iommu.h>
2425

2526
#define MSI_IRQS_PER_MSIR 32
2627
#define MSI_MSIR_OFFSET 4
@@ -94,6 +95,8 @@ static void ls_scfg_msi_compose_msg(struct irq_data *data, struct msi_msg *msg)
9495

9596
if (msi_affinity_flag)
9697
msg->data |= cpumask_first(data->common->affinity);
98+
99+
iommu_dma_map_msi_msg(data->irq, msg);
97100
}
98101

99102
static int ls_scfg_msi_set_affinity(struct irq_data *irq_data,

drivers/irqchip/irq-stm32-exti.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,7 @@ static struct irq_chip stm32_exti_h_chip = {
552552
.irq_set_type = stm32_exti_h_set_type,
553553
.irq_set_wake = stm32_exti_h_set_wake,
554554
.flags = IRQCHIP_MASK_ON_SUSPEND,
555-
#ifdef CONFIG_SMP
556-
.irq_set_affinity = stm32_exti_h_set_affinity,
557-
#endif
555+
.irq_set_affinity = IS_ENABLED(CONFIG_SMP) ? stm32_exti_h_set_affinity : NULL,
558556
};
559557

560558
static int stm32_exti_h_domain_alloc(struct irq_domain *dm,

0 commit comments

Comments
 (0)