Re: [PATCH] USB: don't free bandwidth_mutex too early

2016-06-24 Thread Greg KH
On Thu, Jun 23, 2016 at 03:09:23PM -0400, Alan Stern wrote: > The USB core contains a bug that can show up when a USB-3 host > controller is removed. If the primary (USB-2) hcd structure is > released before the shared (USB-3) hcd, the core will try to do a > double-free of the common bandwidth_mu

Re: USB: EHCI: declare hostpc register as zero-length array

2016-06-24 Thread Greg KH
On Thu, Jun 23, 2016 at 03:07:21PM -0400, Alan Stern wrote: > Greg: > > Sorry, the Subject line of the original email left out "[PATCH]" at the > beginning. Will it still work with your scripts? Will work just fine, thanks. greg k-h -- To unsubscribe from this list: send the line "unsubscribe

Re: [GIT PULL] USB OTG FSM Fix for v4.7-rc5

2016-06-24 Thread Greg KH
On Tue, Jun 21, 2016 at 10:41:29AM +0800, Peter Chen wrote: > The following changes since commit e4600d56323ed119469fdcb21564f7544e1e6b3c: > > Merge tag 'phy-for-4.7-rc' of > git://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy into usb-linus > (2016-06-10 23:06:21 -0700) > > are av

Re: [PATCH v7 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-24 Thread Guenter Roeck
On Tue, Jun 21, 2016 at 3:30 AM, Frank Wang wrote: > The newer SoCs (rk3366, rk3399) take a different usb-phy IP block > than rk3288 and before, and most of phy-related registers are also > different from the past, so a new phy driver is required necessarily. > > Signed-off-by: Frank Wang > Sugge

Re: [patch] usb: gadget: f_fs: check for allocation failure

2016-06-24 Thread Michal Nazarewicz
On Fri, Jun 24 2016, Dan Carpenter wrote: > Return -ENOMEM if kmalloc() fails. > > Fixes: 9353afbbfa7b ('usb: gadget: f_fs: buffer data from ‘oversized’ OUT > requests') > Signed-off-by: Dan Carpenter > Acked-by: Michal Nazarewicz > diff --git a/drivers/usb/gadget/function/f_fs.c > b/drivers/

Re: [PATCH v7 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-24 Thread Heiko Stuebner
Am Dienstag, 21. Juni 2016, 18:30:05 schrieb Frank Wang: > The newer SoCs (rk3366, rk3399) take a different usb-phy IP block > than rk3288 and before, and most of phy-related registers are also > different from the past, so a new phy driver is required necessarily. > > Signed-off-by: Frank Wang >

Re: [PATCH v4 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-06-24 Thread Heiko Stuebner
Hi William, Am Dienstag, 21. Juni 2016, 17:11:44 schrieb William Wu: > On 06/20/2016 10:44 PM, Heiko Stübner wrote: > > Am Freitag, 17. Juni 2016, 17:18:59 schrieb William Wu: > >> On 06/17/2016 07:15 AM, Heiko Stübner wrote: > >>> Am Donnerstag, 2. Juni 2016, 20:34:56 schrieb William Wu: > T

Re: [PATCH 3/3] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2016-06-24 Thread Bruno Herrera
On Fri, Jun 24, 2016 at 12:41 PM, Rob Herring wrote: > On Tue, Jun 21, 2016 at 11:25:49PM -0300, Bruno Herrera wrote: >> Signed-off-by: Bruno Herrera >> --- >> Documentation/devicetree/bindings/usb/dwc2.txt | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/Documentation/devicetree/bind

Re: [PATCH v5 2/5] ARM: davinci: da8xx: Add CFGCHIP syscon platform declaration.

2016-06-24 Thread David Lechner
Re: USB needing fixed, I'm not sure how to do this and I won't have time for at least the next 2 or 3 months to do anything about it. The problem is that the MUSB can't detect the ID pin. As a workaround, it is detecting the VBUS state and using that to determine the ID pin state. So, when you at

Re: [PATCH 3/3] dt-bindings: Document the STM32 USB OTG DWC2 core binding

2016-06-24 Thread Rob Herring
On Tue, Jun 21, 2016 at 11:25:49PM -0300, Bruno Herrera wrote: > Signed-off-by: Bruno Herrera > --- > Documentation/devicetree/bindings/usb/dwc2.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt > b/Documentation/devicetree/bindings/usb/

Re: [PATCH 08/12] doc: binding: pwrseq-usb-generic: add binding doc for generic usb power sequence driver

2016-06-24 Thread Rob Herring
On Wed, Jun 22, 2016 at 4:09 AM, Ulf Hansson wrote: > On 21 June 2016 at 23:26, Rob Herring wrote: >> On Tue, Jun 21, 2016 at 10:11:17AM +0800, Peter Chen wrote: >>> On Mon, Jun 20, 2016 at 11:16:07AM -0500, Rob Herring wrote: >>> > On Mon, Jun 20, 2016 at 07:26:51PM +0800, Peter Chen wrote: >>>

Re: 转发: [PATCH] usb: serial: update CH34x driver in drivers/usb/serial

2016-06-24 Thread Greg KH
On Fri, Jun 24, 2016 at 01:42:24PM +0800, WCH Tech Group wrote: > There are several reasons why we decided to revoke the old one after > communicating with the author of > ch341.c (Frank A Kingswood ), first of all > we want the driver to support both ch341 and > ch340 chips, so we changed t

[patch] usb: gadget: f_fs: check for allocation failure

2016-06-24 Thread Dan Carpenter
Return -ENOMEM if kmalloc() fails. Fixes: 9353afbbfa7b ('usb: gadget: f_fs: buffer data from ‘oversized’ OUT requests') Signed-off-by: Dan Carpenter diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index a91fcb0..5c8429f 100644 --- a/drivers/usb/gadget/funct

Re: [v4.2-rc1 Regression] usb: Enable LPM for USB 2.01+ full-speed devices

2016-06-24 Thread Joseph Salisbury
On 06/22/2016 12:14 PM, Greg KH wrote: > On Wed, Jun 22, 2016 at 11:38:43AM -0400, Joseph Salisbury wrote: >> Hi Rupesh, >> >> A kernel bug report was opened against Ubuntu [0]. After a kernel >> bisect, it was found that reverting the following commit resolved this bug: >> >> commit a8425292816ce

Re: [PATCH] Validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands.

2016-06-24 Thread Jiri Kosina
On Thu, 23 Jun 2016, Scott Bauer wrote: > This patch validates the num_values parameter from userland during > the HIDIOCGUSAGES and HIDIOCSUSAGES commands. Previously, if the > report id was set to HID_REPORT_ID_UNKNOWN, we would fail to > validate the num_values parameter leading to a heap overf

[PATCH] USB: dwc2-usb: add USB_GADGET dependency

2016-06-24 Thread Arnd Bergmann
The driver selects NOP_USB_XCEIV, which can only be built-in if USB_GADGET is either disabled or also built-in, so with USB_DWC2_PCI=y and USB_GADGET=m, NOP_USB_XCEIV is also built-in and we get this link error: drivers/usb/built-in.o: In function `nop_set_peripheral': (text+0x1927c): undefined re