net: dsa: realtek: support reset controller
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Sun, 25 Feb 2024 16:29:55 +0000 (13:29 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2024 08:21:41 +0000 (08:21 +0000)
commit56998aa6b7f0f31ce8df23c00701af2d8e8a1f1a
treeefe710e60fd5e0ecfdf6ed1aff80871fc8bb6466
parent5fc2d68fc81801162188995e4d3dc0b26747dd76
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>
drivers/net/dsa/realtek/realtek.h
drivers/net/dsa/realtek/rtl83xx.c
drivers/net/dsa/realtek/rtl83xx.h