projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'backport/v3.14.24-ltsi-rc1/phy-rcar-gen2-usb-to-v3.15' into backport/v3...
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
drivers
/
usb
/
core
/
hub.h
diff --git
a/drivers/usb/core/hub.h
b/drivers/usb/core/hub.h
index
4e4790d
..
baf5b48
100644
(file)
--- a/
drivers/usb/core/hub.h
+++ b/
drivers/usb/core/hub.h
@@
-78,7
+78,7
@@
struct usb_hub {
/**
* struct usb port - kernel's representation of a usb port
/**
* struct usb port - kernel's representation of a usb port
- * @child: usb device atta
t
ched to the port
+ * @child: usb device attached to the port
* @dev: generic device interface
* @port_owner: port's owner
* @connect_type: port's connect type
* @dev: generic device interface
* @port_owner: port's owner
* @connect_type: port's connect type
@@
-111,6
+111,16
@@
extern int hub_port_debounce(struct usb_hub *hub, int port1,
extern int usb_clear_port_feature(struct usb_device *hdev,
int port1, int feature);
extern int usb_clear_port_feature(struct usb_device *hdev,
int port1, int feature);
+static inline bool hub_is_port_power_switchable(struct usb_hub *hub)
+{
+ __le16 hcs;
+
+ if (!hub)
+ return false;
+ hcs = hub->descriptor->wHubCharacteristics;
+ return (le16_to_cpu(hcs) & HUB_CHAR_LPSM) < HUB_CHAR_NO_LPSM;
+}
+
static inline int hub_port_debounce_be_connected(struct usb_hub *hub,
int port1)
{
static inline int hub_port_debounce_be_connected(struct usb_hub *hub,
int port1)
{