]> git.ipfire.org Git - people/ms/u-boot.git/commit
dm: usb: Bind generic USB devices when there is no driver
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:31 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:25 +0000 (11:11 -0600)
commit449230f0318da3f3c27aea1753097a8165da6fdb
tree4782a4391fdf0cd2c5e1589a58022b4c09951e40
parent0566e2403d0b6ba8e2f6df0559ad05e81fc20e35
dm: usb: Bind generic USB devices when there is no driver

At present USB devices with no driver model driver cannot be seen in the
device list, and we fail to set them up correctly. This means they cannot
be used.

While having real drivers that support driver model for all USB devices
is the eventual goal, we are not there yet.

As a stop-gap, add a generic USB driver which is bound when we do not have
a real driver. This allows the device to be set up and shown on the bus.
It also allows ad-hoc code (such as usb_ether) to find these devices and
set them up.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/usb-uclass.c
include/dm/uclass-id.h