]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: fix limited_power setting mistake in hub.c
authorjidong xiao <jidong.xiao@gmail.com>
Thu, 13 Sep 2007 16:08:51 +0000 (00:08 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:27 +0000 (14:55 -0700)
commit403fae78d7388876b96fbe30ccf2cb551c49ae5a
tree49b1dd0cfd74f676bca9c4273de320ca137e2444
parented6590a861a16276db34ee626375fa79f3369ac3
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 <jidong.xiao@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c