[PATCH] usb: dwc3: pci: add support for BayTrail

2013-09-17 Thread Heikki Krogerus
Add PCI id for Intel BayTrail. Signed-off-by: Heikki Krogerus heikki.kroge...@linux.intel.com --- drivers/usb/dwc3/dwc3-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c index 9b13812..997ebe4 100644 ---

[PATCH] USBNET: fix handling padding packet

2013-09-17 Thread Ming Lei
Commit 638c5115a7949(USBNET: support DMA SG) introduces DMA SG if the usb host controller is capable of building packet from discontinuous buffers, but missed handling padding packet when building DMA SG. This patch attachs the pre-allocated padding packet at the end of the sg list, so padding

Re: [PATCH v1 1/1] usb: gadget: f_fs: Add support for SuperSpeed Mode

2013-09-17 Thread Manu Gautam
On 9/17/2013 6:15 AM, Jack Pham wrote: Hi Manu, An intern working with us here (thanks Peter!) found a bug. On Mon, Sep 16, 2013 at 03:10:14PM +0530, Manu Gautam wrote: @@ -1569,7 +1573,20 @@ static int ffs_func_eps_enable(struct ffs_function *func)

Re: [PATCH 1/4] usb: musb: Call atomic_notifier_call_chain when status is changed

2013-09-17 Thread Pali Rohár
On Tuesday 17 September 2013 17:48:59 you wrote: On Sun, Sep 08, 2013 at 10:50:36AM +0200, Pali Rohár wrote: More power supply drivers depends on vbus events and without it they not working. Power supply drivers using usb_register_notifier, so to deliver events it is needed to call

Re: [PATCH 6/6] USB: gadget: s3c-hsotg: fix clear feature ENDPOINT_HALT

2013-09-17 Thread Felipe Balbi
On Thu, Sep 12, 2013 at 04:18:52PM +0200, Robert Baldyga wrote: This patch adds two fixes: - Property halted of s3c_hsotg_ep structure is actually changed when halt is set/cleared. - All requests for endpoint are completed when it was halted, and the halt was cleared by CLEAR_FEATURE, but

Re: [PATCH 1/7] usb: dwc3: get usb_phy only if the platform indicates the presence of PHY

2013-09-17 Thread Felipe Balbi
Hi, On Thu, Sep 12, 2013 at 04:17:08PM +0530, Vivek Gautam wrote: On Thu, Sep 12, 2013 at 4:06 PM, Roger Quadros rog...@ti.com wrote: Hi Kishon, On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: There can be systems which does not have a external usb_phy, so get usb_phy only if

Re: [PATCH 1/4] usb: musb: Call atomic_notifier_call_chain when status is changed

2013-09-17 Thread Felipe Balbi
On Sun, Sep 08, 2013 at 10:50:36AM +0200, Pali Rohár wrote: diff --git a/drivers/usb/phy/phy-twl4030-usb.c b/drivers/usb/phy/phy-twl4030-usb.c index 8f78d2d..efe6155 100644 --- a/drivers/usb/phy/phy-twl4030-usb.c +++ b/drivers/usb/phy/phy-twl4030-usb.c @@ -705,6 +705,8 @@ static int

Re: [PATCH 4/6] USB: gadget: s3c-hsotg: fix protocol stall handling

2013-09-17 Thread Felipe Balbi
On Thu, Sep 12, 2013 at 04:18:50PM +0200, Robert Baldyga wrote: After normal handling of SetupDone interrupt, XferCompl interrupt occurs, and then we enqueue new setup request. But when ep0 is stalled, there is no XferCompl, so we have to enqueue setup request immediately after stalling ep.

Re: [PATCH 1/3 v5] usb: phy-samsung-usb: Simplify PMU register handling

2013-09-17 Thread Felipe Balbi
On Tue, Sep 17, 2013 at 05:53:31PM +0200, Tomasz Figa wrote: Hi Felipe, On Tuesday 17 of September 2013 10:36:16 Felipe Balbi wrote: Hi, On Tue, Aug 27, 2013 at 01:27:48PM -0700, Julius Werner wrote: *Ping!* Are there still unanswered concerns left with this patch? I hope my

Re: [PATCH] usb: dwc3: pci: add support for BayTrail

2013-09-17 Thread Felipe Balbi
On Tue, Sep 17, 2013 at 10:38:13AM +0300, Heikki Krogerus wrote: Add PCI id for Intel BayTrail. Signed-off-by: Heikki Krogerus heikki.kroge...@linux.intel.com --- drivers/usb/dwc3/dwc3-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-pci.c

Re: [PATCH 1/3 v5] usb: phy-samsung-usb: Simplify PMU register handling

2013-09-17 Thread Felipe Balbi
Hi, On Tue, Aug 27, 2013 at 01:27:48PM -0700, Julius Werner wrote: *Ping!* Are there still unanswered concerns left with this patch? I hope my prior mails could clear up why I think that the PMU register description in the device tree for a specific PHY is represents the hardware more

Re: [PATCH 1/4] usb: musb: Call atomic_notifier_call_chain when status is changed

2013-09-17 Thread Felipe Balbi
On Tue, Sep 17, 2013 at 06:05:15PM +0200, Pali Rohár wrote: On Tuesday 17 September 2013 17:48:59 you wrote: On Sun, Sep 08, 2013 at 10:50:36AM +0200, Pali Rohár wrote: More power supply drivers depends on vbus events and without it they not working. Power supply drivers using

Re: [PATCH 1/3 v5] usb: phy-samsung-usb: Simplify PMU register handling

2013-09-17 Thread Tomasz Figa
Hi Felipe, On Tuesday 17 of September 2013 10:36:16 Felipe Balbi wrote: Hi, On Tue, Aug 27, 2013 at 01:27:48PM -0700, Julius Werner wrote: *Ping!* Are there still unanswered concerns left with this patch? I hope my prior mails could clear up why I think that the PMU register

Re: [PATCH v11 0/8] PHY framework

2013-09-17 Thread Felipe Balbi
On Wed, Sep 04, 2013 at 02:27:06PM +0530, Kishon Vijay Abraham I wrote: On Tuesday 03 September 2013 09:20 PM, Greg KH wrote: On Tue, Sep 03, 2013 at 08:55:23PM +0530, Kishon Vijay Abraham I wrote: Hi Greg, On Wednesday 28 August 2013 12:50 AM, Felipe Balbi wrote: Hi, On Mon, Aug

Re: Fix style in s3c-hsotg.c

2013-09-17 Thread Felipe Balbi
Hi, On Mon, Sep 02, 2013 at 03:58:32PM +0200, Pavel Machek wrote: Hi! checkpatch.pl has some valid complaints about style in s3c-hsotg.c : macro with if should be really enclosed in do {} while, and puts is going to be slightly faster. Here's suggested patch. I don't have the hardware,

Re: [PATCH 1/4] usb: musb: Call atomic_notifier_call_chain when status is changed

2013-09-17 Thread Felipe Balbi
On Sun, Sep 08, 2013 at 10:50:36AM +0200, Pali Rohár wrote: More power supply drivers depends on vbus events and without it they not working. Power supply drivers using usb_register_notifier, so to deliver events it is needed to call atomic_notifier_call_chain. So without atomic notifier

Re: [PATCH] usb: gadget: use usb_composite_dev for usb_function_{de}activate

2013-09-17 Thread Michael Grzeschik
Hi Felipe, On Wed, Sep 11, 2013 at 09:01:39AM +0200, Michael Grzeschik wrote: Hi Felipe, On Tue, Sep 10, 2013 at 04:19:40PM +0200, Michael Grzeschik wrote: usb_function_{de}activate makes it possible to have several gadget functions, inside one composite device, to be able to prevent the

[GIT PULL] USB fixes for v3.12-rc

2013-09-17 Thread Felipe Balbi
Hi Greg, Here's my first set of fixes. Please consider merging. cheers The following changes since commit 272b98c6455f00884f0350f775c5342358ebb73f: Linux 3.12-rc1 (2013-09-16 16:17:51 -0400) are available in the git repository at:

[PATCH] usb: musb: fix otg default state

2013-09-17 Thread Bin Liu
Right after the musb_hdrc driver is loaded, the otg default state is a_idle, and Mode=Host, which are set by musb_host_setup(). This causes the following kernel message during musb gadget enumeration. CAUTION: musb: Babble Interrupt Occurred This patch sets the otg default state to

Re: [PATCH] usb: gadget: use usb_composite_dev for usb_function_{de}activate

2013-09-17 Thread Felipe Balbi
Hi, On Tue, Sep 17, 2013 at 07:08:12PM +0200, Michael Grzeschik wrote: On Wed, Sep 11, 2013 at 09:01:39AM +0200, Michael Grzeschik wrote: On Tue, Sep 10, 2013 at 04:19:40PM +0200, Michael Grzeschik wrote: usb_function_{de}activate makes it possible to have several gadget functions,

Re: [Bug] 0ac8:0321 Vimicro generic vc0321 Camera is not working and causes crashes since 3.2

2013-09-17 Thread Frank Dierich
On 09/09/2013 02:09 PM, Hans de Goede wrote: Thanks for the bug report, looking at the bug reports, they all report an error of -71 which is EPROTO, which typically means something is wrong at the USB level. And nothing has changed for the driver in question between 3.1 and 3.2 , so I believe

Re: [PATCH 1/4] usb: musb: Call atomic_notifier_call_chain when status is changed

2013-09-17 Thread Pali Rohár
On Tuesday 17 September 2013 18:08:35 Felipe Balbi wrote: On Tue, Sep 17, 2013 at 06:05:15PM +0200, Pali Rohár wrote: On Tuesday 17 September 2013 17:48:59 you wrote: On Sun, Sep 08, 2013 at 10:50:36AM +0200, Pali Rohár wrote: More power supply drivers depends on vbus events and

Re: [GIT PULL] USB fixes for v3.12-rc

2013-09-17 Thread Greg KH
On Tue, Sep 17, 2013 at 12:37:03PM -0500, Felipe Balbi wrote: Hi Greg, Here's my first set of fixes. Please consider merging. cheers The following changes since commit 272b98c6455f00884f0350f775c5342358ebb73f: Linux 3.12-rc1 (2013-09-16 16:17:51 -0400) are available in the git

Re: [PATCH v3 3/6] uas: make work list per-device

2013-09-17 Thread Christoph Hellwig
On Fri, Sep 13, 2013 at 01:27:12PM +0200, Gerd Hoffmann wrote: Simplifies locking, we'll protect the list with the device spin lock. Also plugs races which can happen when two devices operate on the global list. While being at it rename the list head from list to work, preparing for the

[PATCH] usb: musb: gadget: fix otg active status flag

2013-09-17 Thread Bin Liu
In gadget mode, musb-is_active should be set only when connected to the host. musb_g_reset() already takes care of it. Signed-off-by: Bin Liu b-...@ti.com --- drivers/usb/musb/musb_gadget.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/usb/musb/musb_gadget.c

Re: Fix style in s3c-hsotg.c

2013-09-17 Thread Pavel Machek
On Tue 2013-09-17 10:42:30, Felipe Balbi wrote: Hi, On Mon, Sep 02, 2013 at 03:58:32PM +0200, Pavel Machek wrote: Hi! checkpatch.pl has some valid complaints about style in s3c-hsotg.c : macro with if should be really enclosed in do {} while, and puts is going to be slightly faster.

Re: [PATCH] USBNET: fix handling padding packet

2013-09-17 Thread David Miller
From: Ming Lei ming@canonical.com Date: Tue, 17 Sep 2013 17:10:02 +0800 Commit 638c5115a7949(USBNET: support DMA SG) introduces DMA SG if the usb host controller is capable of building packet from discontinuous buffers, but missed handling padding packet when building DMA SG. This

Re: [PATCH] usb: gadget: Add UDC driver for Aeroflex Gaisler GRUSBDC

2013-09-17 Thread Felipe Balbi
Hi, On Mon, Sep 09, 2013 at 08:24:24AM -0700, Greg Kroah-Hartman wrote: On Mon, Sep 09, 2013 at 07:33:31AM +0200, Andreas Larsson wrote: On 2013-08-28 11:02, Andreas Larsson wrote: On 2013-08-12 16:05, Andreas Larsson wrote: This adds an UDC driver for GRUSBDC USB Device Controller cores

Re: [PATCH 1/4] usb: musb: Call atomic_notifier_call_chain when status is changed

2013-09-17 Thread Felipe Balbi
On Tue, Sep 17, 2013 at 09:28:42PM +0200, Pali Rohár wrote: On Tuesday 17 September 2013 18:08:35 Felipe Balbi wrote: On Tue, Sep 17, 2013 at 06:05:15PM +0200, Pali Rohár wrote: On Tuesday 17 September 2013 17:48:59 you wrote: On Sun, Sep 08, 2013 at 10:50:36AM +0200, Pali Rohár wrote: