Skip to content

Commit 3a18293

Browse files
committed
Merge tag 'soc-fsl-fix-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/leo/linux into arm/fixes
NXP/FSL SoC driver fix for 5.10 DPAA2 DPIO driver - Fix non-static cpumask for irq affinity setting * tag 'soc-fsl-fix-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/leo/linux: soc: fsl: dpio: Get the cpumask through cpumask_of(cpu) Link: https://lore.kernel.org/r/20201125165922.15487-1-leoyang.li@nxp.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents dbae273 + 2663b33 commit 3a18293

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/soc/fsl/dpio/dpio-driver.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ static int register_dpio_irq_handlers(struct fsl_mc_device *dpio_dev, int cpu)
9595
{
9696
int error;
9797
struct fsl_mc_device_irq *irq;
98-
cpumask_t mask;
9998

10099
irq = dpio_dev->irqs[0];
101100
error = devm_request_irq(&dpio_dev->dev,
@@ -112,9 +111,7 @@ static int register_dpio_irq_handlers(struct fsl_mc_device *dpio_dev, int cpu)
112111
}
113112

114113
/* set the affinity hint */
115-
cpumask_clear(&mask);
116-
cpumask_set_cpu(cpu, &mask);
117-
if (irq_set_affinity_hint(irq->msi_desc->irq, &mask))
114+
if (irq_set_affinity_hint(irq->msi_desc->irq, cpumask_of(cpu)))
118115
dev_err(&dpio_dev->dev,
119116
"irq_set_affinity failed irq %d cpu %d\n",
120117
irq->msi_desc->irq, cpu);

0 commit comments

Comments
 (0)