summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJames Wylder <james.wylder@motorola.com>2011-03-14 18:45:26 -0500
committerNiket Sirsi <nsirsi@nvidia.com>2011-07-12 15:04:45 -0700
commit783015ef99652a660a9ed758b21c80d2619ed9fa (patch)
treecfce776d33849c3eefa16ce16dbd57a9739e760e /include
parent6d4f3efddb05a5538f90a4b7e23bbb8a493a9dfa (diff)
usb: misc: out-of-band wake for usb devices
Allow interrupts to wake usb bus for devices/hosts that don't support remote wakeup. Signed-off-by: James Wylder <james.wylder@motorola.com> (cherry picked from commit d843d79035c5286a0241c473a96ad02e9c48f307) Change-Id: I307f8d44603daf77f20b18dcb252c02df90659bd Reviewed-on: http://git-master/r/36702 Reviewed-by: Amit Kamath <akamath@nvidia.com> Tested-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/oob_wake.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/usb/oob_wake.h b/include/linux/usb/oob_wake.h
new file mode 100644
index 000000000000..b24e5ae8d082
--- /dev/null
+++ b/include/linux/usb/oob_wake.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2011 Motorola, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ * 02111-1307, USA
+ */
+#ifndef __USB_OOB_WAKE_H__
+#define __USB_OOB_WAKE_H__
+#include <linux/usb.h>
+
+struct oob_wake_platform_data {
+ unsigned int gpio;
+ __le16 vendor;
+ __le16 product;
+};
+
+int oob_wake_register(struct usb_interface *intf);
+void oob_wake_unregister(struct usb_interface *intf);
+#endif /* __USB_OOB_WAKE_H__ */