Re: [RFC next v1 3/5] net: stmmac: use GPIO descriptors in stmmac_mdio_reset

2019-06-09 Thread Linus Walleij
On Sun, Jun 9, 2019 at 8:06 PM Martin Blumenstingl wrote: > Switch stmmac_mdio_reset to use GPIO descriptors. GPIO core handles the > "snps,reset-gpio" for GPIO descriptors so we don't need to take care of > it inside the driver anymore. > > The advantage of this is that we now preserve the GPIO

Re: [RFC next v1 3/5] net: stmmac: use GPIO descriptors in stmmac_mdio_reset

2019-06-09 Thread Andrew Lunn
> + struct gpio_desc *reset_gpio; > + > if (data->reset_gpio < 0) { > struct device_node *np = priv->device->of_node; > > - data->reset_gpio = of_get_named_gpio(np, > - "snps,reset-gpio

[RFC next v1 3/5] net: stmmac: use GPIO descriptors in stmmac_mdio_reset

2019-06-09 Thread Martin Blumenstingl
Switch stmmac_mdio_reset to use GPIO descriptors. GPIO core handles the "snps,reset-gpio" for GPIO descriptors so we don't need to take care of it inside the driver anymore. The advantage of this is that we now preserve the GPIO flags which are passed via devicetree. This is required on some newer