[PATCH] usb: f_fs: Prevent gadget unbind if it is already unbound

2018-01-08 Thread Amit Pundir
log] Signed-off-by: Amit Pundir --- drivers/usb/gadget/function/f_fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index b6cf5ab5a0a1..f9bd351637cd 100644 --- a/drivers/usb/gadget/function/f_fs.c

[PATCH v2] usb: gadget: rndis: free response queue during REMOTE_NDIS_RESET_MSG

2016-06-29 Thread Amit Pundir
from Android common kernel android-4.4] Signed-off-by: Amit Pundir --- v2: Sanitized the name of original author. Dropped his email address from the list of reviewers, since it is no longer valid. v1: Cherry picked this usb tethering fix from AOSP kernel/common/android-4.4 tree and to make su

[PATCH] usb: gadget: rndis: free response queue during REMOTE_NDIS_RESET_MSG

2016-06-27 Thread Amit Pundir
from Android common kernel android-4.4] Signed-off-by: Amit Pundir --- Cherry picked this usb tethering fix from AOSP kernel/common/android-4.4 tree and to make sure it doesn't get overlooked, submiting it for review and comment. drivers/usb/gadget/function/rndis.c | 6 ++ 1 file

Re: [RFC][PATCH] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-09 Thread Amit Pundir
On 9 February 2016 at 04:50, Greg Kroah-Hartman wrote: > On Tue, Feb 09, 2016 at 02:07:02AM +0530, Amit Pundir wrote: >> Please ignore this one too. I should have build tested these patches >> individually and not in particular series. I'll resend this patch. > > Send th

[RFC][PATCH v2] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-08 Thread Amit Pundir
: Robert Baldyga Cc: Android Kernel Team Cc: John Stultz Cc: Sumit Semwal Cc: Praneeth Bajjuri Signed-off-by: Badhri Jagan Sridharan [pundir: * cherry-picked this patch from AOSP experimental/android-4.4 tree. * folded in an AOSP build fix from Praneeth Bajjuri ] Signed-off-by: Amit Pundir

[RFC][PATCH v2] usb: gadget: u_ether: Fix data stall issue in RNDIS tethering mode

2016-02-08 Thread Amit Pundir
: John Stultz Cc: Sumit Semwal Cc: Praneeth Bajjuri Signed-off-by: Vijayavardhan Vennapusa [pundir: * cherry-picked this patch from AOSP experimental/android-4.4 tree. * folded in an AOSP build fix from Praneeth Bajjuri ] Signed-off-by: Amit Pundir --- v2: folded in the build fix for v1 from

[RFC][PATCH v2] usb: gadget: rndis: Free the response queue during REMOTE_NDIS_RESET_MSG

2016-02-08 Thread Amit Pundir
z Cc: Sumit Semwal Signed-off-by: Rajkumar Raghupathy Signed-off-by: Xerox Lin [pundir: * cherry-picked this patch from AOSP experimental/android-4.4 tree. * folded in the AOSP fix to use rndis_params instead of configNr.] Signed-off-by: Amit Pundir --- v2: Use rndis_params instead of config

Re: [RFC][PATCH] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-08 Thread Amit Pundir
Please ignore this one too. I should have build tested these patches individually and not in particular series. I'll resend this patch. Thanks, Amit Pundir On 9 February 2016 at 01:41, Amit Pundir wrote: > From: Badhri Jagan Sridharan > > u_ether driver passes rx data to net

Re: [RFC][PATCH] usb: gadget: rndis: Free the response queue during REMOTE_NDIS_RESET_MSG

2016-02-08 Thread Amit Pundir
Please ignore this one. I build tested these patches in series and turned out it can't be build independently because configNr is deprecated. I'll resend this patch. Nevertheless I'd like to get a feedback on the real problem this patch is trying to solve here. Thanks, Amit Pundir

[RFC][PATCH] usb: phy: Dual role sysfs class definition

2016-02-08 Thread Amit Pundir
userspace by choosing to implement the appropriate callback. Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Android Kernel Team Cc: John Stultz Cc: Sumit Semwal Signed-off-by: Badhri Jagan Sridharan [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit

[RFC][PATCH] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-08 Thread Amit Pundir
: Robert Baldyga Cc: Android Kernel Team Cc: John Stultz Cc: Sumit Semwal Signed-off-by: Badhri Jagan Sridharan [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit Pundir --- Cherry-picked this patch from AOSP common/experimental/android-4.4 tree. I

[RFC][PATCH] usb: gadget: u_ether: Fix data stall issue in RNDIS tethering mode

2016-02-08 Thread Amit Pundir
: John Stultz Cc: Sumit Semwal Signed-off-by: Vijayavardhan Vennapusa [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit Pundir --- Cherry-picked this patch from AOSP common/experimental/android-4.4 tree. I could not find upstream submission history

[RFC][PATCH] usb: gadget: prevent change of Host MAC address of 'usb0' interface

2016-02-08 Thread Amit Pundir
reboot, the Host MAC address can be changed. Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Mike Looijmans Cc: Robert Baldyga Cc: Android Kernel Team Cc: John Stultz Cc: Sumit Semwal Signed-off-by: Badhri Jagan Sridharan [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Sig

[RFC][PATCH] usb: gadget: rndis: Free the response queue during REMOTE_NDIS_RESET_MSG

2016-02-08 Thread Amit Pundir
z Cc: Sumit Semwal Signed-off-by: Rajkumar Raghupathy Signed-off-by: Xerox Lin [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit Pundir --- Cherry-picked this patch from AOSP common/experimental/android-4.4 tree. I could not find upstream submi

Re: [RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-14 Thread Amit Pundir
On 14 August 2015 at 02:11, Krzysztof Opasiak wrote: > > > On 08/13/2015 09:57 PM, Greg Kroah-Hartman wrote: >> >> On Thu, Aug 13, 2015 at 09:34:46PM +0200, Krzysztof Opasiak wrote: >>> >>> Hello, >>> >>> On 08/13/2015 09:12 PM, Amit Pund

[RFC][PATCH 0/2] usb: gadget: add MTP function and Uevent userspace notifications

2015-08-13 Thread Amit Pundir
ries 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 G

[RFC][PATCH 2/2] usb: gadget: configfs: notify userspace of usb state changes

2015-08-13 Thread Amit Pundir
Andrzej Pietrasiewicz Cc: Laurent Pinchart Cc: Yegor Yefremov Cc: Philippe Reynes Cc: John Stultz Cc: Sumit Semwal Signed-off-by: Amit Pundir --- drivers/usb/gadget/Kconfig| 8 ++ drivers/usb/gadget/configfs.c | 201 +- 2 files changed, 207 i

[RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-13 Thread Amit Pundir
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 Signed-off-by: Amit Pundir --- Documentation/ABI/testing/configfs-usb-gadget-mtp |