]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Add a new phy_flags field to the main driver structure.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 25 Apr 2021 17:45:19 +0000 (13:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 01:37:38 +0000 (18:37 -0700)
commit892699b16aa249bb502e1dc76e6e3cd413ac65d6
treecf435aec7affaf2985ed3956c9d750d49ff02db6
parent2ed41d1a2949d4c1719deb403e5df72bd2c16e53
bnxt_en: Add a new phy_flags field to the main driver structure.

Copy the phy related feature flags from the firmware call
HWRM_PORT_PHY_QCAPS to this new field.  We can also remove the flags
field in the bnxt_test_info structure.  It's cleaner to have all PHY
related flags in one location, directly copied from the firmware.

To keep the BNXT_PHY_CFG_ABLE() macro logic the same, we need to make
a slight adjustment to check that it is a PF.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c