From: Lan Tianyu Date: Wed, 5 Sep 2012 05:44:37 +0000 (+0800) Subject: usb: Fail a get config when the port is powered off. X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a22b872e923954853cabd5a18f41da1846bccdb;p=pandora-kernel.git usb: Fail a get config when the port is powered off. Alan Stern pointed out that a USB port could potentially get powered off when the attached USB device is in the middle of enumerating, due to race conditions: http://marc.info/?l=linux-usb&m=134130616707548&w=2 If that happens, we need to ensure the enumeration fails. If a call to usb_get_descriptor() fails for a reason other than a Stall, return an error. That should handle the case where the port is powered off. Acked-by: Alan Stern Signed-off-by: Lan Tianyu Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed