gadgetfs regression: module refcount bug since 3.10

2014-08-31 Thread S. Lockwood-Childs
gadgetfs has had a module refcount bug in all recent kernels, from v3.10 up through present. I realize that gadgetfs is deprecated in favor of functionfs nowadays, but probably you will want to fix it anyways since gadgetfs is still in the tree. The refcount bug can be reproduced with the followin

Re: [PATCH net-next v2] r8152: reduce the number of Tx

2014-08-31 Thread David Miller
From: Hayes Wang Date: Mon, 1 Sep 2014 02:46:38 + > From: David Miller [mailto:da...@davemloft.net] > [...] >> This driver has a loop that iterates MAX_TX times to initialize both >> the RX and TX buffers. >> >> So if they are not equal, it can't possibly work. > > Excuse me. I don't find

RE: [PATCH net-next v2] r8152: reduce the number of Tx

2014-08-31 Thread Hayes Wang
From: David Miller [mailto:da...@davemloft.net] [...] > This driver has a loop that iterates MAX_TX times to initialize both > the RX and TX buffers. > > So if they are not equal, it can't possibly work. Excuse me. I don't find that the "RTL8152_MAX_TX" is used by rx buffer. The rx buffer only

Re: [RFC 1/2] USB: OTG: Hold wakeupsource when VBUS present

2014-08-31 Thread Peter Chen
On Fri, Aug 22, 2014 at 03:19:32PM +0530, Kiran Kumar Raparthy wrote: > From: Todd Poynor > > USB: OTG: Hold wakeupsource when VBUS present > It is not related to OTG, would you change a name? > Enabled by default, can disable with: >echo N > /sys/module/otg_wakeupsource/parameters/enabled

Re: [PATCH v3 8/9] usb: chipidea: move usb_otg into struct ci_hdrc

2014-08-31 Thread Peter Chen
On Fri, Aug 29, 2014 at 04:25:35PM +0200, Antoine Tenart wrote: > Hi, > > On Tue, Aug 26, 2014 at 06:22:40PM +0800, Peter Chen wrote: > > On Fri, Aug 22, 2014 at 05:50:19PM +0200, Antoine Ténart wrote: > > > > If the common usb_otg and usb_phy struct still has another's pointer, you > > may not n

[PATCH v2 1/1] USB: Add device quirk for ASUS T100 Base Station keyboard

2014-08-31 Thread Lu Baolu
This full-speed USB device generates spurious remote wakeup event as soon as USB_DEVICE_REMOTE_WAKEUP feature is set. As the result, Linux can't enter system suspend and S0ix power saving modes once this keyboard is used. This patch tries to introduce USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk. With thi

Re: [RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-31 Thread Peter Chen
On Fri, Aug 29, 2014 at 04:20:20PM -0500, Felipe Balbi wrote: > On Fri, Aug 29, 2014 at 05:08:13PM -0400, Alan Stern wrote: > > On Fri, 29 Aug 2014, Felipe Balbi wrote: > > > > > > First, change the API so that the disconnect API _does_ call > > > > usb_gadget_disconnect. > > > > > > that's not

Re: [RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

2014-08-31 Thread Peter Chen
On Fri, Aug 29, 2014 at 11:14:23AM -0400, Alan Stern wrote: > On Fri, 29 Aug 2014, Peter Chen wrote: > > > Felipe & Alan, thanks for your comments for these patches, I think I may > > need > > to list these issues again to make things clearer. > > > > The purpose of these patchsets are to fix tw

Re: [PATCH v2 6/9] usb: xhci: Add NVIDIA Tegra xHCI host-controller driver

2014-08-31 Thread Andrew Bresticker
On Sat, Aug 30, 2014 at 2:15 PM, Greg Kroah-Hartman wrote: > On Mon, Aug 18, 2014 at 10:08:22AM -0700, Andrew Bresticker wrote: >> Add support for the on-chip xHCI host controller present on Tegra SoCs. >> >> The driver is currently very basic: it loads the controller with its >> firmware, starts

[PATCH v5 3/4] usb: gadget: pxa27x_udc: use devm_* helpers

2014-08-31 Thread Robert Jarzmik
Use devm_* helpers in the probe function to simplify the error path and the remove path. Signed-off-by: Robert Jarzmik Cc: Sergei Shtylyov --- Since V1: Addressed Sergei's comments Since V2: Addressed Sergei's comments on includes Since V4: Addressed Sergei's comment on clk_uprepare in probe()

[PATCH v5 2/4] usb: gadget: pxa27x_udc device-tree documentation

2014-08-31 Thread Robert Jarzmik
Add documentation for device-tree binding of arm PXA 27x udc (usb device) driver. Signed-off-by: Robert Jarzmik Cc: devicet...@vger.kernel.org --- Since V1: change OF id mrvl,pxa27x_udc -> marvell,pxa27x-udc This is a consequence of other DT reviews on the marvell namings. Si

[PATCH v5 4/4] usb: gadget: pxa27x_udc: fix clock prepare and enable

2014-08-31 Thread Robert Jarzmik
As the udc clock controls both the output signals and the internal IP, it must be enabled before any UDC register is touched. The bug is revealed when the clock framework disables the clock for a couple of milliseconds during the boot sequence, and the endpoint configuration is lost. The bug is hi

[PATCH v5 1/4] usb: gadget: pxa27x_udc: add devicetree support

2014-08-31 Thread Robert Jarzmik
Add support for device-tree device discovery. If devicetree is not provided, fallback to legacy platform data "discovery". Signed-off-by: Robert Jarzmik Cc: devicet...@vger.kernel.org --- Since V1: change OF id mrvl,pxa27x_udc -> marvell,pxa27x-udc This is a consequence of other DT rev

Re: [Bug 83551] Kernel OOPses on access to address 0x8 when cdc-acm device is inserted with invalid descriptor.

2014-08-31 Thread Greg KH
On Sun, Aug 31, 2014 at 06:58:34PM +0200, Simon Schubert wrote: > On 08/31/2014 06:44 PM, Greg KH wrote: > > On Sun, Aug 31, 2014 at 05:57:51PM +0200, Simon Schubert wrote: > >> On 08/31/2014 05:54 PM, bugzilla-dae...@bugzilla.kernel.org wrote: > >>> https://bugzilla.kernel.org/show_bug.cgi?id=8355

Re: [Bug 83551] Kernel OOPses on access to address 0x8 when cdc-acm device is inserted with invalid descriptor.

2014-08-31 Thread Simon Schubert
On 08/31/2014 06:44 PM, Greg KH wrote: > On Sun, Aug 31, 2014 at 05:57:51PM +0200, Simon Schubert wrote: >> On 08/31/2014 05:54 PM, bugzilla-dae...@bugzilla.kernel.org wrote: >>> https://bugzilla.kernel.org/show_bug.cgi?id=83551 >>> >>> --- Comment #1 from Greg Kroah-Hartman --- >>> On Sun, Aug 31

Re: [Bug 83551] Kernel OOPses on access to address 0x8 when cdc-acm device is inserted with invalid descriptor.

2014-08-31 Thread Greg KH
On Sun, Aug 31, 2014 at 05:57:51PM +0200, Simon Schubert wrote: > On 08/31/2014 05:54 PM, bugzilla-dae...@bugzilla.kernel.org wrote: > > https://bugzilla.kernel.org/show_bug.cgi?id=83551 > > > > --- Comment #1 from Greg Kroah-Hartman --- > > On Sun, Aug 31, 2014 at 10:15:37AM +, > > bugzilla-

Re: [Bug 83551] Kernel OOPses on access to address 0x8 when cdc-acm device is inserted with invalid descriptor.

2014-08-31 Thread Simon Schubert
On 08/31/2014 05:54 PM, bugzilla-dae...@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=83551 > > --- Comment #1 from Greg Kroah-Hartman --- > On Sun, Aug 31, 2014 at 10:15:37AM +, bugzilla-dae...@bugzilla.kernel.org > wrote: >> https://bugzilla.kernel.org/show_bug.cgi

[PATCH v8] usb:serial:pl2303: add GPIOs interface on PL2303

2014-08-31 Thread Wang YanQing
PL2303 USB Serial devices may has GPIOs, this patch add basic PL2303 gpio support. Known issue: If gpios are in use(export to userspace through sysfs interface, etc), then call pl2303_release(unplug usb-serial convertor, modprobe -r, etc), will cause trouble, so we need to make sure there is no gp

Re: Bind usb device to another class driver

2014-08-31 Thread Alan Stern
On Sun, 31 Aug 2014, vichy wrote: > >> My questions: > >> 1. is there anything I need to do, such as PCI driver, before bind to > >> usb-storage driver? > > > > Normally, if uas will bind to a device then usb-storage won't. You can > > change this by using a module paramter for usb-storage: > > >

Re: Problem with USB-to-SATA adapters (was: AS2105-based enclosure size issues with >2TB HDDs)

2014-08-31 Thread Alan Stern
On Sat, 30 Aug 2014, Douglas Gilbert wrote: > On 14-08-30 05:15 PM, Alan Stern wrote: > > On Fri, 29 Aug 2014, Matthew Dharm wrote: > > > >> Is there an 'easy' way to override the detected size of a storage > >> device from userspace? If we had that, someone could write a helper > >> application

Re: Bind usb device to another class driver

2014-08-31 Thread vichy
hi Greg: 2014-08-30 2:31 GMT+08:00 Greg KH : > On Fri, Aug 29, 2014 at 11:18:39AM +0800, vichy wrote: >> hi all: >> I have read the article below and try to do the same operation on my device. >> http://lwn.net/Articles/143397/ >> >> My environment: >> 1. my kernel is 3.16 >> 2. device descriptor

Re: Bind usb device to another class driver

2014-08-31 Thread vichy
hi alan: 2014-08-29 22:54 GMT+08:00 Alan Stern : > On Fri, 29 Aug 2014, vichy wrote: > >> hi all: >> I have read the article below and try to do the same operation on my device. >> http://lwn.net/Articles/143397/ >> >> My environment: >> 1. my kernel is 3.16 >> 2. device descriptor is attached. >>

[no subject]

2014-08-31 Thread Thomas Schäfer
auth 9af38645 subscribe linux-usb tschae...@t-online.de -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html