fsl/fman: share the event interrupt
authorYangbo Lu <yangbo.lu@nxp.com>
Mon, 25 Jun 2018 12:37:07 +0000 (20:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 13:15:14 +0000 (22:15 +0900)
This patch is to share fman event interrupt because
the 1588 timer driver will also use this interrupt.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Acked-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman.c

index 9530405030a70974c92c1ddc2263b00610aab32c..c415ac67cb7bef218d476fc59f7302b83660513b 100644 (file)
@@ -2801,7 +2801,8 @@ static struct fman *read_dts_node(struct platform_device *of_dev)
        of_node_put(muram_node);
        of_node_put(fm_node);
 
-       err = devm_request_irq(&of_dev->dev, irq, fman_irq, 0, "fman", fman);
+       err = devm_request_irq(&of_dev->dev, irq, fman_irq, IRQF_SHARED,
+                              "fman", fman);
        if (err < 0) {
                dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n",
                        __func__, irq, err);