diff options
author | Florin Chiculita <florinlaurentiu.chiculita@nxp.com> | 2019-10-16 10:36:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-17 15:27:29 -0400 |
commit | 8398b375a9e3f5e4bba9bcdfed152a8a247dee01 (patch) | |
tree | 842a26a3e04731612ade1d78302329cf107f67e2 /drivers/net/ethernet/freescale/dpaa2/dpni.h | |
parent | usb: hso: obey DMA rules in tiocmget (diff) | |
download | linux-dev-8398b375a9e3f5e4bba9bcdfed152a8a247dee01.tar.xz linux-dev-8398b375a9e3f5e4bba9bcdfed152a8a247dee01.zip |
dpaa2-eth: add irq for the dpmac connect/disconnect event
Add IRQ for the DPNI endpoint change event, resolving the issue
when a dynamically created DPNI gets a randomly generated hw address
when the endpoint is a DPMAC object.
Signed-off-by: Florin Chiculita <florinlaurentiu.chiculita@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpni.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpni.h b/drivers/net/ethernet/freescale/dpaa2/dpni.h index fd583911b6c0..ee0711d06b3a 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpni.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpni.h @@ -133,9 +133,12 @@ int dpni_reset(struct fsl_mc_io *mc_io, */ #define DPNI_IRQ_INDEX 0 /** - * IRQ event - indicates a change in link state + * IRQ events: + * indicates a change in link state + * indicates a change in endpoint */ #define DPNI_IRQ_EVENT_LINK_CHANGED 0x00000001 +#define DPNI_IRQ_EVENT_ENDPOINT_CHANGED 0x00000002 int dpni_set_irq_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, |