[PATCH 1/2] usb: chipidea: update TODO list

2014-05-03 Thread Peter Chen
Update TODO list Signed-off-by: Peter Chen --- drivers/usb/chipidea/core.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 128b92b..95b4dd7 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chip

[PATCH 2/2] usb: chipidea: udc: delete useless code

2014-05-03 Thread Peter Chen
Delete usbless code Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index d683968..69425b3 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/

[PATCH 6/6] usb: chipidea: udc: update gadget states according to ch9

2014-05-03 Thread Peter Chen
Update device states according to ch9 in USB 2.0 specification Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 150592f..d683968 100644 --- a/dr

[PATCH 5/6] Doc: usb: chipidea: need to build both kernel Image and modules

2014-05-03 Thread Peter Chen
When tried to enable OTG FSM, we need to rebuild both kernel Image and modules, since there are some codes at gadget modules which are controlled by related configurations. Signed-off-by: Peter Chen --- Documentation/usb/chipidea.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) d

[PATCH 4/6] usb: chipidea: msm: Initialize offset of the capability registers

2014-05-03 Thread Peter Chen
From: "Ivan T. Ivanov" Since commit 62bb84e (usb: gadget: ci13xxx: convert to platform device) start address of the capability registers is not passed correctly to udc_probe(). Fix this. Signed-off-by: Peter Chen Signed-off-by: Ivan T. Ivanov --- drivers/usb/chipidea/ci_hdrc_msm.c |1 + 1

[PATCH 2/6] usb: chipidea: msm: Add device tree binding information

2014-05-03 Thread Peter Chen
From: "Ivan T. Ivanov" Document device tree binding information as required by the Qualcomm USB controller. Signed-off-by: Peter Chen Signed-off-by: Ivan T. Ivanov --- .../devicetree/bindings/usb/ci-hdrc-qcom.txt | 17 + 1 files changed, 17 insertions(+), 0 deletions(-

[PATCH 3/6] usb: chipidea: msm: Add device tree support

2014-05-03 Thread Peter Chen
From: "Ivan T. Ivanov" Allows controller to be specified via device tree. Pass PHY phandle specified in DT to core driver. Signed-off-by: Peter Chen Signed-off-by: Ivan T. Ivanov --- drivers/usb/chipidea/ci_hdrc_msm.c | 23 ++- 1 files changed, 22 insertions(+), 1 deleti

[PATCH 1/6] chipidea: usbmisc_imx: Allow USB OTG to work on mx51

2014-05-03 Thread Peter Chen
From: Fabio Estevam The field PLLDIVVALUE of register PHY_CTRL_1 selects the reference clock source for the PHY: 00 = sysclock uses 19.2 MHz 01 = sysclock uses 24 MHz 10 = sysclock uses 26 MHz 11 = sysclock uses 27 MHz The reset value for this field is 10 according to the reference manual, and e

[PATCH 0/6] Chipidea Patches for 3.16

2014-05-03 Thread Peter Chen
Hi Greg, Below are some chpidea patches for 3.16, the main changes are for re-enabling qualcomm platform which hasn't worked for more than 1 year and enabling USB OTG at FSL imx51. Fabio Estevam (1): chipidea: usbmisc_imx: Allow USB OTG to work on mx51 Ivan T. Ivanov (3): usb: chipidea: msm:

Re: [PATCH] USB: ehci-hub: wait for RESUME finished when hub try to clear SUSPEND

2014-05-03 Thread Peter Chen
On Sat, May 03, 2014 at 11:52:25AM +0800, xiao jin wrote: > We use usb ehci to connect with modem and run stress test on ehci > remote wake. Sometimes usb disconnect. We add more debug ftrace > (Kernel version: 3.10) and list the key log to show how problem > happened. > > -0 [000] d.h2 26879.

Re: Bugs in xhci-hcd isochronous support

2014-05-03 Thread Russel Hughes
> The patch was made against 3.15-rc2, which is no longer the latest > kernel version. > > However, the nature of those error messages suggests that the patch > file you tried to apply was messed up somehow, probably by your email > client. You can get the unmodified original here: > > htt

Re: Bugs in xhci-hcd isochronous support

2014-05-03 Thread Alan Stern
On Sat, 3 May 2014, Russel Hughes wrote: > Hi, > > We tried downloading the latest kernel 3.15 and got this when > applying the patch > > File to patch: ^C > :~/linux kernel/usb-3.15.orig$ patch -p1 < patch.dif > patching file drivers/usb/host/xhci-ring.c > Hunk #1 FAILED at 3153. > Hunk #2

Re: Bugs in xhci-hcd isochronous support

2014-05-03 Thread Russel Hughes
> > Russel, here's a patch you can test. It's only a partial fix for the > problem, because it doesn't handle over/underruns. Still, it would be > nice to see if the patch makes any difference in normal operation. > > Even if it doesn't fix the problem, please post a short stretch (a few > hundre

Re: [PATCH] USB: ehci-hub: wait for RESUME finished when hub try to clear SUSPEND

2014-05-03 Thread Alan Stern
On Sat, 3 May 2014, xiao jin wrote: > We use usb ehci to connect with modem and run stress test on ehci > remote wake. Sometimes usb disconnect. We add more debug ftrace > (Kernel version: 3.10) and list the key log to show how problem > happened. > > -0 [000] d.h2 26879.385095: ehci_irq: irq

[PATCH net,stable v2] net: cdc_mbim: __vlan_find_dev_deep need rcu_read_lock

2014-05-03 Thread Bjørn Mork
Fixes this warning introduced by commit 5b8f15f78e6f ("net: cdc_mbim: handle IPv6 Neigbor Solicitations"): === [ INFO: suspicious RCU usage. ] 3.15.0-rc3 #213 Tainted: GW O --- net/8021q/vlan_core.c:69 suspicious rcu_dereference_chec

Re: [PATCH net,stable] net: cdc_mbim: __vlan_find_dev_deep need rcu_read_lock

2014-05-03 Thread Bjørn Mork
Eric Dumazet writes: > While this 'removes' the warning, this doesn't solve the fundamental > problem. > > If you write : > > rcu_read_lock(); > netdev = __vlan_find_dev_deep(...) > rcu_read_unlock(); > > Then you cannot dereference netdev safely after the unlock. > > In order to do so, you need

Re: [PATCH 3/3] usb: phy: msm: enable build on other architectures

2014-05-03 Thread Ivan T. Ivanov
On Wed, 2014-04-30 at 11:38 -0500, Felipe Balbi wrote: > By adding COMPILE_TEST to the list of dependencies > we can build test this driver on all other architectures > which is very valuable for maintainers applying patches > and to find silly mistakes during development. > > Signed-off-by: Felip