Re: [PATCH v2 4/4] usb/gadget: f_sourcesink: add configfs support

2013-11-26 Thread Andrzej Pietrasiewicz
W dniu 26.11.2013 20:51, Felipe Balbi pisze: On Thu, Nov 07, 2013 at 08:41:28AM +0100, Andrzej Pietrasiewicz wrote: Add support for using the sourcesink function in gadgets composed with configfs. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park fuzz on Kconfig, please chec

Re: musb: bluk_split only worked for the first segment(PIO only)

2013-11-26 Thread Yingchun Li
On Wed, Nov 27, 2013 at 12:38 AM, Bin Liu wrote: > On Thu, Nov 21, 2013 at 4:40 AM, Yingchun Li wrote: >> hi, >>if musb bulk_split is enable, the segment size will be set according >> to hw_ep->max_packet_sz_tx, and the segment will be writen to fifo. >>But after the first tranfser end, t

RE: [REWORKED PATCH 1/5] usb: phy: fsm: don't depend on indirect includes

2013-11-26 Thread Anton Tikhomirov
Hi Felipe, > Hi, > > On Tue, Nov 26, 2013 at 10:33:44AM -0600, Felipe Balbi wrote: > > this header uses spinlocks and errno values, so > > we must include and > > to avoid build errors. > > > > Signed-off-by: Felipe Balbi > > Anton, I had to rework your patch series quite a bit in order to ma

[PATCH 1/3] HID: usbhid: merge the sis quirk

2013-11-26 Thread AceLan Kao
USB_VENDOR_ID_SIS and USB_VENDOR_ID_SIS2_TOUCH are identical, so refine the code and merge the quirks. Signed-off-by: AceLan Kao --- drivers/hid/hid-ids.h | 5 ++--- drivers/hid/usbhid/hid-quirks.c | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/hid/h

[PATCH 2/3] HID: usbhid: quirk for Synaptics HD touchscreen

2013-11-26 Thread AceLan Kao
Add Synaptics HD touchscreen(06cb:0ac3) to no init report quirk. Signed-off-by: AceLan Kao --- drivers/hid/hid-ids.h | 1 + drivers/hid/usbhid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 90e9806..56ed3a0 100644

[PATCH 3/3] HID: usbhid: quirk for Synaptics Quad HD touchscreen

2013-11-26 Thread AceLan Kao
Add Synaptics HD touchscreen(06cb:1ac3) to no init report quirk Signed-off-by: AceLan Kao --- drivers/hid/hid-ids.h | 1 + drivers/hid/usbhid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 56ed3a0..cb219de 100644 -

Re: [PATCH v2] PM / Sleep: Add pm_generic functions to re-use runtime PM callbacks

2013-11-26 Thread Rafael J. Wysocki
On Wednesday, November 27, 2013 12:44:35 AM Ulf Hansson wrote: > On 26 November 2013 22:09, Alan Stern wrote: > > On Tue, 26 Nov 2013, Rafael J. Wysocki wrote: > > > >> On Tuesday, November 26, 2013 10:48:56 AM Ulf Hansson wrote: > >> > On 26 November 2013 00:10, Rafael J. Wysocki wrote: > >> > >

Re: [PATCH v2] PM / Sleep: Add pm_generic functions to re-use runtime PM callbacks

2013-11-26 Thread Rafael J. Wysocki
On Tuesday, November 26, 2013 04:09:44 PM Alan Stern wrote: > On Tue, 26 Nov 2013, Rafael J. Wysocki wrote: > > > On Tuesday, November 26, 2013 10:48:56 AM Ulf Hansson wrote: > > > On 26 November 2013 00:10, Rafael J. Wysocki wrote: > > > > On Monday, November 25, 2013 01:40:21 PM Ulf Hansson wro

[PATCH] PM / Runtime: Implement the pm_generic_runtime functions for CONFIG_PM

2013-11-26 Thread Ulf Hansson
The pm_generic_runtime_suspend|resume functions were implemented within CONFIG_PM_RUNTIME. As we also may use runtime PM callbacks during system suspend, to put devices into low power state, we need to move the implementation of pm_generic_runtime_suspend|resume to CONFIG_PM. This change prevents

Re: [PATCH v2] PM / Sleep: Add pm_generic functions to re-use runtime PM callbacks

2013-11-26 Thread Ulf Hansson
On 26 November 2013 22:09, Alan Stern wrote: > On Tue, 26 Nov 2013, Rafael J. Wysocki wrote: > >> On Tuesday, November 26, 2013 10:48:56 AM Ulf Hansson wrote: >> > On 26 November 2013 00:10, Rafael J. Wysocki wrote: >> > > On Monday, November 25, 2013 01:40:21 PM Ulf Hansson wrote: >> > >> To put

[PATCH 2/2] usb: hcd: Initialize USB phy if needed

2013-11-26 Thread Valentine Barshak
This adds external USB phy support to USB HCD driver that allows to find and initialize external USB phy, bound to the HCD, when the HCD is added. The usb_add_hcd function returns -EPROBE_DEFER if the USB phy, bound to the HCD, is not ready. If no USB phy is bound, the HCD is initialized as usual.

[PATCH 1/2] usb: hcd: Remove USB phy if needed

2013-11-26 Thread Valentine Barshak
This adds remove_phy flag to the HCD structure. If the flag is set and if hcd->phy is valid, the phy is shutdown and released whenever usb_add_hcd fails or usb_hcd_remove is called. This can be used by the HCD drivers to auto-remove the external USB phy when it is no longer needed. Signed-off-by:

RE: zte_ev not properly handling ZTE AC2726 CDMA modems

2013-11-26 Thread Dmitry Kunilov
>> -Original Message- >> From: Johan Hovold [mailto:jhov...@gmail.com] >> Sent: Tuesday, November 26, 2013 6:39 AM >> To: Dmitry Kunilov >> Cc: linux-usb@vger.kernel.org >> Subject: Re: zte_ev not properly handling ZTE AC2726 CDMA modems >> >> On Mon, Nov 25, 2013 at 06:15:28PM -0800, Dmit

[V2 PATCH 0/2] Defer HCD init until the external PHY, bound to the HCD is ready

2013-11-26 Thread Valentine Barshak
This adds remove_phy flag to the HCD structure. If the flag is set and if hcd->phy is valid, the phy is shutdown and released whenever usb_add_hcd fails or usb_hcd_remove is called. This also adds generic external phy support that allows the HCD driver to search for a USB phy, bound to the HCD, whe

Re: [3.8-rc3 -> 3.8-rc4 regression] Re: [PATCH] module, async: async_synchronize_full() on module init iff async is used

2013-11-26 Thread Tejun Heo
Hello, On Tue, Nov 26, 2013 at 04:12:41PM -0600, Josh Hunt wrote: > I should have clarified that I'm not using dm/md in my setup. I know > the modules are getting loaded in the log I attached, but root is not > a md/dm device. Can you please still try it? The init script is broken and we're now

Re: [3.8-rc3 -> 3.8-rc4 regression] Re: [PATCH] module, async: async_synchronize_full() on module init iff async is used

2013-11-26 Thread Linus Torvalds
On Tue, Nov 26, 2013 at 2:12 PM, Josh Hunt wrote: > > I should have clarified that I'm not using dm/md in my setup. I know > the modules are getting loaded in the log I attached, but root is not > a md/dm device. Hmm. The initcall debugging doesn't actually show any of the "wait for async events"

Re: [PATCH] ARM: dts: omap3-beagle: Fix USB host on beagle boards (for 3.13)

2013-11-26 Thread Tony Lindgren
* Roger Quadros [131126 00:57]: > On 11/25/2013 05:50 PM, Nishanth Menon wrote: > > On Mon, Nov 25, 2013 at 7:55 AM, Roger Quadros wrote: > >> Beagle (rev. C4) and Beagle-XM (all revs) need VAUX2 1.8V supply > >> for the USB PHY. > >> > >> As the generic PHY driver can't handle more than one supp

Re: [PATCH v3 09/10] ARM: dts: omap3-beagle-xm: Add USB Host support

2013-11-26 Thread Nishanth Menon
On Tue, Nov 26, 2013 at 3:04 PM, Tony Lindgren wrote: > * Roger Quadros [131120 02:33]: >> Nishant, >> >> On 11/19/2013 11:05 PM, Nishanth Menon wrote: >> > >> > >> > On 09/24/2013 03:53 AM, Roger Quadros wrote: >> >> Provide RESET GPIO and Power regulator for the USB PHY, >> >> the USB Host port

Re: [3.8-rc3 -> 3.8-rc4 regression] Re: [PATCH] module, async: async_synchronize_full() on module init iff async is used

2013-11-26 Thread Josh Hunt
On Tue, Nov 26, 2013 at 3:53 PM, Linus Torvalds wrote: > On Tue, Nov 26, 2013 at 1:29 PM, Josh Hunt wrote: >> >> Both ahci and sata_svw call ata_host_activate(), which call >> ata_host_register() and async_schedule(async_port_probe, ap). > > Well, with the modern logic ("only wait for async probi

Re: [RFC V2 PATCH 0/2] Defer HCD init until the external PHY, bound to the HCD is ready

2013-11-26 Thread Valentine
On 11/27/2013 01:44 AM, Greg KH wrote: On Wed, Nov 27, 2013 at 01:31:06AM +0400, Valentine wrote: On 11/07/2013 03:14 PM, Valentine Barshak wrote: This adds remove_phy flag to the HCD structure. If the flag is set and if hcd->phy is valid, the phy is shutdown and released whenever usb_add_hcd f

Re: [3.8-rc3 -> 3.8-rc4 regression] Re: [PATCH] module, async: async_synchronize_full() on module init iff async is used

2013-11-26 Thread Linus Torvalds
On Tue, Nov 26, 2013 at 1:29 PM, Josh Hunt wrote: > > Both ahci and sata_svw call ata_host_activate(), which call > ata_host_register() and async_schedule(async_port_probe, ap). Well, with the modern logic ("only wait for async probing if the module itself did async probing") the ahci and svw mod

Re: [RFC V2 PATCH 0/2] Defer HCD init until the external PHY, bound to the HCD is ready

2013-11-26 Thread Greg KH
On Wed, Nov 27, 2013 at 01:31:06AM +0400, Valentine wrote: > On 11/07/2013 03:14 PM, Valentine Barshak wrote: > >This adds remove_phy flag to the HCD structure. If the flag is > >set and if hcd->phy is valid, the phy is shutdown and released > >whenever usb_add_hcd fails or usb_hcd_remove is called

Re: [PATCH 09/12] usb: gadget: r8a66597-udc: Convert to clk_prepare/unprepare

2013-11-26 Thread Laurent Pinchart
Hi Felipe, On Tuesday 26 November 2013 13:54:22 Felipe Balbi wrote: > On Tue, Nov 26, 2013 at 03:16:47AM +0100, Laurent Pinchart wrote: > > On Monday 25 November 2013 20:12:39 Felipe Balbi wrote: > > > On Tue, Nov 26, 2013 at 02:59:51AM +0100, Laurent Pinchart wrote: > > > > > > > (2013/10/29 7:49

Re: [RFC V2 PATCH 0/2] Defer HCD init until the external PHY, bound to the HCD is ready

2013-11-26 Thread Valentine
On 11/07/2013 03:14 PM, Valentine Barshak wrote: This adds remove_phy flag to the HCD structure. If the flag is set and if hcd->phy is valid, the phy is shutdown and released whenever usb_add_hcd fails or usb_hcd_remove is called. This also adds generic external phy support that allows the HCD dr

Re: [3.8-rc3 -> 3.8-rc4 regression] Re: [PATCH] module, async: async_synchronize_full() on module init iff async is used

2013-11-26 Thread Josh Hunt
On Mon, Aug 12, 2013 at 10:09 AM, Tejun Heo wrote: > Hello, Jonathan. > > On Mon, Aug 12, 2013 at 12:04:11AM -0700, Jonathan Nieder wrote: >> My laptop fails to boot[1] with the message 'Volume group "data" not >> found'. Bisects to v3.8-rc4~17 (the above commit). Reverting that >> commit on top

huawei E5776 (hilink) 3.12-->3.13 not working anymore

2013-11-26 Thread Thomas Schäfer
Hi, I have it already mentioned somewhere. Sorry for duplicates. The Huawei E5776 (normal use, classic IPv4, hilink mode (with webinterface and RFC1918 IP- config including NAT) worked well with 3.12 and before, but it doesn't work any more with 3.13. At least one local branded version of th

Re: [PATCH v2] PM / Sleep: Add pm_generic functions to re-use runtime PM callbacks

2013-11-26 Thread Alan Stern
On Tue, 26 Nov 2013, Rafael J. Wysocki wrote: > On Tuesday, November 26, 2013 10:48:56 AM Ulf Hansson wrote: > > On 26 November 2013 00:10, Rafael J. Wysocki wrote: > > > On Monday, November 25, 2013 01:40:21 PM Ulf Hansson wrote: > > >> To put devices into low power state during sleep, it someti

Re: [PATCH v3 09/10] ARM: dts: omap3-beagle-xm: Add USB Host support

2013-11-26 Thread Tony Lindgren
* Roger Quadros [131120 02:33]: > Nishant, > > On 11/19/2013 11:05 PM, Nishanth Menon wrote: > > > > > > On 09/24/2013 03:53 AM, Roger Quadros wrote: > >> Provide RESET GPIO and Power regulator for the USB PHY, > >> the USB Host port mode and the PHY device for the controller. > >> Also provide

Re: zte_ev not properly handling ZTE AC2726 CDMA modems

2013-11-26 Thread Johan Hovold
[ Please, try to avoid top-posting. ] On Tue, Nov 26, 2013 at 12:37:21PM -0800, Dmitry Kunilov wrote: > Hi Jonah, > > Do you think this patch will work against 3.9.11? If not, I'll have to > invest some time into upgrading to 3.12 which proved to be difficult given > all the Broadcom-related modi

RE: zte_ev not properly handling ZTE AC2726 CDMA modems

2013-11-26 Thread Dmitry Kunilov
Hi Jonah, Do you think this patch will work against 3.9.11? If not, I'll have to invest some time into upgrading to 3.12 which proved to be difficult given all the Broadcom-related modifications in the kernel.. Thank you! Regards, Dmitry -Original Message- From: Johan Hovold [mailto:jho

Re: [PATCH v2] PM / Sleep: Add pm_generic functions to re-use runtime PM callbacks

2013-11-26 Thread Rafael J. Wysocki
On Tuesday, November 26, 2013 10:48:56 AM Ulf Hansson wrote: > On 26 November 2013 00:10, Rafael J. Wysocki wrote: > > On Monday, November 25, 2013 01:40:21 PM Ulf Hansson wrote: > >> To put devices into low power state during sleep, it sometimes makes > >> sense at subsystem-level to re-use devic

Re: [PATCH v2 06/14] USB: centralize usb port power policy

2013-11-26 Thread Dan Williams
On Tue, Nov 26, 2013 at 11:40 AM, Oliver Neukum wrote: > On Mon, 2013-11-25 at 11:05 -0800, Dan Williams wrote: >> On Mon, Nov 25, 2013 at 3:33 AM, Oliver Neukum wrote: >> > On Fri, 2013-11-22 at 12:18 -0800, Dan Williams wrote: >> >> On Fri, Nov 22, 2013 at 2:39 AM, Oliver Neukum wrote: >> >> >

Re: [PATCH v2 3/4] usb/gadget: f_loopback: add configfs support

2013-11-26 Thread Felipe Balbi
On Thu, Nov 07, 2013 at 08:41:27AM +0100, Andrzej Pietrasiewicz wrote: > Add support for using the loopback USB function in gadgets composed with > configfs. > > Signed-off-by: Andrzej Pietrasiewicz > Signed-off-by: Kyungmin Park this one applied with fuzz on Kconfig, can you check if it looks

Re: [PATCH 09/12] usb: gadget: r8a66597-udc: Convert to clk_prepare/unprepare

2013-11-26 Thread Felipe Balbi
On Tue, Nov 26, 2013 at 03:16:47AM +0100, Laurent Pinchart wrote: > Hi Felipe, > > On Monday 25 November 2013 20:12:39 Felipe Balbi wrote: > > Hi, > > > > On Tue, Nov 26, 2013 at 02:59:51AM +0100, Laurent Pinchart wrote: > > > > > > (2013/10/29 7:49), Laurent Pinchart wrote: > > > > > > > Turn cl

Re: [PATCH v2 4/4] usb/gadget: f_sourcesink: add configfs support

2013-11-26 Thread Felipe Balbi
On Thu, Nov 07, 2013 at 08:41:28AM +0100, Andrzej Pietrasiewicz wrote: > Add support for using the sourcesink function in gadgets composed with > configfs. > > Signed-off-by: Andrzej Pietrasiewicz > Signed-off-by: Kyungmin Park fuzz on Kconfig, please check [1] [1] http://bit.ly/18mbMMQ -- b

Re: [PATCH v2 06/14] USB: centralize usb port power policy

2013-11-26 Thread Oliver Neukum
On Mon, 2013-11-25 at 11:05 -0800, Dan Williams wrote: > On Mon, Nov 25, 2013 at 3:33 AM, Oliver Neukum wrote: > > On Fri, 2013-11-22 at 12:18 -0800, Dan Williams wrote: > >> On Fri, Nov 22, 2013 at 2:39 AM, Oliver Neukum wrote: > >> > On Fri, 2013-11-22 at 01:07 -0800, Dan Williams wrote: > >> >

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 26, 2013 at 12:59:13PM -0600, Felipe Balbi wrote: > > > diff --git a/drivers/usb/gadget/f_obex.c > > > b/drivers/usb/gadget/f_obex.c index ad39f1d..4af2f06 100644 > > > --- a/drivers/usb/gadget/f_obex.c > > > +++ b/drivers/usb/gadget/f_obex.c > > > @@ -267,10 +267,12 @@ static void

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 26, 2013 at 07:10:08PM +0100, Pali Rohár wrote: > > > > > (above dump is from 3.12-rc5 kernel) > > > > > > > > looks like it's trying to do i2c transfers from atomic. > > > > But why only when obex is enabled ? Makes no sense. What > > > > do you have on userland ? Is there anythi

Re: [PATCH 1/3] usb: dwc3: Add Keystone specific glue layer

2013-11-26 Thread Santosh Shilimkar
On Tuesday 26 November 2013 12:16 PM, Felipe Balbi wrote: > On Mon, Nov 25, 2013 at 07:49:01PM -0500, Santosh Shilimkar wrote: >> On Monday 25 November 2013 03:39 PM, Felipe Balbi wrote: >>> Hi, >>> >> >> [...] >> >>> + kdwc3_dma_mask = dma_get_mask(dev); + dev->dma_mask = &kdwc3_dma_ma

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 26, 2013 at 07:06:43PM +0100, Pavel Machek wrote: > > > > For a long time (since 3.5 or 3.8? - I do not remember) obex > > > > subdriver in g_nokia usb gadget module causing kernel panic > > > > after module is loaded on Nokia N900. I do not know where is > > > > problem and due to

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Pali Rohár
On Tuesday 26 November 2013 18:39:54 Felipe Balbi wrote: > Hi, > > On Tue, Nov 26, 2013 at 06:28:05PM +0100, Pali Rohár wrote: > > [ snip ] > > > > > (above dump is from 3.12-rc5 kernel) > > > > > > looks like it's trying to do i2c transfers from atomic. > > > But why only when obex is enabled

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Pavel Machek
On Tue 2013-11-26 18:17:49, Sebastian Reichel wrote: > On Tue, Nov 26, 2013 at 06:10:22PM +0100, Pali Rohár wrote: > > On Tuesday 19 November 2013 11:51:12 Pali Rohár wrote: > > > For a long time (since 3.5 or 3.8? - I do not remember) obex > > > subdriver in g_nokia usb gadget module causing kerne

Re: [RFCv3 2/3] usb: gadget: epautoconf: check feature flags

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 26, 2013 at 11:57:21AM -0600, Felipe Balbi wrote: > On Tue, Nov 26, 2013 at 12:56:04PM -0500, Alan Stern wrote: > > On Tue, 26 Nov 2013, Felipe Balbi wrote: > > > > > Start matching endpoints against feature flags, > > > this will help us dropping the naming conventions > > > curr

Re: [RFCv3 2/3] usb: gadget: epautoconf: check feature flags

2013-11-26 Thread Felipe Balbi
On Tue, Nov 26, 2013 at 12:56:04PM -0500, Alan Stern wrote: > On Tue, 26 Nov 2013, Felipe Balbi wrote: > > > Start matching endpoints against feature flags, > > this will help us dropping the naming conventions > > currently used by the Gadget Framework. > > > > Signed-off-by: Felipe Balbi > > -

Re: [RFCv3 2/3] usb: gadget: epautoconf: check feature flags

2013-11-26 Thread Alan Stern
On Tue, 26 Nov 2013, Felipe Balbi wrote: > Start matching endpoints against feature flags, > this will help us dropping the naming conventions > currently used by the Gadget Framework. > > Signed-off-by: Felipe Balbi > --- > drivers/usb/gadget/epautoconf.c | 28 ++-- > 1

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

2013-11-26 Thread Felipe Balbi
On Mon, Oct 28, 2013 at 01:59:02PM +0100, Andreas Larsson wrote: > On 2013-10-01 16:19, Felipe Balbi wrote: > +static void gr_finish_request(struct gr_ep *ep, struct gr_request *req, > + int status) > +{ > + struct gr_udc *dev; > + > + list_del_init(&re

Re: [RFC PATCH] usb: gadget/uvc: add streaming and data event handling

2013-11-26 Thread Felipe Balbi
On Fri, Sep 06, 2013 at 12:18:54AM +0200, Michael Grzeschik wrote: > This patch lets the kernel handle setup and data events of > the uvc gadget. It is generating its response data by the > prepared usb uvc control descriptores. > > For now only simple probe and commit events are generated and > s

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

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Oct 08, 2013 at 09:52:55AM +0530, Manu Gautam wrote: > On 10/2/2013 10:06 AM, Manu Gautam wrote: > > On 10/1/2013 8:07 PM, Felipe Balbi wrote: > >> Hi, > >> > >> On Mon, Sep 30, 2013 at 02:31:50PM +0530, Manu Gautam wrote: > >>> On 9/28/2013 1:52 AM, Paul Zimmerman wrote: > > From:

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 26, 2013 at 06:28:05PM +0100, Pali Rohár wrote: [ snip ] > > > (above dump is from 3.12-rc5 kernel) > > > > looks like it's trying to do i2c transfers from atomic. But > > why only when obex is enabled ? Makes no sense. What do you > > have on userland ? Is there anything trying

[RFCv3 3/3] usb: dwc3: gadget: set endpoint feature flags

2013-11-26 Thread Felipe Balbi
just so we can start using a more solid endpoint matching system. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/gadget.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 5452c0f..d687c3a 100644 --- a/drivers/u

[RFCv3 2/3] usb: gadget: epautoconf: check feature flags

2013-11-26 Thread Felipe Balbi
Start matching endpoints against feature flags, this will help us dropping the naming conventions currently used by the Gadget Framework. Signed-off-by: Felipe Balbi --- drivers/usb/gadget/epautoconf.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --gi

[RFCv3 0/3] usb: gadget: start dropping endpoint naming conventions

2013-11-26 Thread Felipe Balbi
here's a third RFC on my original endpoint feature flag RFC. The only change now is that I fixed epautoconf based on Alan's comment (thanks Alan). I have also dropped the first patch and will already make sure it reaches my next branch soon. !!

[RFCv3 1/3] usb: gadget: ep: add feature flags

2013-11-26 Thread Felipe Balbi
Add a few flags to tell gadget framework which features a particular endpoint supports. Signed-off-by: Felipe Balbi --- include/linux/usb/gadget.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 942ef5e..cf1d027 100

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Pali Rohár
On Tuesday 26 November 2013 18:17:49 Sebastian Reichel wrote: > On Tue, Nov 26, 2013 at 06:10:22PM +0100, Pali Rohár wrote: > > On Tuesday 19 November 2013 11:51:12 Pali Rohár wrote: > > > For a long time (since 3.5 or 3.8? - I do not remember) > > > obex subdriver in g_nokia usb gadget module caus

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Pali Rohár
On Tuesday 26 November 2013 18:16:06 Felipe Balbi wrote: > Hi, > > On Tue, Nov 19, 2013 at 11:51:12AM +0100, Pali Rohár wrote: > > Hi! > > > > For a long time (since 3.5 or 3.8? - I do not remember) obex > > subdriver in g_nokia usb gadget module causing kernel panic > > after module is loaded on

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Sebastian Reichel
On Tue, Nov 26, 2013 at 06:10:22PM +0100, Pali Rohár wrote: > On Tuesday 19 November 2013 11:51:12 Pali Rohár wrote: > > For a long time (since 3.5 or 3.8? - I do not remember) obex > > subdriver in g_nokia usb gadget module causing kernel panic > > after module is loaded on Nokia N900. I do not kn

Re: [PATCH 1/3] usb: dwc3: Add Keystone specific glue layer

2013-11-26 Thread Felipe Balbi
On Mon, Nov 25, 2013 at 07:49:01PM -0500, Santosh Shilimkar wrote: > On Monday 25 November 2013 03:39 PM, Felipe Balbi wrote: > > Hi, > > > > [...] > > > > >> + kdwc3_dma_mask = dma_get_mask(dev); > >> + dev->dma_mask = &kdwc3_dma_mask; > >> + > >> + error = kdwc3_enable(kdwc); > > > > I wo

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 19, 2013 at 11:51:12AM +0100, Pali Rohár wrote: > Hi! > > For a long time (since 3.5 or 3.8? - I do not remember) obex > subdriver in g_nokia usb gadget module causing kernel panic after > module is loaded on Nokia N900. I do not know where is problem > and due to immediatelly ker

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2013-11-26 Thread Pali Rohár
On Tuesday 19 November 2013 11:51:12 Pali Rohár wrote: > Hi! > > For a long time (since 3.5 or 3.8? - I do not remember) obex > subdriver in g_nokia usb gadget module causing kernel panic > after module is loaded on Nokia N900. I do not know where is > problem and due to immediatelly kernel crash

Re: [RESEND PATCH v3 4/4] usb: musb: dsps, use devm_kzalloc

2013-11-26 Thread Felipe Balbi
On Tue, Nov 26, 2013 at 10:26:17AM +0100, Markus Pargmann wrote: > On Mon, Nov 25, 2013 at 09:58:04AM -0600, Felipe Balbi wrote: > > On Mon, Nov 18, 2013 at 04:54:38PM +0100, Markus Pargmann wrote: > > > Signed-off-by: Markus Pargmann > > > > no commit log == no commit. Sorry, but I'll be very pe

Re: [RESEND PATCH v3 3/4] usb: musb: dsps, debugfs files

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 26, 2013 at 10:25:26AM +0100, Markus Pargmann wrote: > > On Mon, Nov 18, 2013 at 04:54:37PM +0100, Markus Pargmann wrote: > > > @@ -350,6 +373,30 @@ out: > > > return ret; > > > } > > > > > > +static int dsps_musb_dbg_init(struct musb *musb, struct dsps_glue *glue) > > > +{ >

Re: [PATCH v4 00/15] usb: phy: msm: Fixes, cleanups and DT support

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 12, 2013 at 04:51:35PM +0200, Ivan T. Ivanov wrote: > From: "Ivan T. Ivanov" > > Hi, > > Patches have been tested on top of Stephen's clock controller > patches[1] and recent fixes for chipidea msm glue layer driver > posted here[2]. Hardware platform AP8074 DragonBoard. Only g

Re: musb: bluk_split only worked for the first segment(PIO only)

2013-11-26 Thread Bin Liu
On Thu, Nov 21, 2013 at 4:40 AM, Yingchun Li wrote: > hi, >if musb bulk_split is enable, the segment size will be set according > to hw_ep->max_packet_sz_tx, and the segment will be writen to fifo. >But after the first tranfser end, the segment size will be set no larger > than qh->maxpack

Re: [REWORKED PATCH 1/5] usb: phy: fsm: don't depend on indirect includes

2013-11-26 Thread Felipe Balbi
Hi, On Tue, Nov 26, 2013 at 10:33:44AM -0600, Felipe Balbi wrote: > this header uses spinlocks and errno values, so > we must include and > to avoid build errors. > > Signed-off-by: Felipe Balbi Anton, I had to rework your patch series quite a bit in order to make it acceptable. It seems unli

[REWORKED PATCH 2/5] usb: phy: fsm: protect against multiple inclusions

2013-11-26 Thread Felipe Balbi
From: Anton Tikhomirov if this header is included twice, we would have redefinition build errors. Fix this. Signed-off-by: Anton Tikhomirov Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-fsm-usb.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/phy/phy-fsm-usb.h b/dr

[REWORKED PATCH 5/5] usb: phy: Add OTG FSM configuration option

2013-11-26 Thread Felipe Balbi
From: Anton Tikhomirov This patch removes dependency on Freescale USB UTG Transceiver driver and makes OTG FSM implementation selectable. Signed-off-by: Anton Tikhomirov Signed-off-by: Felipe Balbi --- drivers/usb/phy/Kconfig | 10 +- drivers/usb/phy/Makefile | 4 ++-- 2 files chang

[REWORKED PATCH 3/5] usb: phy: replace spinlock with mutex in OTG FSM

2013-11-26 Thread Felipe Balbi
From: Anton Tikhomirov OTG Final State Machine calls functions which may sleep. For example, start_gadget callback implementation can use usb_gadget_vbus_connect(), whose context: can sleep. If so, mutex should be used instead of spinlock. Signed-off-by: Anton Tikhomirov Signed-off-by: Felipe

[REWORKED PATCH 4/5] usb: phy: move OTG FSM header

2013-11-26 Thread Felipe Balbi
From: Anton Tikhomirov Other USB drivers may want to use OTG final state machine implementation, so make this header available for them. Signed-off-by: Anton Tikhomirov Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-fsl-usb.h| 2 +- drivers/usb/phy/phy-fsm

[REWORKED PATCH 1/5] usb: phy: fsm: don't depend on indirect includes

2013-11-26 Thread Felipe Balbi
this header uses spinlocks and errno values, so we must include and to avoid build errors. Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-fsm-usb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/phy/phy-fsm-usb.h b/drivers/usb/phy/phy-fsm-usb.h index 7441b46..32f86a3 1

Re: Need help to support USB3.0 HID Keyboard device

2013-11-26 Thread Greg KH
On Tue, Nov 26, 2013 at 03:26:04PM +0530, Bhavik Kothari wrote: > On Friday 22 November 2013 10:25 PM, Greg KH wrote: > >On Fri, Nov 22, 2013 at 04:47:10PM +0530, Bhavik Kothari wrote: > >>Hi, > >> > >>I have been working on USB3.0 device driver and wanted to support > >>USB3.0 HID (keyboard). > >>

[PATCH] usb: phy: fsm: don't depend on indirect includes

2013-11-26 Thread Felipe Balbi
this header uses spinlocks and errno values, so we must include and to avoid build errors. Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-fsm-usb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/phy/phy-fsm-usb.h b/drivers/usb/phy/phy-fsm-usb.h index 7441b46..32f86a3 1

RE: Any good ways to sync udc status with gadget driver?

2013-11-26 Thread Alan Stern
On Tue, 26 Nov 2013, Peter Chen wrote: > > > With runtime pm enabled udc driver, we may put controller to low > > > power mode when vbus is off or with SRP request. But gadget driver > > > may not know the udc status when it calls usb_ep_ops and usb_gadget_ops. > > > > > > I meet this problem when

Re: [PATCH v2 4/4] usb: musb: dsps: add support for suspend and resume

2013-11-26 Thread Felipe Balbi
On Tue, Nov 26, 2013 at 01:30:24PM +0100, Daniel Mack wrote: > On 11/25/2013 10:32 PM, Felipe Balbi wrote: > > On Mon, Nov 25, 2013 at 10:30:37PM +0100, Daniel Mack wrote: > >> On 11/25/2013 10:29 PM, Felipe Balbi wrote: > >>> Hi, > >>> > >>> On Mon, Nov 25, 2013 at 10:26:43PM +0100, Daniel Mack wr

[PATCH v2 2/2] usb: chipidea: usbmisc: Add support for i.MX51 CPU

2013-11-26 Thread Alexander Shiyan
This adds i.MX51 as the next user of the usbmisc driver. Functionality is similar to i.MX53, so at this stage simply reuse existing i.MX53 calls. Signed-off-by: Alexander Shiyan --- drivers/usb/chipidea/usbmisc_imx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/chipidea/us

[PATCH v2 1/2] usb: chipidea: usbmisc: Add support for i.MX27/i.MX31 CPUs

2013-11-26 Thread Alexander Shiyan
This adds i.MX27 and i.MX31 as the next user of the usbmisc driver. Signed-off-by: Alexander Shiyan --- drivers/usb/chipidea/usbmisc_imx.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmis

Re: [PATCH v6 0/3] usb: ehci+chipidea: fix imx28 "ENGR119653 USB: ARM to USB register error issue"

2013-11-26 Thread Marc Kleine-Budde
On 11/26/2013 01:44 PM, Marc Kleine-Budde wrote: > On 11/26/2013 01:11 PM, Peter Chen wrote: >> Changes for v6: >> - Add volatile for arm swp instruction, since we need io access >> to fix this problem >> - Add kernel style comment for imx28_write_fix > > Looks good now. I'll send you my Tested-by

Re: zte_ev not properly handling ZTE AC2726 CDMA modems

2013-11-26 Thread Johan Hovold
On Mon, Nov 25, 2013 at 06:15:28PM -0800, Dmitry Kunilov wrote: > Hi everyone, > > As a late follow-up to the discussion that happened in June about moving > support for most ZTE CDMA devices from option.c to zte_ev.c (where the > decision was to "convert and see if anyone complains"), I'd like to

Re: [PATCH 10/12] usb: r8a66597-hcd: Convert to clk_prepare/unprepare

2013-11-26 Thread Laurent Pinchart
Hi Greg, On Monday 25 November 2013 18:36:08 Greg Kroah-Hartman wrote: > On Tue, Nov 26, 2013 at 03:00:30AM +0100, Laurent Pinchart wrote: > > On Saturday 09 November 2013 08:10:59 Greg Kroah-Hartman wrote: > > > On Sat, Nov 09, 2013 at 03:12:05PM +0100, Laurent Pinchart wrote: > > > > On Tuesday

Re: Xhci Host not allowed to send get device desc at addr zero

2013-11-26 Thread Pratyush Anand
Hi Aymen On Tue, Nov 26, 2013 at 4:31 PM, Aymen BOUATTAY wrote: > Hi, > > I'm using Kernel release 3.4 with an embedded xhci host controller > Seems USB core driver does not allow xhci controller to send a get device > descriptor at address zero > As when a device is attached to the root hub,

Re: [PATCH v6 0/3] usb: ehci+chipidea: fix imx28 "ENGR119653 USB: ARM to USB register error issue"

2013-11-26 Thread Marc Kleine-Budde
On 11/26/2013 01:11 PM, Peter Chen wrote: > Changes for v6: > - Add volatile for arm swp instruction, since we need io access > to fix this problem > - Add kernel style comment for imx28_write_fix Looks good now. I'll send you my Tested-by this afternoon. tnx, Marc -- Pengutronix e.K.

[PATCH v6 2/3] usb: chipidea: add freescale imx28 special write register method

2013-11-26 Thread Peter Chen
According to Freescale imx28 Errata, "ENGR119653 USB: ARM to USB register error issue", All USB register write operations must use the ARM SWP instruction. So, we implement special hw_write and hw_test_and_clear for imx28. Discussion for it at below: http://marc.info/?l=linux-usb&m=137996395529294

[PATCH v6 1/3] usb: ehci: add freescale imx28 special write register method

2013-11-26 Thread Peter Chen
According to Freescale imx28 Errata, "ENGR119653 USB: ARM to USB register error issue", All USB register write operations must use the ARM SWP instruction. So, we implement a special ehci_write for imx28. Discussion for it at below: http://marc.info/?l=linux-usb&m=137996395529294&w=2 Signed-off-b

[PATCH v6 0/3] usb: ehci+chipidea: fix imx28 "ENGR119653 USB: ARM to USB register error issue"

2013-11-26 Thread Peter Chen
Changes for v6: - Add volatile for arm swp instruction, since we need io access to fix this problem - Add kernel style comment for imx28_write_fix Peter Chen (3): usb: ehci: add freescale imx28 special write register method usb: chipidea: add freescale imx28 special write register method usb

[PATCH v6 3/3] usb: chipidea: imx: set CI_HDRC_IMX28_WRITE_FIX for imx28

2013-11-26 Thread Peter Chen
Due to imx28 needs ARM swp instruction for writing, we set CI_HDRC_IMX28_WRITE_FIX for imx28. Signed-off-by: Peter Chen Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipidea/ci_hdrc_imx.c | 32 ++-- 1 files changed, 26 insertions(+), 6 deletions(-) diff --git

[PATCH v4 1/4] usb: musb: unconditionally save and restore the context on suspend

2013-11-26 Thread Daniel Mack
It appears not all platforms featuring a musb core need to save the musb core registers at suspend time and restore them on resume. The dsps platform does, however, and because it should cause any trouble on other platforms, do it unconditionally. Signed-off-by: Daniel Mack --- drivers/usb/musb

[PATCH v4 3/4] usb: musb: dsps: add {tx,rx}_mode to wrapper

2013-11-26 Thread Daniel Mack
rx_mode and tx_mode need to be read at suspend time and restored on resume for dsps platforms. So add it to the wrapper struct first, and initialize the values. Signed-off-by: Daniel Mack --- drivers/usb/musb/musb_dsps.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/musb/mu

[PATCH v4 2/4] usb: musb: call musb_port_suspend from musb_bus_suspend

2013-11-26 Thread Daniel Mack
Make musb_port_suspend() externally available, and call it when to host goes into suspend. This allows the core to go into suspend while a device is connected. Signed-off-by: Daniel Mack --- drivers/usb/musb/musb_host.c| 2 ++ drivers/usb/musb/musb_host.h| 2 ++ drivers/usb/musb/musb_vir

[PATCH v4 4/4] usb: musb: dsps: add support for suspend and resume

2013-11-26 Thread Daniel Mack
The dsps platform needs to save save some registers at suspend time and restore them after resume. This patch adds a struct for these registers, and also lets the musb core know that the core registers need to be saved as well. We also have to explicitly de-assert the port reset upon resume on thi

[PATCH v4 0/4] musb/dsps: suspend related patches for 3.14 (rebased)

2013-11-26 Thread Daniel Mack
v2 -> v3: * removed a development left-over v3 -> v4: * one hunk removed that sneaked in during rebasing Daniel Mack (4): usb: musb: unconditionally save and restore the context on suspend usb: musb: call musb_port_suspend from musb_bus_suspend usb: musb: dsps: add {tx,rx}_mode to wrappe

Re: [PATCH v2 4/4] usb: musb: dsps: add support for suspend and resume

2013-11-26 Thread Daniel Mack
On 11/25/2013 10:32 PM, Felipe Balbi wrote: > On Mon, Nov 25, 2013 at 10:30:37PM +0100, Daniel Mack wrote: >> On 11/25/2013 10:29 PM, Felipe Balbi wrote: >>> Hi, >>> >>> On Mon, Nov 25, 2013 at 10:26:43PM +0100, Daniel Mack wrote: +static int dsps_resume(struct device *dev) +{ + str

RE: [PATCH 2/4 V2] ARM: mx28: Add USB PHY overcurrent pinmux

2013-11-26 Thread Peter Chen
> > The GPIO is working for this pin. But also the DIGCTL register bits > helped here. Now the OC event triggers if the pin gets pulled to 3V3. > > I am currently looking for a good place to enable the DIGCTL bits. > I suggest to enable them per default. As we don't have USBMISC registers >

Xhci Host not allowed to send get device desc at addr zero

2013-11-26 Thread Aymen BOUATTAY
Hi, I'm using Kernel release 3.4 with an embedded xhci host controller Seems USB core driver does not allow xhci controller to send a get device descriptor at address zero As when a device is attached to the root hub, usb core driver reset the device and if the link is superspeed than do a set_a

[PATCH 2/2] PM / Sleep: Add macro to define common late/early system PM callbacks

2013-11-26 Thread Ulf Hansson
We use the same approach as for the existing SET_SYSTEM_SLEEP_PM_OPS, but for the late and early callbacks instead. The new SET_LATE_SYSTEM_SLEEP_PM_OPS, defined for CONFIG_PM_SLEEP, will point ->suspend_late, ->freeze_late and ->poweroff_late to the same function. Vice verse happens for ->resume_

[PATCH 1/2] PM / Runtime: Add second macro for definition of runtime PM callbacks

2013-11-26 Thread Ulf Hansson
It is allowed and will in many cases make sense to have the runtime PM callbacks to be defined for CONFIG_PM instead of CONFIG_PM_RUNTIME. Since the PM core disables runtime PM during system suspend, before the .suspend_late callbacks are invoked, drivers could at this point directly invoke it's r

Re: [PATCH 1/5] usb: musb: conditionally save and restore the context on suspend

2013-11-26 Thread Daniel Mack
On 11/26/2013 11:50 AM, Sergei Shtylyov wrote: > On 25-11-2013 23:39, Daniel Mack wrote: > >> It appears not all platforms featuring a musb core need to save the musb >> core registers at suspend time and restore them on resume. > >> The dsps platform does, however. So add a bit in struct >> musb

Re: [PATCH 1/5] usb: musb: conditionally save and restore the context on suspend

2013-11-26 Thread Sergei Shtylyov
Hello. On 25-11-2013 23:39, Daniel Mack wrote: It appears not all platforms featuring a musb core need to save the musb core registers at suspend time and restore them on resume. The dsps platform does, however. So add a bit in struct musb_hdrc_platform_data to let platforms specify their ne

Re: [PATCH v3 7/9] phy: add Broadcom Kona USB2 PHY DT binding

2013-11-26 Thread Kishon Vijay Abraham I
Hi, On Monday 25 November 2013 11:46 PM, Matt Porter wrote: > Add a binding that describes the Broadcom Kona USB2 PHY found > on the BCM281xx family of SoCs. > > Signed-off-by: Matt Porter > --- > .../devicetree/bindings/phy/bcm-kona-usb2-phy.txt | 15 > +++ > 1 file change

Re: [PATCH v3 6/9] usb: gadget: s3c-hsotg: get phy bus width from phy subsystem

2013-11-26 Thread Kishon Vijay Abraham I
Hi, On Monday 25 November 2013 11:46 PM, Matt Porter wrote: > Adds support for querying the phy bus width from the generic phy > subsystem. Configure UTMI bus width in GUSBCFG based on this value. > > Signed-off-by: Matt Porter > --- > drivers/usb/gadget/s3c-hsotg.c | 14 +- > drive

Re: [PATCH v3 5/9] usb: gadget: s3c-hsotg: use generic phy_init()/phy_exit() support

2013-11-26 Thread Kishon Vijay Abraham I
Hi, On Monday 25 November 2013 11:46 PM, Matt Porter wrote: > If a generic phy is present, call phy_init()/phy_exit(). This supports > generic phys that must be soft reset before power on. > > Signed-off-by: Matt Porter > --- > drivers/usb/gadget/s3c-hsotg.c | 5 + > 1 file changed, 5 inser

Re: [PATCH v3 2/9] staging: dwc2: update DT binding to add generic clock/phy properties

2013-11-26 Thread Kishon Vijay Abraham I
On Monday 25 November 2013 11:46 PM, Matt Porter wrote: > dwc2/s3c-hsotg require a single clock to be specified and optionally > a generic phy. On the s3c-hsotg driver old style USB phy support is > present as a fallback so the generic phy properties are optional. > > Signed-off-by: Matt Porter >

  1   2   >