net: dsa: microchip: ksz8: on exit hold switch in reset

When the switch is probed, the last step is to register with the dsa subsystem.
However, the dsa subsystem might not be initialized yet and will return
EPROBE_DEFER. That also means the probing of the switch has to be deferred.
Because the ksz8863 switches by default and we have to guarantee that we
can keep both ports seperated, the switch must be put back into reset.

Signed-off-by: Jan Sondhauss <jan.sondhauss@wago.com>
This commit is contained in:
Jan Sondhauss
2025-07-08 09:21:12 +02:00
parent 49c149a27c
commit 82249219bb
+2
View File
@@ -1487,6 +1487,8 @@ int ksz8_switch_init(struct ksz_device *dev)
void ksz8_switch_exit(struct ksz_device *dev)
{
ksz8_reset_switch(dev);
if (dev->reset_gpio)
gpiod_set_value_cansleep(dev->reset_gpio, 1);
}
MODULE_AUTHOR("Tristram Ha <Tristram.Ha@microchip.com>");