diff options
author | 2024-02-25 13:29:55 -0300 | |
---|---|---|
committer | 2024-02-28 08:21:41 +0000 | |
commit | 56998aa6b7f0f31ce8df23c00701af2d8e8a1f1a (patch) | |
tree | efe710e60fd5e0ecfdf6ed1aff80871fc8bb6466 /drivers/net/dsa/realtek/rtl83xx.h | |
parent | dt-bindings: net: dsa: realtek: add reset controller (diff) | |
download | linux-rng-56998aa6b7f0f31ce8df23c00701af2d8e8a1f1a.tar.xz linux-rng-56998aa6b7f0f31ce8df23c00701af2d8e8a1f1a.zip |
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 '')
-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 */ |