Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 75b291da authored by Lena Salman's avatar Lena Salman
Browse files

usb: ci13xxx_udc: Send CONNECT_EVENT only when pull_up/vbus is enabled



Currently CI13XXX_CONTROLLER_CONNECT_EVENT is being sent from
hw_device_state() API which is being called in different context
like at the time of UDC binding, enabling pull-up when gadget
is enabled. This event is used with different USB core for different
functionality which only required to be enabled when device controller
is enabled. Hence send this event only when pull_up is being enabled
and vbus_session() is being called.

Change-Id: I51deae19f9cb453df3028bffbfdbb593ee36dbc8
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
Signed-off-by: default avatarLena Salman <esalman@codeaurora.org>
parent 5a11767b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment