commit | eaa0d707c31835d7fe873c2953e0e47fa8db964f | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Mon Feb 16 22:13:43 2015 +0100 |
committer | Hans de Goede <hdegoede@redhat.com> | Sat Feb 21 16:53:33 2015 +0100 |
tree | fc1cab3185c9751d748bb4615d9a1898b0df8b0c | |
parent | 5b8dc74e0594193bfdb0dbc1c6c8803cc069719a [diff] |
sunxi: musb: Check Vbus-det before enabling otg port power Sending out 5V when there is a charger connected to the otg port is not a good idea, so check for this and error out. Note this commit currently breaks otg support on the q8h tablets, as we need to do some magic with the pmic there to get vbus info, this is deliberate (better safe then sorry), fixing this is on my TODO list. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>