From b2f219b081de964583a5621bc59d43eb75521598 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 17 Jun 2015 21:33:52 +0200 Subject: 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 Acked-by: Simon Glass --- include/usb.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/usb.h b/include/usb.h index 2bb6a06..25f8543 100644 --- a/include/usb.h +++ b/include/usb.h @@ -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) -- cgit v1.1