]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa_eth: register a device link for the qman portal used
authorMadalin Bucur <madalin.bucur@nxp.com>
Thu, 31 Oct 2019 14:37:59 +0000 (16:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 19:13:34 +0000 (12:13 -0700)
commitb80057ec6bb8266750570ca8a8748b8be5bdb84b
tree5b5e27ecc0843b0c361d37eb33f20875d8366942
parentd5f08efa2b04e72eabb442bb8e239f426669b02a
dpaa_eth: register a device link for the qman portal used

Before this change, unbinding the QMan portals did not trigger a
corresponding unbinding of the dpaa_eth making use of it; the first
QMan portal related operation issued afterwards crashed the kernel.
The device link ensures the dpaa_eth dependency upon the qman portal
used is honoured at the QMan portal removal.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
drivers/soc/fsl/qbman/qman.c
include/soc/fsl/qman.h