diff options
author | Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com> | 2012-05-10 06:02:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-14 18:02:23 +0200 |
commit | e44694e858ed000ef11ee37861c7f7c86d8ddbda (patch) | |
tree | 76c8b6f7f5e9bff4413729e0cfe08c9ae00dcf25 /drivers/usb/otg/Makefile | |
parent | USB: gpio_vbus: put a missing regulator_put() on error (diff) | |
download | linux-e44694e858ed000ef11ee37861c7f7c86d8ddbda.tar.xz linux-e44694e858ed000ef11ee37861c7f7c86d8ddbda.zip |
USB: gpio_vbus: avoid consecutive vbus_session calls with the same "is_active"
Basically, ->vbus_session() calls should be served when VBUS session
starts and ends (it's not whenever transciever drivers detect VBUS
_changes_). Otherwise, if UDC gadget drivers don't want for some
reason ->vbus_session() calls with the same "is_active" value, either
OTG or UDC drivers need to have some protection handlings.
Also, on platforms using this 'gpio_vbus' driver, the driver is only
allowed to check whether VBUS is applied. There is no kernel-standard
way prepared for UDC gadget drivers to do that.
With this in mind, gpio_vbus should try to prevent unnecessary
consecutive vbus_session calls being served with the same "in_active"
value.
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/otg/Makefile')
0 files changed, 0 insertions, 0 deletions