]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-mac: retrieve API version and detect features
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 11 Mar 2022 21:22:25 +0000 (23:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2022 10:41:51 +0000 (10:41 +0000)
commitcd4a9a8686f25fed0b15f05980535c63d8767f06
tree15a164953ee847e7e859cdd2ed0cda390d8995fd
parentfe0f734b1267de67b583b668c31f5fafe02a0cb8
dpaa2-mac: retrieve API version and detect features

Retrieve the API version running on the firmware and based on it detect
which features are available for usage.
The first one to be listed is the capability to change the MAC protocol
at runtime.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h