RFC on Android's ConfigFS based MTP function implementation and usage
of Uevents to notify the userspace about the USB state changes.
The MTP function is based on years of work originally done in the
Android kernel tree by:
Mike Lockwood <[email protected]>
Benoit Goby <[email protected]>
Colin Cross <[email protected]>
Arve Hjønnevåg <[email protected]>
Peter Oh <[email protected]>
Greg Hackmann <[email protected]>
Badhri Jagan Sridharan <[email protected]>
The Uevent notification patch is more of an RFC than an actual
submission. It is based on Android patchset originaly authored by
Badhri to send uevent notifications to Android userpace for USB
state changes.
I've folded the series up to make it easier to review, provided a
coherent patch description and modified it enough that I don't want
them to be blamed for any mistakes I've made condensing their patches
down.
Thoughts and feedback would be appreciated.
Thanks,
Amit Pundir
Cc: Mike Lockwood <[email protected]>
Cc: Benoit Goby <[email protected]>
Cc: Colin Cross <[email protected]>
Cc: Arve Hjønnevåg <[email protected]>
Cc: Peter Oh <[email protected]>
Cc: Greg Hackmann <[email protected]>
Cc: Badhri Jagan Sridharan <[email protected]>
Cc: Android Kernel Team <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Andrzej Pietrasiewicz <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Yegor Yefremov <[email protected]>
Cc: Philippe Reynes <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Sumit Semwal <[email protected]>
Amit Pundir (2):
usb: gadget: configfs: add MTP function
usb: gadget: configfs: notify userspace of usb state changes
Documentation/ABI/testing/configfs-usb-gadget-mtp | 7 +
Documentation/usb/gadget-testing.txt | 24 +
drivers/usb/gadget/Kconfig | 21 +
drivers/usb/gadget/configfs.c | 201 ++-
drivers/usb/gadget/function/Makefile | 2 +
drivers/usb/gadget/function/f_mtp.c | 1365 +++++++++++++++++++++
include/linux/usb/f_mtp.h | 23 +
include/uapi/linux/usb/f_mtp.h | 61 +
8 files changed, 1702 insertions(+), 2 deletions(-)
create mode 100644 Documentation/ABI/testing/configfs-usb-gadget-mtp
create mode 100644 drivers/usb/gadget/function/f_mtp.c
create mode 100644 include/linux/usb/f_mtp.h
create mode 100644 include/uapi/linux/usb/f_mtp.h
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html