
This patch series adopts driver model for usb ether gadget driver. This series is tested with MUSB driver model conversion on AM335x GP evm and AM335x BBB (logs [1]).
Also pushed a branch for testing [2]
Changes from v3: * Removed the patches already applied. * Changed to possitive approach for #ifndef CONFIG_DM_USB * Removed hardcoding of usb device mac id from Kconfig over enviroment. Now it is like use enviroment mac or use random mac generated by dm-eth framework. * Added a build error when DM_ETH is defined and DM_USB not defined as the driver doesn't support this combination * Added two new patches which removed tmp variable which is initialized and never been used and another to fix a crash when DM_USB and DM_ETH are defined.
Changes from v2: * Moved USB ether address from driver hard code to Kconfig entry * Optimized if check in patch 5/6 as mentioned by Marek Vasut.
Changes from initial version: * Separated out the usb gadget driver patches from earlier musb series [3] for testing and submitting of dwc3 dm musb patches.
[1] - http://pastebin.ubuntu.com/23628667/ [2] - git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git usb-ether-v4 [3] - http://lists.denx.de/pipermail/u-boot/2016-February/246827.html
Mugunthan V N (3): drivers: usb: gadget: ether: do not register usb when DM_USB and DM_ETH defined drivers: usb: gadget: ether: remove unused variable tmp drivers: usb: gadget: ether/rndis: convert driver to adopt device driver model
drivers/usb/gadget/ether.c | 164 ++++++++++++++++++++++++++++++++++++++++----- drivers/usb/gadget/rndis.c | 13 +++- drivers/usb/gadget/rndis.h | 19 ++++-- include/net.h | 8 +++ 4 files changed, 183 insertions(+), 21 deletions(-)