Message ID | 20170515080244.21345-25-oliver@schinagl.nl |
---|---|
State | Changes Requested |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show |
On 15 May 2017 at 02:02, Olliver Schinagl <oliver@schinagl.nl> wrote: > Commit e72ced234045f ("net: designware: Export the operation functions") > started to expose some of the net_ops. The sunxi_gmac glue driver also > needs the start function, so let us expose that as well. > > Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> > --- > drivers/net/designware.c | 2 +- > drivers/net/designware.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass <sjg@chromium.org>
On Mon, May 15, 2017 at 3:02 AM, Olliver Schinagl <oliver@schinagl.nl> wrote: > Commit e72ced234045f ("net: designware: Export the operation functions") > started to expose some of the net_ops. The sunxi_gmac glue driver also > needs the start function, so let us expose that as well. > > Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 3e18f28232..ac8258c8bd 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -585,7 +585,7 @@ int designware_initialize(ulong base_addr, u32 interface) #endif #ifdef CONFIG_DM_ETH -static int designware_eth_start(struct udevice *dev) +int designware_eth_start(struct udevice *dev) { struct eth_pdata *pdata = dev_get_platdata(dev); struct dw_eth_dev *priv = dev_get_priv(dev); diff --git a/drivers/net/designware.h b/drivers/net/designware.h index 7992d0ebee..24b64d975c 100644 --- a/drivers/net/designware.h +++ b/drivers/net/designware.h @@ -260,6 +260,7 @@ int designware_eth_send(struct udevice *dev, void *packet, int length); int designware_eth_recv(struct udevice *dev, int flags, uchar **packetp); int designware_eth_free_pkt(struct udevice *dev, uchar *packet, int length); +int designware_eth_start(struct udevice *dev); void designware_eth_stop(struct udevice *dev); int designware_eth_write_hwaddr(struct udevice *dev); #endif
Commit e72ced234045f ("net: designware: Export the operation functions") started to expose some of the net_ops. The sunxi_gmac glue driver also needs the start function, so let us expose that as well. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> --- drivers/net/designware.c | 2 +- drivers/net/designware.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)