diff options
author | Luiz Angelo Daros de Luca <luizluca@gmail.com> | 2024-02-25 19:29:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-28 11:21:41 +0300 |
commit | 56998aa6b7f0f31ce8df23c00701af2d8e8a1f1a (patch) | |
tree | efe710e60fd5e0ecfdf6ed1aff80871fc8bb6466 /drivers/net/dsa/realtek/rtl83xx.h | |
parent | 5fc2d68fc81801162188995e4d3dc0b26747dd76 (diff) | |
download | linux-56998aa6b7f0f31ce8df23c00701af2d8e8a1f1a.tar.xz |
net: dsa: realtek: support reset controller
Add support for resetting the device using a reset controller,
complementing the existing GPIO reset functionality (reset-gpios).
Although the reset is optional and the driver performs a soft reset
during setup, if the initial reset pin state was asserted, the driver
will not detect the device until the reset is deasserted.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/realtek/rtl83xx.h')
-rw-r--r-- | drivers/net/dsa/realtek/rtl83xx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/realtek/rtl83xx.h b/drivers/net/dsa/realtek/rtl83xx.h index 0ddff33df6b0..c8a0ff8fd75e 100644 --- a/drivers/net/dsa/realtek/rtl83xx.h +++ b/drivers/net/dsa/realtek/rtl83xx.h @@ -18,5 +18,7 @@ int rtl83xx_register_switch(struct realtek_priv *priv); void rtl83xx_unregister_switch(struct realtek_priv *priv); void rtl83xx_shutdown(struct realtek_priv *priv); void rtl83xx_remove(struct realtek_priv *priv); +void rtl83xx_reset_assert(struct realtek_priv *priv); +void rtl83xx_reset_deassert(struct realtek_priv *priv); #endif /* _RTL83XX_H */ |