usb: gadget: Add Uevent to notify userspace
authorBadhri Jagan Sridharan <Badhri@google.com>
Mon, 15 Dec 2014 18:44:47 +0000 (10:44 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:07 +0000 (13:52 -0800)
commit4b2db1ab6c58dbafa567d718d09ae8ee1cbee4d5
treefa6c3e0f7fccce2b88ce329ce148381cecdd7fc0
parent6ccbd233aecf8aaa054d41df74d7e6b3fe21c73b
usb: gadget: Add Uevent to notify userspace

Android userspace UsbDeviceManager relies on the
uevents generated by the composition driver to
generate user notifications. This CL adds uevents
to be generated whenever USB changes its state
i.e. connected, disconnected, configured.

This CL also intercepts the setup requests from
the usb_core anb routes it to the specific
usb function if required.

Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
Change-Id: Ib3d3a78255a532f7449dac286f776c2966caf8c1
drivers/usb/gadget/Kconfig
drivers/usb/gadget/configfs.c