Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7ce4377 authored by Kevin Hao's avatar Kevin Hao Committed by Scott Wood
Browse files

powerpc/fsl_msi: mark the msi cascade handler IRQF_NO_THREAD



The commit 543c043c ("powerpc/fsl_msi: change the irq handler from
chained to normal") changes the msi cascade handler from chained to
normal. Since cascade handler must run in hard interrupt context, this
will cause kernel panic if we force threading of all the interrupt
handler via kernel command parameter 'threadirqs'. So mark the irq
handler IRQF_NO_THREAD explicitly.

Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 8a97577a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -361,7 +361,7 @@ static int fsl_msi_setup_hwirq(struct fsl_msi *msi, struct platform_device *dev,
	cascade_data->virq = virt_msir;
	cascade_data->virq = virt_msir;
	msi->cascade_array[irq_index] = cascade_data;
	msi->cascade_array[irq_index] = cascade_data;


	ret = request_irq(virt_msir, fsl_msi_cascade, 0,
	ret = request_irq(virt_msir, fsl_msi_cascade, IRQF_NO_THREAD,
			  "fsl-msi-cascade", cascade_data);
			  "fsl-msi-cascade", cascade_data);
	if (ret) {
	if (ret) {
		dev_err(&dev->dev, "failed to request_irq(%d), ret = %d\n",
		dev_err(&dev->dev, "failed to request_irq(%d), ret = %d\n",