aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/renesas/rswitch.h
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2023-03-15 16:04:24 +0900
committerDavid S. Miller <davem@davemloft.net>2023-03-17 07:50:50 +0000
commit2c59e993c86ad57afde26eaf1beb35694da5fbfe (patch)
tree133baa57533ee0550ac5f3977d8a0ccd8db1b8b2 /drivers/net/ethernet/renesas/rswitch.h
parentnet: renesas: rswitch: Fix the output value of quote from rswitch_rx() (diff)
downloadwireguard-linux-2c59e993c86ad57afde26eaf1beb35694da5fbfe.tar.xz
wireguard-linux-2c59e993c86ad57afde26eaf1beb35694da5fbfe.zip
net: renesas: rswitch: Fix GWTSDIE register handling
Since the GWCA has the TX timestamp feature, this driver should not disable it if one of ports is opened. So, fix it. Reported-by: Phong Hoang <phong.hoang.wz@renesas.com> Fixes: 33f5d733b589 ("net: renesas: rswitch: Improve TX timestamp accuracy") Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/renesas/rswitch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/rswitch.h b/drivers/net/ethernet/renesas/rswitch.h
index 27d3d38c055f..b3e0411b408e 100644
--- a/drivers/net/ethernet/renesas/rswitch.h
+++ b/drivers/net/ethernet/renesas/rswitch.h
@@ -998,6 +998,7 @@ struct rswitch_private {
struct rcar_gen4_ptp_private *ptp_priv;
struct rswitch_device *rdev[RSWITCH_NUM_PORTS];
+ DECLARE_BITMAP(opened_ports, RSWITCH_NUM_PORTS);
struct rswitch_gwca gwca;
struct rswitch_etha etha[RSWITCH_NUM_PORTS];