]> git.sur5r.net Git - u-boot/commit
dm: usb: eth: Support driver model with USB Ethernet
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2015 22:47:50 +0000 (16:47 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:40 +0000 (17:39 -0600)
commitc8c2797c381054beaf3de89027af92a0b84b36cc
treeccf9f16c38f52cbe0477c398ec36b38a90892b6d
parenta1ca92eaaf0cac2a11c16b93f0cd0cd6f6256f02
dm: usb: eth: Support driver model with USB Ethernet

At present USB Ethernet does not work with CONFIG_DM_ETH. Add driver model
support to this feature, so that it can work alongside other Ethernet
devices with driver model.

It was found that quite a bit of code is common in most of the USB Ethernet
drivers. Add this code to the common layer to reduce the amount of duplicate
code needed in USB Ethernet drivers when CONFIG_DM_ETH is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
common/cmd_usb.c
drivers/usb/eth/usb_ether.c
include/usb_ether.h