]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:58 +0000 (13:48 +0200)
commit4de8baef79b6bb05499cfaa002f99df90a80e0c7
tree874307a046ec0258351168badf22d0b646afc390
parent8b0998bba4a9b84ba0566696dfbee57a6104075f
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