From: jidong xiao Date: Thu, 13 Sep 2007 16:08:51 +0000 (+0800) Subject: USB: fix limited_power setting mistake in hub.c X-Git-Tag: v2.6.24-rc1~1395^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403fae78d7388876b96fbe30ccf2cb551c49ae5a;p=pandora-kernel.git USB: fix limited_power setting mistake in hub.c This patch (jx001) fixes a variable assignment mistake in hub driver. limited_power should be set to 0 if the hub is self-powered,and 1 if the hub is bus-powered. However, the effect of the code was exactly opposite to the spec's statement for the Local Power Source field. The spec says, this field is 1 meaning Local power supply lost while this field is 0 indicating Local power supply good.(This statement is very confusing.) So this patch switchs the 0 and 1. Signed-off-by: Jason Xiao Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed