Re: [PATCH] net: dsa: microchip: Use gpiod_set_value_cansleep()

2019-06-23 Thread Marek Vasut
On 6/23/19 5:09 PM, Andrew Lunn wrote: > On Sun, Jun 23, 2019 at 02:10:36PM +0200, Marek Vasut wrote: >> 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

Re: [PATCH] net: dsa: microchip: Use gpiod_set_value_cansleep()

2019-06-23 Thread Andrew Lunn
On Sun, Jun 23, 2019 at 02:10:36PM +0200, Marek Vasut wrote: > 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:

[PATCH] net: dsa: microchip: Use gpiod_set_value_cansleep()

2019-06-23 Thread Marek Vasut
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 Cc: Andrew Lunn Cc: Florian Fainelli Cc: Linus Walleij