Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932146AbbHMTNg (ORCPT ); Thu, 13 Aug 2015 15:13:36 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35415 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753585AbbHMTMd (ORCPT ); Thu, 13 Aug 2015 15:12:33 -0400 From: Amit Pundir To: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-api@vger.kernel.org Cc: Mike Lockwood , Benoit Goby , Colin Cross , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Peter Oh , Greg Hackmann , Badhri Jagan Sridharan , Android Kernel Team , Greg Kroah-Hartman , Jonathan Corbet , Felipe Balbi , Andrzej Pietrasiewicz , Laurent Pinchart , Yegor Yefremov , Philippe Reynes , John Stultz , Sumit Semwal Subject: [RFC][PATCH 0/2] usb: gadget: add MTP function and Uevent userspace notifications Date: Fri, 14 Aug 2015 00:42:18 +0530 Message-Id: <1439493140-22207-1-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 1.9.1 Author: Amit Pundir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2871 Lines: 72 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 Benoit Goby Colin Cross Arve Hjønnevåg Peter Oh Greg Hackmann Badhri Jagan Sridharan 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 Cc: Benoit Goby Cc: Colin Cross Cc: Arve Hjønnevåg Cc: Peter Oh Cc: Greg Hackmann Cc: Badhri Jagan Sridharan Cc: Android Kernel Team Cc: Greg Kroah-Hartman Cc: Jonathan Corbet Cc: Felipe Balbi Cc: Andrzej Pietrasiewicz Cc: Laurent Pinchart Cc: Yegor Yefremov Cc: Philippe Reynes Cc: John Stultz Cc: Sumit Semwal 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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/