summaryrefslogtreecommitdiffstats
path: root/include/usb
diff options
context:
space:
mode:
authorPeter Mamonov <pmamonov@gmail.com>2015-10-14 13:15:49 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-10-14 15:35:30 +0200
commite1d67aa40ff1d2d75d526da6b5bbc77559b4690c (patch)
tree5e027efedfee775134a666176952cfa258789bbc /include/usb
parent6b0cbf2059d1a6f2f58965bae47c4f9c54174aa4 (diff)
downloadbarebox-e1d67aa40ff1d2d75d526da6b5bbc77559b4690c.tar.gz
barebox-e1d67aa40ff1d2d75d526da6b5bbc77559b4690c.tar.xz
usb: core: return -EAGAIN on usb_* functions reentrance
Signed-off-by: Peter Mamonov <pmamonov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb/usb.h b/include/usb/usb.h
index 8f3ce2aeff..aedc527f58 100644
--- a/include/usb/usb.h
+++ b/include/usb/usb.h
@@ -152,6 +152,7 @@ struct usb_host {
struct device_d *hw_dev;
int busnum;
struct usb_device *root_dev;
+ int sem;
};
int usb_register_host(struct usb_host *);