net: renesas: rswitch: Fix GWTSDIE register handling
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 15 Mar 2023 07:04:24 +0000 (16:04 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2023 07:50:50 +0000 (07:50 +0000)
commit2c59e993c86ad57afde26eaf1beb35694da5fbfe
tree133baa57533ee0550ac5f3977d8a0ccd8db1b8b2
parente05bb97d9c9dd4ba5739a27921044c935a7fb3be
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>
drivers/net/ethernet/renesas/rswitch.c
drivers/net/ethernet/renesas/rswitch.h