Re: ftdi_sio BUG: NULL pointer dereference

2014-06-05 Thread Johan Hovold
On Wed, Jun 04, 2014 at 01:05:03PM -0400, Mike Remski wrote: > On 06/04/2014 12:00 PM, Johan Hovold wrote: > > On Wed, Jun 04, 2014 at 11:41:47AM -0400, Mike Remski wrote: > >> Ok, had a chance to try the cdc-acm; yes it's the ancient one that is > >> in the base install of CentOS 6.4 (2.6.32-71.2

[PATCH 2/2] tools: ffs-test: convert to new descriptor format fixing compilation error

2014-06-05 Thread Michal Nazarewicz
Commit [ac8dde11: “usb: gadget: f_fs: Add flags to descriptors block”] which introduced a new descriptor format for FunctionFS removed the usb_functionfs_descs_head structure, which is still used by ffs-test. tool. Convert ffs-test by converting it to use the new header format. For testing kernel

[PATCH 1/2] usb: gadget: f_fs: resurect usb_functionfs_descs_head structure

2014-06-05 Thread Michal Nazarewicz
Even though usb_functionfs_descs_head structure is now deprecated, it has been used by some user space tools. It's removel in commit [ac8dde1: Add flags to descriptors block] was an oversight leading to build breakage for such tools. Bring it back so that old user space tools can still be build w

Re: [PATCH v1] USB:gadget: Fix a warning while loading g_mass_storage

2014-06-05 Thread Andrzej Pietrasiewicz
W dniu 04.06.2014 17:26, Alan Stern pisze: On Wed, 4 Jun 2014, Andrzej Pietrasiewicz wrote: What is the difference in purpose between usb_function and usb_function_instance? I can't tell just by reading the header file. Does one of them get created dynamically when the host sets the approp

Re: [PATCH] leds: USB: Add support for MSI GT683R led panels

2014-06-05 Thread Johan Hovold
[ +CC: linux-usb ] On Sat, May 31, 2014 at 06:46:44PM +0300, Janne Kanniainen wrote: > This driver adds support for USB controlled led panels that exist in MSI > GT683R laptop. > > Signed-off-by: Janne Kanniainen > --- > drivers/leds/Kconfig | 6 ++ > drivers/leds/Makefile | 1 +

RE: [PATCH 2/2] tools: ffs-test: convert to new descriptor format fixing compilation error

2014-06-05 Thread Krzysztof Opasiak
Hi, > -Original Message- > From: Michal Nazarewicz [mailto:min...@mina86.com] > Sent: Thursday, June 05, 2014 9:43 AM > To: Felipe Balbi > Cc: Krzysztof Opasiak; linux-usb@vger.kernel.org; linux- > ker...@vger.kernel.org; Michal Nazarewicz > Subject: [PATCH 2/2] tools: ffs-test: convert to

RE: [PATCHv2] usb: gadget: f_fs: Add flags to descriptors block

2014-06-05 Thread Krzysztof Opasiak
Hi, > -Original Message- > From: Michal Nazarewicz [mailto:m...@google.com] On Behalf Of Michal > Nazarewicz > Sent: Wednesday, June 04, 2014 9:06 PM > To: Krzysztof Opasiak; 'Manu Gautam' > Cc: ba...@ti.com; ja...@codeaurora.org; pheat...@codeaurora.org; > linux-usb@vger.kernel.org; linux

Re: [PATCH 2/2] tools: ffs-test: convert to new descriptor format fixing compilation error

2014-06-05 Thread Michal Nazarewicz
On Thu, Jun 05 2014, Krzysztof Opasiak wrote: > I would suggest adding a suitable structure as you described in > previous discussion[1]. Writing first 3 fields in each userspace > program doesn't look quite good. Using: > > #ifndef USE_LEGACY_DESC_HEAD > struct { > struct usb_functionfs_des

[PATCHv2 5/6] base: platform: name the device already during allocation

2014-06-05 Thread Heikki Krogerus
This allows resources such as GPIOs and clocks, which can be matched based on the device name when requested, to be assigned even when PLATFORM_DEVID_AUTO is used. Signed-off-by: Heikki Krogerus Cc: Greg Kroah-Hartman --- drivers/base/platform.c | 77 ++--

[PATCHv2 6/6] usb: dwc3: host: convey the PHYs to xhci

2014-06-05 Thread Heikki Krogerus
On some platforms a PHY may need to be handled also in the host controller driver. Exynos5420 SoC requires some "PHY tuning" based on the USB speed. This patch delivers dwc3's PHYs to the xhci platform device when it's created. Signed-off-by: Heikki Krogerus Cc: Felipe Balbi --- drivers/usb/dwc

[PATCHv2 4/6] phy: remove the old lookup method

2014-06-05 Thread Heikki Krogerus
The users of the old method are now converted to the new one. Signed-off-by: Heikki Krogerus --- drivers/phy/phy-bcm-kona-usb2.c | 2 +- drivers/phy/phy-core.c | 45 +++-- drivers/phy/phy-exynos-dp-video.c | 2 +- drivers/phy/phy-exynos-mipi-v

[PATCHv2 3/6] arm: omap3: twl: use the new lookup method with usb phy

2014-06-05 Thread Heikki Krogerus
Provide complete association for the phy and it's user (musb) with the new phy lookup method. Signed-off-by: Heikki Krogerus Cc: Tony Lindgren --- arch/arm/mach-omap2/twl-common.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-omap2/twl-com

[PATCHv2 0/6] phy: simplified phy lookup

2014-06-05 Thread Heikki Krogerus
Hi, So the idea with these is that they should help to make it possible to request phys without caring about how they are mapped to the consumers, meaning, was is the mapping done in DT, ACPI, etc. Mapping phys to consumers can be now done with lookups similarly how clocks can be mapped in clkdev.

[PATCHv2 1/6] phy: safer to_phy() macro

2014-06-05 Thread Heikki Krogerus
This makes to_phy() macro work with other variable names besides "dev". Signed-off-by: Heikki Krogerus --- include/linux/phy/phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index 2760744..10d9714 100644 --- a/include/lin

[PATCHv2 2/6] phy: improved lookup method

2014-06-05 Thread Heikki Krogerus
Removes the need for the phys to be aware of their users even when not using DT. The method is copied from clkdev.c. Signed-off-by: Heikki Krogerus --- Documentation/phy.txt | 66 --- drivers/phy/phy-core.c | 135 +++- include/l

Re: [PATCHv2 0/6] phy: simplified phy lookup

2014-06-05 Thread Vivek Gautam
Hi Heikki, On Thu, Jun 5, 2014 at 6:22 PM, Heikki Krogerus wrote: > Hi, > > So the idea with these is that they should help to make it possible to > request phys without caring about how they are mapped to the > consumers, meaning, was is the mapping done in DT, ACPI, etc. Mapping > phys to cons

[PATCH] usb: gadget: gadgetfs: correct dev state

2014-06-05 Thread Marcus Nutzinger
Commit 1826e9b1 fixes the use after free of "dev". However if this is not the final call to dev_release() and the state is not reset to STATE_DEV_DISABLED and hence all further open() calls to the gadgetfs ep0 device will fail with EBUSY. So this commit reverts 1826e9b1 and places the call put_dev

RE: [PATCH 2/2] tools: ffs-test: convert to new descriptor format fixing compilation error

2014-06-05 Thread Krzysztof Opasiak
Hi, > -Original Message- > From: Michal Nazarewicz [mailto:m...@google.com] On Behalf Of Michal > Nazarewicz > Sent: Thursday, June 05, 2014 1:56 PM > To: Krzysztof Opasiak; 'Felipe Balbi' > Cc: Krzysztof Opasiak; linux-usb@vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [P

[PATCH 4/5] USB: ftdi_sio: clean up ftdi_set_max_packet_size()

2014-06-05 Thread Johan Hovold
Code and comment style clean ups of ftdi_set_max_packet_size(). Signed-off-by: Johan Hovold --- drivers/usb/serial/ftdi_sio.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 19f1114

[PATCH 0/5] USB: ftdi_sio: wMaxPacketSize patches

2014-06-05 Thread Johan Hovold
Some FTDI devices have broken endpoint descriptors that needs to be fixed up during probe. Mike Remski discovered that the current implementation is broken as it crashes the kernel if an interface without endpoints is probed. These patches fix this bug, while cleaning up the max-packet-size handli

[PATCH 5/5] USB: ftdi_sio: remove redundant mtxorb quirk

2014-06-05 Thread Johan Hovold
Remove redundant mtxorb quirk used to fix up incorrect wMaxPacketSize, which was added before 895f28badce9 ("USB: ftdi_sio: fix hi-speed device packet size calculation") which does the same thing for all devices. Signed-off-by: Johan Hovold --- drivers/usb/serial/ftdi_sio.c | 47

[PATCH 1/5] USB: ftdi_sio: fix null deref at port probe

2014-06-05 Thread Johan Hovold
Fix NULL-pointer dereference when probing an interface with no endpoints. These devices have two bulk endpoints per interface, but this avoids crashing the kernel if a user forces a non-FTDI device to be probed. Note that the iterator variable was made unsigned in order to avoid a maybe-uninitial

[PATCH 2/5] USB: ftdi_sio: make port probe less verbose

2014-06-05 Thread Johan Hovold
There's no need to print the number of endpoints per interface or endpoint wMaxPacketSize during port probe. This information is readily available using lsusb should it ever be needed. Note that this also fixes the wMaxPacketSize being incorrectly reported on big-endian systems due to a missing le

[PATCH 3/5] USB: ftdi_sio: fix max-packet-size warning

2014-06-05 Thread Johan Hovold
Promote max-packet-size-override message to warning level and use the port device for logging, while using actual endpoint numbers in the message itself. Signed-off-by: Johan Hovold --- drivers/usb/serial/ftdi_sio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers

Re: [PATCH 1/2] usb: gadget: f_fs: resurect usb_functionfs_descs_head structure

2014-06-05 Thread Sergei Shtylyov
Hello. On 06/05/2014 11:43 AM, Michal Nazarewicz wrote: Even though usb_functionfs_descs_head structure is now deprecated, it has been used by some user space tools. It's removel in commit s/It's removel/Its removal/. [ac8dde1: Add flags to descriptors block] was an oversight leading to

Re: [PATCH] usb: gadget: gadgetfs: correct dev state

2014-06-05 Thread Sergei Shtylyov
Hello. On 06/05/2014 05:08 PM, Marcus Nutzinger wrote: Commit 1826e9b1 fixes the use after free of "dev". Please also specify that commit's summary line in parens. However if this is not the final call to dev_release() and the state is not reset to STATE_DEV_DISABLED and hence all furthe

Re: [PATCH] leds: USB: Add support for MSI GT683R led panels

2014-06-05 Thread Daniele Forsi
2014-06-05 13:06 GMT+02:00: >> + dev_err(&led->usb_dev->dev, "Message to be send to device is >> too long\n"); there's a typo: s/send/sent/ -- Daniele Forsi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org

RE: [PATCH v1] USB:gadget: Fix a warning while loading g_mass_storage

2014-06-05 Thread Alan Stern
On Thu, 5 Jun 2014, Peter Chen wrote: > > > > It is a little strange we call gadget's disconnect at SET_ADDRESS? > > > > How the udc calls gadget driver the disconnection has happened when > > > > the usb cable is disconnected from the host? > > > > > > > > Usually, we call gadget's disconnect at

[PATCH v2] usb: gadget: gadgetfs: correct dev state

2014-06-05 Thread Marcus Nutzinger
This reverts commit 1826e9b1 (usb: gadget: gadgetfs: use after free in dev_release()) and places the call to put_dev() after setting the state. If this is not the final call to dev_release() and the state is not reset to STATE_DEV_DISABLED and hence all further open() calls to the gadgetfs ep0 dev

Re: [PATCH 0/5] USB: ftdi_sio: wMaxPacketSize patches

2014-06-05 Thread Greg KH
On Thu, Jun 05, 2014 at 04:05:51PM +0200, Johan Hovold wrote: > Some FTDI devices have broken endpoint descriptors that needs to be > fixed up during probe. Mike Remski discovered that the current > implementation is broken as it crashes the kernel if an interface > without endpoints is probed. >

linux-next crash in xhci_add_ep_to_interval

2014-06-05 Thread Valdis Kletnieks
Dell Latitude E6530, BIOS A11, seeing a crash in xhci_add_ep_to_interval when it's docked in a newer dock that has USB3. It's very possible that the BIOS is buggy - it isn't like I haven't found BIOS bugs in every single Dell laptop I've had. :) But that shouldn't make the kernel crash lsusb

Re: [PATCH] usb: gadget: gadgetfs: correct dev state

2014-06-05 Thread Marcus Nutzinger
Hi Sergei, On Jun 5, 2014, at 4:18 PM, Sergei Shtylyov wrote: > Please also specify that commit's summary line in parens. I'll resubmit the updated patch in a minute! >> +/* other endpoints were all decoupled from this device */ >> +spin_lock_irq(&dev->lock); >> +dev->state = ST

Re: ASMedia AS2105 interface on USB 3.0 corrupts data

2014-06-05 Thread Mathias Nyman
On 05/26/2014 08:19 PM, Heinz Diehl wrote: > On 26.05.2014, Mathias Nyman wrote: > >> This would be helpful, I've got a LeCroy protocol analyzer in Finland. > >> Heinz, if you're willing to send it to Europe Finland I'll gladly take it, >> (I'll send the address details in a separate personal m

[PATCH] usb: gadget: dummy_hcd: remove superfluous setting HC_STATE_RUNNING in dummy_start()

2014-06-05 Thread Pantelis Koukousoulas
After commit 4814030ce11f08350b7, the core now sets hcd->state = HC_STATE_RUNNING in usb_add_hcd() before the driver's start() method is called. So, we can safely remove this line from dummy_start() since it is now superfluous. Signed-off-by: Pantelis Koukousoulas --- drivers/usb/gadget/dummy_h

[PATCH 9/9] ARM: dts: Berlin: enable USB on the BG2Q DMP

2014-06-05 Thread Antoine Ténart
Enable the 2 available USB PHY and USB nodes on the Marvell Berlin BG2Q DMP. Signed-off-by: Antoine Ténart --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/berlin2q-marvell-dmp.dts b/arch/arm/boot/dts/berl

[PATCH 8/9] ARM: dts: berlin: add BG2Q nodes for USB support

2014-06-05 Thread Antoine Ténart
Adds nodes describing the Marvell Berlin BG2Q USB PHY and USB. The BG2Q SoC has 3 USB host controller, compatible with ChipIdea. Signed-off-by: Antoine Ténart --- arch/arm/boot/dts/berlin2q.dtsi | 51 + 1 file changed, 51 insertions(+) diff --git a/arch/a

[PATCH 6/9] usb: chipidea: add Berlin USB support

2014-06-05 Thread Antoine Ténart
The Marvell Berlin USB controllers are compatible with ChipIdea. Add a driver using the ChipIdea common functions to support them. Signed-off-by: Antoine Ténart --- drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci_hdrc_berlin.c | 108 ++ 2 fi

[PATCH 5/9] Documentation: bindings: add doc for the Berlin USB PHY

2014-06-05 Thread Antoine Ténart
Document the bindings of the Marvell Berlin USB PHY driver. Signed-off-by: Antoine Ténart --- .../devicetree/bindings/usb/berlin-usbphy.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/berlin-usbphy.txt diff --git a

[PATCH 7/9] Documentation: bindings: add doc for the Berlin ChipIdea USB driver

2014-06-05 Thread Antoine Ténart
Document the Marvell Berlin USB driver bindings. Signed-off-by: Antoine Ténart --- .../devicetree/bindings/usb/ci-hdrc-berlin.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ci-hdrc-berlin.txt diff --git a/Documenta

[PATCH 4/9] usb: phy: add the Berlin USB PHY driver

2014-06-05 Thread Antoine Ténart
Add the driver driving the Marvell Berlin USB PHY. This allows to initialize the PHY and to use it from the USB driver later. Signed-off-by: Antoine Ténart --- drivers/usb/phy/Kconfig | 9 ++ drivers/usb/phy/Makefile | 1 + drivers/usb/phy/phy-berlin-usb.c | 223

[PATCH 0/9] ARM: Berlin: USB support

2014-06-05 Thread Antoine Ténart
This series adds the support for the Marvell Berlin USB controllers, the USB PHYs and also adds a reset controller. The reset controller is used by the USB PHY driver and shares the existing chip controller node with the clocks and one pin controller. The Marvell Berlin USB controllers are host o

Re: linux-next crash in xhci_add_ep_to_interval

2014-06-05 Thread Dan Williams
[ adding Mathias ] On Thu, Jun 5, 2014 at 8:22 AM, Valdis Kletnieks wrote: > Dell Latitude E6530, BIOS A11, seeing a crash in xhci_add_ep_to_interval > when it's docked in a newer dock that has USB3. > > It's very possible that the BIOS is buggy - it isn't like I haven't found > BIOS bugs in ever

Re: [PATCH] usb: gadget: gadgetfs: correct dev state

2014-06-05 Thread Alan Stern
On Thu, 5 Jun 2014, Marcus Nutzinger wrote: > Hi Sergei, > > On Jun 5, 2014, at 4:18 PM, Sergei Shtylyov > wrote: > > > Please also specify that commit's summary line in parens. > > I'll resubmit the updated patch in a minute! > > >> + /* other endpoints were all decoupled from this devic

Re: [PATCH 0/5] USB: ftdi_sio: wMaxPacketSize patches

2014-06-05 Thread Johan Hovold
On Thu, Jun 05, 2014 at 08:30:42AM -0700, Greg KH wrote: > On Thu, Jun 05, 2014 at 04:05:51PM +0200, Johan Hovold wrote: > > Some FTDI devices have broken endpoint descriptors that needs to be > > fixed up during probe. Mike Remski discovered that the current > > implementation is broken as it cras

Re: [PATCH 1/5] USB: ftdi_sio: fix null deref at port probe

2014-06-05 Thread Ben Hutchings
On Thu, 2014-06-05 at 16:05 +0200, Johan Hovold wrote: > Fix NULL-pointer dereference when probing an interface with no > endpoints. > > These devices have two bulk endpoints per interface, but this avoids > crashing the kernel if a user forces a non-FTDI device to be probed. > > Note that the it

Re: [PATCH 1/5] USB: ftdi_sio: fix null deref at port probe

2014-06-05 Thread Johan Hovold
On Thu, Jun 05, 2014 at 05:13:49PM +0100, Ben Hutchings wrote: > On Thu, 2014-06-05 at 16:05 +0200, Johan Hovold wrote: > > Fix NULL-pointer dereference when probing an interface with no > > endpoints. > > > > These devices have two bulk endpoints per interface, but this avoids > > crashing the ke

Re: [PATCH 0/5] USB: ftdi_sio: wMaxPacketSize patches

2014-06-05 Thread Greg KH
On Thu, Jun 05, 2014 at 06:04:32PM +0200, Johan Hovold wrote: > On Thu, Jun 05, 2014 at 08:30:42AM -0700, Greg KH wrote: > > On Thu, Jun 05, 2014 at 04:05:51PM +0200, Johan Hovold wrote: > > > Some FTDI devices have broken endpoint descriptors that needs to be > > > fixed up during probe. Mike Rems

Re: linux-next crash in xhci_add_ep_to_interval

2014-06-05 Thread Valdis . Kletnieks
On Thu, 05 Jun 2014 08:55:07 -0700, Dan Williams said: > > On a working boot, it progresses: > > Is a working boot after reverting that change, or it intermittently > works? If it's the latter I'm not sure I trust the bisect result, > yet. Oh, it's a 100% guaranteed crash. The following is from

Re: linux-next crash in xhci_add_ep_to_interval

2014-06-05 Thread Dan Williams
On Thu, Jun 5, 2014 at 9:24 AM, wrote: > On Thu, 05 Jun 2014 08:55:07 -0700, Dan Williams said: > >> > On a working boot, it progresses: >> >> Is a working boot after reverting that change, or it intermittently >> works? If it's the latter I'm not sure I trust the bisect result, >> yet. > > Oh,

Re: linux-next crash in xhci_add_ep_to_interval

2014-06-05 Thread Valdis . Kletnieks
On Thu, 05 Jun 2014 09:35:48 -0700, Dan Williams said: > Actually, on second look I bet xhci_alloc_tt_info() is being called > while hdev->maxchild is not set. Let me throw together a debug > patch... Sure, no problem - just let me know what variant of linux-next you want it applied against. :)

Re: [PATCH v2] USB:gadget: Fix a warning while loading g_mass_storage

2014-06-05 Thread Alan Stern
On Wed, 4 Jun 2014 wei.y...@windriver.com wrote: > From: Yang Wei > > While loading g_mass_storage module, the following warning is triggered. > > WARNING: at drivers/usb/gadget/composite.c: > usb_composite_setup_continue: Unexpected call > Modules linked in: fat vfat minix nls_cp437 nls_iso885

Re: [PATCH v1] USB:gadget: Fix a warning while loading g_mass_storage

2014-06-05 Thread Alan Stern
On Thu, 5 Jun 2014, Andrzej Pietrasiewicz wrote: > I think it is easier to tell the purpose of the two structures taking > gadgets composed with configfs as example. > > In each gadget there is "functions" directory. Function directories > are created there: > > $ cd $CONFIGFS_ROOT/usb_gadget/ou

Re: [PATCH] usb: gadget: dummy_hcd: remove superfluous setting HC_STATE_RUNNING in dummy_start()

2014-06-05 Thread Sergei Shtylyov
Hello. On 06/05/2014 07:44 PM, Pantelis Koukousoulas wrote: After commit 4814030ce11f08350b7, the core now sets Please also specify that commit's summary line in parens. hcd->state = HC_STATE_RUNNING in usb_add_hcd() before the driver's start() method is called. So, we can safely remo

Re: [PATCH] usb: gadget: dummy_hcd: remove superfluous setting HC_STATE_RUNNING in dummy_start()

2014-06-05 Thread Pantelis Koukousoulas
On Thu, Jun 5, 2014 at 9:13 PM, Sergei Shtylyov wrote: >> After commit 4814030ce11f08350b7, the core now sets > >Please also specify that commit's summary line in parens. Is this in order to be able to grep it more easily? I 'm asking because that summary (Initialize hcd->state roothubs) does

Re: linux-next crash in xhci_add_ep_to_interval

2014-06-05 Thread Dan Williams
On Thu, 2014-06-05 at 13:29 -0400, valdis.kletni...@vt.edu wrote: > On Thu, 05 Jun 2014 09:35:48 -0700, Dan Williams said: > > > Actually, on second look I bet xhci_alloc_tt_info() is being called > > while hdev->maxchild is not set. Let me throw together a debug > > patch... > > Sure, no proble

[PATCH] HID: usbhid: remove unneeded initialization of quirks_param[]

2014-06-05 Thread Mathias Krause
The quirks_param array is located in the BSS, no need to explicitly initialize it with NULL. Signed-off-by: Mathias Krause --- drivers/hid/usbhid/hid-core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index

Re: [PATCH] usb: gadget: dummy_hcd: remove superfluous setting HC_STATE_RUNNING in dummy_start()

2014-06-05 Thread Sergei Shtylyov
Hello. On 06/05/2014 10:55 PM, Pantelis Koukousoulas wrote: After commit 4814030ce11f08350b7, the core now sets Please also specify that commit's summary line in parens. Is this in order to be able to grep it more easily? I 'm asking because It's actually the only way to uniquely

[PATCH] usb: gadget: dummy_hcd: remove superfluous setting HC_STATE_RUNNING in dummy_start()

2014-06-05 Thread Pantelis Koukousoulas
After commit 4814030ce11f08350b7, (usb: initialize hcd->state roothubs) the core now sets hcd->state = HC_STATE_RUNNING in usb_add_hcd() before the driver's start() method is called. So, we can safely remove this line from dummy_start() since it is now superfluous. Signed-off-by: Pantelis Koukou

[PATCH 0/5] randconfig build fixes for staging

2014-06-05 Thread Arnd Bergmann
Hi Greg, Here are a couple of simple fixes from my backlog of ARM randconfig bugs. Nothing urgent, they can probably all go into next for 3.17 after the merge window, but see for yourself. Arnd Arnd Bergmann (5): staging: lirc: remove sa1100 support staging/iio: IIO_SIMPLE_DUMMY_BUFF

[PATCH 3/5] staging: sn9c102 depends on USB

2014-06-05 Thread Arnd Bergmann
If the USB code is a loadable module, this driver cannot be built-in. This adds an explicit dependency on CONFIG_USB so that Kconfig can force sn9c102 to be a module in this case. Signed-off-by: Arnd Bergmann Cc: Luca Risolia Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Cc: linux-u

Re: linux-next crash in xhci_add_ep_to_interval

2014-06-05 Thread Valdis . Kletnieks
ng of hdev->maxchild. > > Cc: Mathias Nyman > Reported-by: Valdis Kletnieks > Signed-off-by: Dan Williams Applied cleanly, booted without complaint, the keyboard that's behind the PS2-USB converter works. uname -r reports 3.15.0-rc8-next-20140605-dirty as expected. So fee

Re: linux-next crash in xhci_add_ep_to_interval

2014-06-05 Thread Dan Williams
; hdev->maxchild already being set. Do the minimal fix and move it after >> the setting of hdev->maxchild. >> >> Cc: Mathias Nyman >> Reported-by: Valdis Kletnieks >> Signed-off-by: Dan Williams > > Applied cleanly, booted without complaint, the keyboard th

[boot regression PATCH] usb: fix ->update_hub_device() vs hdev->maxchild

2014-06-05 Thread Dan Williams
Commit d8521afe3586 "usb: assign default peer ports for root hubs" delayed marking a hub valid (set hdev->maxchild) until it had been fully configured and to enable the publishing of valid hubs to be serialized by usb_port_peer_mutex. However, xhci_update_hub_device() in some cases depends on hdev

Re: [PATCH 07/10] xhci: Use command structures when queuing commands on the command ring

2014-06-05 Thread Dan Williams
Hi Mathias, hit a small issue playing with -next: On Thu, May 8, 2014 at 9:26 AM, Mathias Nyman wrote: > To create a global command queue we require that each command put on the > command ring is submitted with a command structure. > > Functions that queue commands and wait for completion need to

Re: [PATCH 4/9] usb: phy: add the Berlin USB PHY driver

2014-06-05 Thread Vivek Gautam
+ Kishon. Hi, On Thu, Jun 5, 2014 at 9:18 PM, Antoine Ténart wrote: > Add the driver driving the Marvell Berlin USB PHY. This allows to > initialize the PHY and to use it from the USB driver later. Just out of curiosity, going forward we would like to have phy drivers based on generic phy fram