Re: [PATCH v4 4/7] net: pch_gbe: Add device tree support

2017-06-05 Thread Andrew Lunn
> +static struct pch_gbe_privdata * > +pch_gbe_get_priv(struct pci_dev *pdev, const struct pci_device_id *pci_id) > +{ > + struct pch_gbe_privdata *pdata; > + struct gpio_desc *gpio; > + > + if (!IS_ENABLED(CONFIG_OF)) > + return (struct pch_gbe_privdata *)pci_id->driver_dat

[PATCH v4 4/7] net: pch_gbe: Add device tree support

2017-06-05 Thread Paul Burton
Introduce support for retrieving the PHY reset GPIO from device tree, which will be used on the MIPS Boston development board. This requires support for probe deferral in order to work correctly, since the order of device probe is not guaranteed & typically the EG20T GPIO controller device will be