Re: [PATCH v7 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-01-07 Thread Baolin Wang
On 7 January 2016 at 19:25, Alex Shi wrote: > Hi, Baolin, > > There is similar gadget/charger driver on QC msm tree, > git://codeaurora.org/quic/la/kernel/msm-3.10 msm-3.10 > You may check that as a reference. > OK. Thanks. -- Baolin.wang Best Regards -- To unsubscribe

[PATCH net] r8152: fix the wake event

2016-01-07 Thread Hayes Wang
When the autosuspend is enabled and occurs before system suspend, we should wake the device before running system syspend. Then, we could change the wake event for system suspend. Otherwise, the device would resume the system when receiving any packet. Signed-off-by: Hayes Wang

[PATCH net-next 0/2] r8152: code adjustment

2016-01-07 Thread Hayes Wang
Adjust test_bit(), clear_bit(), disable_aldps(), and enable_aldps(). Hayes Wang (2): r8152: use test_and_clear_bit r8152: adjust ALDPS function drivers/net/usb/r8152.c | 92 + 1 file changed, 40 insertions(+), 52 deletions(-) -- 2.4.3 -- To

[PATCH net-next 2/2] r8152: adjust ALDPS function

2016-01-07 Thread Hayes Wang
Replace disable_aldps() and enable_aldps() with aldps_en(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 72 +++-- 1 file changed, 34 insertions(+), 38 deletions(-) diff --git a/drivers/net/usb/r8152.c

[PATCH net-next 1/2] r8152: use test_and_clear_bit

2016-01-07 Thread Hayes Wang
Replace test_bit() followed by clear_bit() with test_and_clear_bit(). Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

Re: [PATCH] usb: option.c: Fix Cinterion AHxx enumeration.

2016-01-07 Thread John Ernberg
Hi Johan, Apologies for the late reply, I was out of office. Below is the 'lsusb -v' output for the AH3 modem. For the mailing lists: Please CC me directly, I did not sign up for the mailing lists. Thank you. Best regards // John Ernberg Bus 001 Device 002: ID 1e2d:0055 Device Descriptor:

Re: [PATCH 4/5] usb-misc: sisusbvga: Remove kmalloc logs and fix error path

2016-01-07 Thread Peter Senna Tschudin
On Wed, Jan 06, 2016 at 09:28:41PM +0300, Sergei Shtylyov wrote: > Hello. > > On 1/5/2016 7:54 PM, Peter Senna Tschudin wrote: > > >From: Peter Senna Tschudin > > > >This patch remove four calls to dev_err() from sisusb_probe() as > >reporting memory allocation failures

[PATCH] usb: gadget: fix error handling

2016-01-07 Thread Sudip Mukherjee
We are doing PTR_ERR() of NULL, and that will actually make ret = 0. So incase of both error and success we are actually returning the success code. Signed-off-by: Sudip Mukherjee --- drivers/usb/gadget/composite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH v12 0/4] Allow USB devices to remain runtime-suspended when sleeping

2016-01-07 Thread Tomeu Vizoso
Hi, this is v12 of an attempt to make it easier for devices to remain in runtime PM when the system goes to sleep, mainly to reduce the time spent resuming devices. For this, we interpret the absence of all PM callback implementations as it being safe to do direct_complete, so their ancestors

Re: xhci regression for large transfers (commit e210c422b)

2016-01-07 Thread Ron
On Thu, Jan 07, 2016 at 05:38:09PM +0200, Mathias Nyman wrote: > Hi > > On 02.01.2016 08:32, Ron wrote: > > > >Hi, > > > >It appears the commit e210c422b6fdd2dc123bedc588f399aefd8bf9de > >"xhci: don't finish a TD if we get a short transfer event mid TD" > >is causing transfers larger than 16kB to

Re: xhci regression for large transfers (commit e210c422b)

2016-01-07 Thread Ron
On Fri, Jan 08, 2016 at 02:52:28AM +1030, Ron wrote: > On Thu, Jan 07, 2016 at 05:38:09PM +0200, Mathias Nyman wrote: > > Hi > > > > On 02.01.2016 08:32, Ron wrote: > > > > > >Hi, > > > > > >It appears the commit e210c422b6fdd2dc123bedc588f399aefd8bf9de > > >"xhci: don't finish a TD if we get a

[PATCH] drivers/usb: Skip auto handoff for TI and RENESAS usb controllers

2016-01-07 Thread Babu Moger
I have never seen auto handoff working on TI and RENESAS cards. Eventually, we force handoff. This code forces the handoff unconditionally. It saves 5 seconds boot time for each card. Signed-off-by: Babu Moger --- drivers/usb/host/pci-quirks.c |7 +++ 1 files

[PATCH v12 4/4] USB / PM: Allow USB devices to remain runtime-suspended when sleeping

2016-01-07 Thread Tomeu Vizoso
Have dev_pm_ops.prepare return 1 for USB devices and ports so that USB devices can remain runtime-suspended when the system goes to a sleep state, if their wakeup state is correct and they have runtime PM enabled. Signed-off-by: Tomeu Vizoso Reviewed-by: Ulf Hansson