https://github.com/torvalds/linux
Revision 22e72b5e049b95789b34a4cef316c791e7c2fed5 authored by Marek Vasut on 23 June 2019, 15:12:57 UTC, committed by David S. Miller on 26 June 2019, 20:22:29 UTC
Replace gpiod_set_value() with gpiod_set_value_cansleep(), as the switch
reset GPIO can be connected to e.g. I2C GPIO expander and it is perfectly
fine for the kernel to sleep for a bit in ksz_switch_register().

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Woojung Huh <Woojung.Huh@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 48dd73d
History
Tip revision: 22e72b5e049b95789b34a4cef316c791e7c2fed5 authored by Marek Vasut on 23 June 2019, 15:12:57 UTC
net: dsa: microchip: Use gpiod_set_value_cansleep()
Tip revision: 22e72b5

back to top