git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
linux
/
usb_otg.h
diff --git
a/include/linux/usb_otg.h
b/include/linux/usb_otg.h
index
c668314
..
f827f6e
100644
(file)
--- a/
include/linux/usb_otg.h
+++ b/
include/linux/usb_otg.h
@@
-63,6
+63,10
@@
struct otg_transceiver {
int (*set_power)(struct otg_transceiver *otg,
unsigned mA);
int (*set_power)(struct otg_transceiver *otg,
unsigned mA);
+ /* for non-OTG B devices: set transceiver into suspend mode */
+ int (*set_suspend)(struct otg_transceiver *otg,
+ int suspend);
+
/* for B devices only: start session with A-Host */
int (*start_srp)(struct otg_transceiver *otg);
/* for B devices only: start session with A-Host */
int (*start_srp)(struct otg_transceiver *otg);
@@
-107,6
+111,15
@@
otg_set_power(struct otg_transceiver *otg, unsigned mA)
return otg->set_power(otg, mA);
}
return otg->set_power(otg, mA);
}
+static inline int
+otg_set_suspend(struct otg_transceiver *otg, int suspend)
+{
+ if (otg->set_suspend != NULL)
+ return otg->set_suspend(otg, suspend);
+ else
+ return 0;
+}
+
static inline int
otg_start_srp(struct otg_transceiver *otg)
{
static inline int
otg_start_srp(struct otg_transceiver *otg)
{