mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
dm: usb: Allow usb host drivers to implement usb_reset_root_port
Allow usb uclass host drivers to implement usb_reset_root_port, this is used by single port usb hosts which do not emulate a hub, such as otg controllers. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
9b510df703
commit
b2f219b081
@@ -705,6 +705,11 @@ struct dm_usb_ops {
|
||||
* is read). This should be NULL for EHCI, which does not need this.
|
||||
*/
|
||||
int (*alloc_device)(struct udevice *bus, struct usb_device *udev);
|
||||
|
||||
/**
|
||||
* reset_root_port() - Reset usb root port
|
||||
*/
|
||||
int (*reset_root_port)(struct udevice *bus, struct usb_device *udev);
|
||||
};
|
||||
|
||||
#define usb_get_ops(dev) ((struct dm_usb_ops *)(dev)->driver->ops)
|
||||
|
Reference in New Issue
Block a user