diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2011-07-06 23:19:38 +0400 |
---|---|---|
committer | Jonas ABERG <jonas.aberg@stericsson.com> | 2011-10-28 11:14:53 +0200 |
commit | 3312d5ce8d03275700c48bc9c21bae0cbc807f97 (patch) | |
tree | 48bdd86ab6c6f2e29ec8e6c405520ac694b2544b /scripts/setlocalversion | |
parent | 189c16b06621168c1fe37723462fc7b56943ded6 (diff) |
EHCI: only power off port if over-current is active
commit 81463c1d707186adbbe534016cd1249edeab0dac upstream.
MAX4967 USB power supply chip we use on our boards signals over-current when
power is not enabled; once it's enabled, over-current signal returns to normal.
That unfortunately caused the endless stream of "over-current change on port"
messages. The EHCI root hub code reacts on every over-current signal change
with powering off the port -- such change event is generated the moment the
port power is enabled, so once enabled the power is immediately cut off.
I think we should only cut off power when we're seeing the active over-current
signal, so I'm adding such check to that code. I also think that the fact that
we've cut off the port power should be reflected in the result of GetPortStatus
request immediately, hence I'm adding a PORTSCn register readback after write...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Change-Id: I16ba15af47c0aee3fdf62dc0780d9c6f98c54a94
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35661
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'scripts/setlocalversion')
0 files changed, 0 insertions, 0 deletions