From: Dan Williams Date: Wed, 21 May 2014 01:08:12 +0000 (-0700) Subject: usb: disable port power control if not supported in wHubCharacteristics X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~34^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9262c19d14c4;p=pandora-kernel.git usb: disable port power control if not supported in wHubCharacteristics A hub indicates whether it supports per-port power control via the wHubCharacteristics field in its descriptor. If it is not supported a hub will still emulate ClearPortPower(PORT_POWER) requests by stopping the link state machine. However, since this does not save power do not bother suspending. This also consolidates support checks into a hub_is_port_power_switchable() helper. Acked-by: Alan Stern Signed-off-by: Dan Williams Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed