summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/bcm_sf2.h
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-03-12 13:41:07 +0300
committerDavid S. Miller <davem@davemloft.net>2021-03-13 04:06:37 +0300
commit01488a0ccd9abe15565bed50a45afcddbb0fe199 (patch)
tree7ea402021af0db6a3838673f4c5c01f0423b5dc3 /drivers/net/dsa/bcm_sf2.h
parent6ad086009f87f65043c2a2c0efa27e3915c50e6e (diff)
downloadlinux-01488a0ccd9abe15565bed50a45afcddbb0fe199.tar.xz
net: dsa: bcm_sf2: store PHY interface/mode in port structure
It's needed later for proper switch / crossbar setup. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.h')
-rw-r--r--drivers/net/dsa/bcm_sf2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/bcm_sf2.h b/drivers/net/dsa/bcm_sf2.h
index 1ed901a68536..a0fe0bf46d9f 100644
--- a/drivers/net/dsa/bcm_sf2.h
+++ b/drivers/net/dsa/bcm_sf2.h
@@ -44,6 +44,7 @@ struct bcm_sf2_hw_params {
#define BCM_SF2_REGS_NUM 6
struct bcm_sf2_port_status {
+ phy_interface_t mode;
unsigned int link;
bool enabled;
};