Re: [PATCH v2] Add support for usbfs zerocopy.

2016-01-25 Thread Steinar H. Gunderson
On Sun, Jan 24, 2016 at 01:12:08PM -0800, Greg Kroah-Hartman wrote: > Something is really wrong with your email client, it is saying this is > sent on Nov 26, the same exact time as your previous patch, yet you sent > this in January. Which implies that this is an old patch and not an > updated on

Re: [PATCH v5 03/10] usb: common: otg-fsm: add HNP polling support

2016-01-25 Thread Peter Chen
On Tue, Jan 19, 2016 at 01:45:31PM +0800, Li Jun wrote: > Adds HNP polling timer when transits to host state, the OTG status > request will be sent to peripheral after timeout, if host request flag > is set, it will switch to peripheral state, otherwise it will repeat HNP > polling every 1.5s and m

Re: [PATCH v5 08/10] usb: chipidea: otg: enable HNP polling support for gadget and host

2016-01-25 Thread Peter Chen
On Tue, Jan 19, 2016 at 01:45:36PM +0800, Li Jun wrote: > Enable HNP polling support for chipidea gadget and allocate memory > for host request flag when otg fsm init. > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/otg_fsm.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/d

Re: [PATCH v5 09/10] Documentation: usb: chipidea: Update test procedure for HNP polling

2016-01-25 Thread Peter Chen
On Tue, Jan 19, 2016 at 01:45:37PM +0800, Li Jun wrote: > Update HNP test procedure as HNP polling is supported. > > Signed-off-by: Li Jun > --- > Documentation/usb/chipidea.txt | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/Documentation/usb/chipidea.txt b/Do

[PATCH 0/3] xhci: get rid of platform data

2016-01-25 Thread Heikki Krogerus
We really need to favour build-in properties over platform data in general, but especially with individual flags like "usb3-lpm-capable". Heikki Krogerus (3): xhci: plat: adapt to unified device properties interface usb: dwc3: host: use build-in property instead of platform data xhci: get r

[PATCH 2/3] usb: dwc3: host: use build-in property instead of platform data

2016-01-25 Thread Heikki Krogerus
This should allow xhci to remove handling of platform data. Signed-off-by: Heikki Krogerus Cc: Felipe Balbi --- drivers/usb/dwc3/host.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index c679f63

[PATCH 1/3] xhci: plat: adapt to unified device properties interface

2016-01-25 Thread Heikki Krogerus
Requesting the only property that the driver needs using the unified device properties interface so it will be available for all types of platforms, not just the ones using DT. Signed-off-by: Heikki Krogerus --- drivers/usb/host/xhci-plat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

[PATCH 3/3] xhci: get rid of platform data

2016-01-25 Thread Heikki Krogerus
No more users for it. Signed-off-by: Heikki Krogerus --- drivers/usb/host/xhci-plat.c | 5 + include/linux/usb/xhci_pdriver.h | 27 --- 2 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 include/linux/usb/xhci_pdriver.h diff --git a/drivers/usb

[PATCH 1/3] usb: dwc3: pci: use PCI_VDEVICE macro

2016-01-25 Thread Heikki Krogerus
The ID table becomes a bit more uniform that way. Also sorting the IDs alphabetically. Signed-off-by: Heikki Krogerus --- drivers/usb/dwc3/dwc3-pci.c | 31 +++ 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dw

[PATCH 3/3] usb: dwc3: remove handling of platform data

2016-01-25 Thread Heikki Krogerus
No more users for it. Signed-off-by: Heikki Krogerus --- drivers/usb/dwc3/core.c | 35 -- drivers/usb/dwc3/platform_data.h | 53 2 files changed, 88 deletions(-) delete mode 100644 drivers/usb/dwc3/platform_data.h diff -

[PATCH 0/3] usb: dwc3: pci: cleanups

2016-01-25 Thread Heikki Krogerus
Hi, Now that we can use the build-in properties as fallback when the primary firmware (DT or ACPI) does not provide the requested property, it should be always safe to add them. I.e, by adding them to a device, nothing will be overwritten. Heikki Krogerus (3): usb: dwc3: pci: use PCI_VDEVICE m

[PATCH 2/3] usb: dwc3: pci: use build-in properties instead of platform data

2016-01-25 Thread Heikki Krogerus
This should allow the core driver to drop handling of platform data and expect the platform specific details to always come from properties. Signed-off-by: Heikki Krogerus Cc: Huang Rui CC: John Youn --- drivers/usb/dwc3/dwc3-pci.c | 81 +++-- 1 file cha

Re: [PATCH v2] usb: devio: Add ioctl to disallow detaching kernel USB drivers.

2016-01-25 Thread Bjørn Mork
Emilio López writes: >>> diff --git a/include/uapi/linux/usbdevice_fs.h >>> b/include/uapi/linux/usbdevice_fs.h >>> index 019ba1e..9abcb34 100644 >>> --- a/include/uapi/linux/usbdevice_fs.h >>> +++ b/include/uapi/linux/usbdevice_fs.h >>> @@ -154,6 +154,10 @@ struct usbdevfs_streams { >>> uns

Re: [PATCH 2/2] usb: no locking for reading descriptors in sysfs

2016-01-25 Thread Oliver Neukum
On Sun, 2016-01-24 at 13:22 -0800, Greg KH wrote: > On Thu, Jan 21, 2016 at 03:18:48PM +0100, Oliver Neukum wrote: > > Quting the relevant thread: > > > > > In fact, I suspect the locking added by the kernel 3.13 commit for > > > read_descriptors() is invalid because read_descriptors() performs no

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-25 Thread Arnd Bergmann
On Monday 25 January 2016 11:57:37 Peter Chen wrote: > >> > > >> > hub@3 { /* same external hub, highspeed mode */ > >> > compatible = "usb2109,0812.591", > >> > "usb2109,0812", > >> > "usb2109,class9

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-25 Thread Peter Chen
On Mon, Jan 25, 2016 at 09:50:53AM +0100, Arnd Bergmann wrote: > On Monday 25 January 2016 11:57:37 Peter Chen wrote: > > >> > > > >> > hub@3 { /* same external hub, highspeed mode */ > > >> > compatible = "usb2109,0812.591", > > >> >

Re: [PATCH] USB: cp210x: add ID for IAI USB to RS485 adaptor

2016-01-25 Thread Johan Hovold
On Fri, Jan 08, 2016 at 01:06:47PM +0100, Johan Hovold wrote: > On Fri, Jan 08, 2016 at 12:34:41PM +0100, Peter Dedecker wrote: > > Added the USB serial console device ID for IAI Corp. RCB-CV-USB > > USB to RS485 adaptor. > > > > Signed-off-by: Peter Dedecker > > --- > > drivers/usb/serial/c

Re: [PATCH] USB: visor: fix null-deref at probe

2016-01-25 Thread Johan Hovold
On Tue, Jan 12, 2016 at 12:05:20PM +0100, Johan Hovold wrote: > Fix null-pointer dereference at probe should a (malicious) Treo device > lack the expected endpoints. > > Specifically, the Treo port-setup hack was dereferencing the bulk-in and > interrupt-in urbs without first making sure they had

Re: [PATCH v3] usb: serial: visor: fix crash on detecting device without write_urbs

2016-01-25 Thread Johan Hovold
On Tue, Jan 12, 2016 at 03:10:50PM +0100, Vladis Dronov wrote: > The visor driver crashes in clie_5_attach() when a specially crafted USB > device without bulk-out endpoint is detected. This fix adds a check that > the device has proper configuration expected by the driver. > > Reported-by: Ralf S

Re: [PATCH 1/1] usb: serial: option: Adding support for Telit LE922

2016-01-25 Thread Johan Hovold
On Tue, Jan 12, 2016 at 05:22:06PM +0100, Daniele Palmas wrote: > This patch adds support for two PIDs of LE922. > > Signed-off-by: Daniele Palmas Now applied, thanks. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel

Re: [PATCH] USB: serial: ftdi_sio: add support for Yaesu SCU-18 cable

2016-01-25 Thread Johan Hovold
On Tue, Jan 19, 2016 at 11:43:13PM -0800, Greg Kroah-Hartman wrote: > From: Greg Kroah-Hartman > > Harald Linden reports that the ftdi_sio driver works properly for the > Yaesu SCU-18 cable if the device ids are added to the driver. So let's > add them. > > Reported-by: Harald Linden > Cc: sta

Re: [PATCH] USB: option: add support for SIM7100E

2016-01-25 Thread Johan Hovold
On Wed, Jan 20, 2016 at 03:05:56PM +0300, Andrey Skvortsov wrote: > $ lsusb: > Bus 001 Device 101: ID 1e0e:9001 Qualcomm / Option > > $ usb-devices: > T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=101 Spd=480 MxCh= 0 > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 2 > P: Vendor=1e0e

Re: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-25 Thread Oliver Neukum
On Sun, 2016-01-24 at 14:48 -0800, Greg KH wrote: > On Sun, Jan 24, 2016 at 11:05:05PM +0100, Oliver Neukum wrote: > > On Sat, 2016-01-23 at 08:39 -0800, Greg KH wrote: > > > Have your program install a udev rule to make it run automatically > > > when > > > the device is plugged in, and then just

Re: [PATCH] usb: option.c: Fix Cinterion AHxx enumeration.

2016-01-25 Thread Johan Hovold
[ Please avoid top-posting. ] On Thu, Jan 07, 2016 at 08:52:38AM +, John Ernberg wrote: > Hi Johan, > > Apologies for the late reply, I was out of office. > > Below is the 'lsusb -v' output for the AH3 modem. Thanks for the info. I believe your fix is the right one, but it seems you forgot

Re: [PATCH] usb: option.c: Fix Cinterion AHxx enumeration.

2016-01-25 Thread John Ernberg
On 01/25/2016 12:44 PM, Johan Hovold wrote: > [ Please avoid top-posting. ] > > On Thu, Jan 07, 2016 at 08:52:38AM +, John Ernberg wrote: >> Hi Johan, >> >> Apologies for the late reply, I was out of office. >> >> Below is the 'lsusb -v' output for the AH3 modem. > Thanks for the info. I beli

Re: [PATCH v2 6/9] xhci: Make sure xhci handles USB_SPEED_SUPER_PLUS devices.

2016-01-25 Thread Mathias Nyman
On 25.01.2016 06:16, Greg KH wrote: On Thu, Dec 10, 2015 at 09:59:30AM +0200, Mathias Nyman wrote: In most cases the devices with the speed set to USB_SPEED_SUPER_PLUS are handled like regular SuperSpeed devices. - if (udev->speed == USB_SPEED_SUPER) + if (udev->speed >= USB_SPEED

[PATCH] usb: musb: ux500: Fix NULL pointer dereference at system PM

2016-01-25 Thread Ulf Hansson
The commit 7d32cdef5356 ("usb: musb: fail with error when no DMA controller set"), caused the core platform driver to correctly return an error code when fail probing. Unfurtante it also caused bug for a NULL pointer dereference, during system suspend for the ux500 driver. The reason is a lacking

Re: [PATCH v2 1/4] USB: mxu11x0: fix memory leak on usb_serial private data

2016-01-25 Thread Johan Hovold
On Mon, Jan 04, 2016 at 07:49:36PM +0100, Mathieu OTHACEHE wrote: > On nominal execution, private data allocated on port_probe and attach > are never freed. Add port_remove and release callbacks to free them > respectively. > > Signed-off-by: Mathieu OTHACEHE I've applied this one for 4.5-rc2 no

[PATCH v2 0/1] usb: option.c: Fix Cinterion AHxx enumeration.

2016-01-25 Thread John Ernberg
From: John Ernberg Added signoff and made corrections to the commit message after review by Johan Hovold. This resolves a race condition that may occur with Cinterion AH3 modem modules if both the option and cdc_ether drivers are compiled as kernel modules. Note: Since I have no other AHxx mode

[PATCH v2 1/1] usb: option.c: Fix Cinterion AHxx enumeration.

2016-01-25 Thread John Ernberg
From: John Ernberg In certain kernel configurations where the cdc_ether and option drivers are compiled as modules there can occur a race condition in enumeration. This causes the option driver to enumerate the ethernet(wwan) interface as usb-serial interfaces. usb-devices output for the modem:

Re: [PATCH v2 1/1] usb: option.c: Fix Cinterion AHxx enumeration.

2016-01-25 Thread Johan Hovold
On Mon, Jan 25, 2016 at 12:27:17PM +, John Ernberg wrote: > From: John Ernberg > > In certain kernel configurations where the cdc_ether and option drivers > are compiled as modules there can occur a race condition in enumeration. > This causes the option driver to enumerate the ethernet(wwan)

[PATCH v3 0/9] usb core and xhci USB 3.1 features for usb-next

2016-01-25 Thread Mathias Nyman
Hi Greg These are the last 4 patches of the USB 3.1 support series asked to be resent because of the extra line and weird indentation of patch 6/9. The only change in v3 is removing the empty line and comment. full v2 series can be found here : http://marc.info/?l=linux-usb&m=144973426021853&w=2

[PATCH v3 7/9] xhci: set roothub speed to USB_SPEED_SUPER_PLUS for USB3.1 capable controllers

2016-01-25 Thread Mathias Nyman
Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 32d23e1..503d82f 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -4898,6 +4898,7 @@ int xhci_gen_setup(struct

[PATCH v3 6/9] xhci: Make sure xhci handles USB_SPEED_SUPER_PLUS devices.

2016-01-25 Thread Mathias Nyman
In most cases the devices with the speed set to USB_SPEED_SUPER_PLUS are handled like regular SuperSpeed devices. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 9 ++--- drivers/usb/host/xhci-ring.c | 3 ++- drivers/usb/host/xhci.c | 7 +-- 3 files changed, 13 inser

[PATCH v3 9/9] xhci: set slot context speed field to SuperSpeedPlus for USB 3.1 SSP devices

2016-01-25 Thread Mathias Nyman
The speed field of the input slot context should represent the speed the device is working at. Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 3 +++ drivers/usb/host/xhci.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xh

[PATCH v3 8/9] xhci: USB 3.1 add default Speed Attributes to SuperSpeedPlus device capability

2016-01-25 Thread Mathias Nyman
If a xhci controller does not provide a protocol speed ID (PSI) table, a default one should be used instead. Add the default values to the SuperSpeedPlus device capability. Overwrite the default ones if a PSI table exists. See xHCI 1.1 sectio 7.2.2.1.1 for more info Signed-off-by: Mathias Nyman -

Re: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-25 Thread Jiri Kosina
On Sat, 23 Jan 2016, Michal Malý wrote: > I briefly considered leaving the switch up to the userspace and handling the > device in the kernel only once it's been switched. I am however uncertain how > to advertise this to the users. Writing a tiny app that would currently > handle > just one d

[PATCH v2 1/2] usb:dwc3: Enable support for 64-bit system

2016-01-25 Thread Thang Q. Nguyen
Add 64-bit DMA operation support to the USB DWC3 driver. First attempt to set the coherent DMA mask for 64-bit DMA. If that failed, attempt again with 32-bit DMA. Signed-off-by: Thang Q. Nguyen --- Changes from v1: - Remove WARN_ON if dma_mask is NULL drivers/usb/dwc3/core.c | 15 ++

[PATCH v2 2/2] usb:dwc3: pass arch data to xhci-hcd child

2016-01-25 Thread Thang Q. Nguyen
The xhci-hcd child node needs to inherit archdata attribute to use dma_ops functions and attributes. This patch enables the USB DWC3 driver to pass archdata attributes to its xhci-hcd child node. Signed-off-by: Thang Q. Nguyen --- Changes from v1: - None drivers/usb/dwc3/host.c | 1 + 1

Re: [PATCH] usbhid: Fix incorrect product id of old 4nes4snes

2016-01-25 Thread Jiri Kosina
On Sat, 23 Jan 2016, Raphael Assenat wrote: > The correct product ID for the old version of the raphnet 4nes4snes > device was 0x0a9d, not 0x0a8d. Applied, thanks. -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to major

Re: [PATCH v2] usb: devio: Add ioctl to disallow detaching kernel USB drivers.

2016-01-25 Thread Alan Stern
On Mon, 25 Jan 2016, Bjørn Mork wrote: > I don't feel much like an expert here, but I can certainly make up an > opinion anyway :) > > Since 64bits kernels allow usb devio with interface numbers up to 63, I > guess you need __u64 to avoid limiting the range? Limiting will create > all sorts of f

[PATCH] usb: gadget: rndis: fix itnull.cocci warnings

2016-01-25 Thread Julia Lawall
The index variable of list_for_each_entry_safe is an offset from a list pointer, and thus should not be NULL. Generated by: scripts/coccinelle/iterators/itnull.cocci CC: Geliang Tang Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kerne

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-25 Thread Alan Stern
On Mon, 25 Jan 2016, Peter Chen wrote: > Alan, do you know which physical number is larger for > the same port, HS or SS port? Is it spec defined or vendor defined? > I haven't found related information at xHCI spec. I believe it is defined by the vendor. In fact, I think vendors are allowed to

Re: [PATCH v2] usb: devio: Add ioctl to disallow detaching kernel USB drivers.

2016-01-25 Thread Bjørn Mork
Alan Stern writes: > On Mon, 25 Jan 2016, Bjørn Mork wrote: > >> I don't feel much like an expert here, but I can certainly make up an >> opinion anyway :) >> >> Since 64bits kernels allow usb devio with interface numbers up to 63, I >> guess you need __u64 to avoid limiting the range? Limiting

Re: [PATCH v2] usb: devio: Add ioctl to disallow detaching kernel USB drivers.

2016-01-25 Thread Alan Stern
On Mon, 25 Jan 2016, Bjørn Mork wrote: > Alan Stern writes: > > On Mon, 25 Jan 2016, Bjørn Mork wrote: > > > >> I don't feel much like an expert here, but I can certainly make up an > >> opinion anyway :) > >> > >> Since 64bits kernels allow usb devio with interface numbers up to 63, I > >> gues

Re: [PATCH 1/3] usb: dwc3: pci: use PCI_VDEVICE macro

2016-01-25 Thread Felipe Balbi
Hi, Heikki Krogerus writes: > The ID table becomes a bit more uniform that way. Also > sorting the IDs alphabetically. > > Signed-off-by: Heikki Krogerus > --- > drivers/usb/dwc3/dwc3-pci.c | 31 +++ > 1 file changed, 11 insertions(+), 20 deletions(-) > > diff --git

Re: [PATCH 2/3] usb: dwc3: pci: use build-in properties instead of platform data

2016-01-25 Thread Felipe Balbi
Hi, Heikki Krogerus writes: > This should allow the core driver to drop handling of > platform data and expect the platform specific details to > always come from properties. > > Signed-off-by: Heikki Krogerus > Cc: Huang Rui > CC: John Youn > --- > drivers/usb/dwc3/dwc3-pci.c | 81 > ++

Re: [PATCH 3/3] usb: dwc3: remove handling of platform data

2016-01-25 Thread Felipe Balbi
hi, Heikki Krogerus writes: > No more users for it. > > Signed-off-by: Heikki Krogerus I very much like this :-) Let me just understand that device property_entry thing. -- balbi signature.asc Description: PGP signature

Re: [PATCH 2/3] usb: dwc3: host: use build-in property instead of platform data

2016-01-25 Thread Felipe Balbi
Heikki Krogerus writes: > This should allow xhci to remove handling of platform data. > > Signed-off-by: Heikki Krogerus > Cc: Felipe Balbi > --- > drivers/usb/dwc3/host.c | 25 +++-- > 1 file changed, 15 insertions(+), 10 deletions(-) > > diff --git a/drivers/usb/dwc3/host.

[PATCH RESEND 2/3] usb: core: rename mutex usb_bus_list_lock to usb_bus_idr_lock

2016-01-25 Thread Heiner Kallweit
Now that usb_bus_list has been removed and switched to idr rename the related mutex accordingly. Signed-off-by: Heiner Kallweit --- drivers/usb/core/devices.c | 6 +++--- drivers/usb/core/hcd.c | 30 +++--- drivers/usb/core/hub.c | 4 ++-- drivers/usb/mon/mon_ma

[PATCH RESEND 3/3] usb: r8a66597: add locking to r8a66597_check_detect_child

2016-01-25 Thread Heiner Kallweit
Use mutex usb_bus_idr_lock to protect idr_find. Signed-off-by: Heiner Kallweit --- drivers/usb/host/r8a66597-hcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 1ef8873..bfa7fa3 100644 --- a/drivers/usb/host/r8a66597

[PATCH RESEND 1/3] usb: core: switch bus numbering to using idr

2016-01-25 Thread Heiner Kallweit
USB bus numbering is based on directly dealing with bitmaps and defines a separate list of busses. This can be simplified and unified by using existing idr functionality. Signed-off-by: Heiner Kallweit --- drivers/usb/core/devices.c | 10 ++ drivers/usb/core/hcd.c | 21

Re: [PATCH 1/3] usb: core: switch bus numbering to using idr

2016-01-25 Thread Heiner Kallweit
Am 25.01.2016 um 06:02 schrieb Greg Kroah-Hartman: > On Tue, Dec 22, 2015 at 09:22:09PM +0100, Heiner Kallweit wrote: >> USB bus numbering is based on directly dealing with bitmaps and >> defines a separate list of busses. >> This can be simplified and unified by using existing idr functionality. >

Re: [PATCH v3 00/10] usb: host: ehci-sched: cleanup

2016-01-25 Thread Geyslan G. Bem
2016-01-25 0:30 GMT-03:00 Greg Kroah-Hartman : > On Thu, Dec 24, 2015 at 01:03:39PM -0300, Geyslan G. Bem wrote: >> 2015-12-13 13:59 GMT-03:00 Geyslan G. Bem : >> > >> > Cleanup done with the help of coccinelle, checkpatch and cppcheck tools. >> > >> > Geyslan G. Bem (10): >> > usb: host: ehci-sc

Re: [PATCH v3 00/10] usb: host: ehci-sched: cleanup

2016-01-25 Thread Greg Kroah-Hartman
On Mon, Jan 25, 2016 at 04:52:52PM -0300, Geyslan G. Bem wrote: > 2016-01-25 0:30 GMT-03:00 Greg Kroah-Hartman : > > On Thu, Dec 24, 2015 at 01:03:39PM -0300, Geyslan G. Bem wrote: > >> 2015-12-13 13:59 GMT-03:00 Geyslan G. Bem : > >> > > >> > Cleanup done with the help of coccinelle, checkpatch an

Re: [RFC PATCH] codingstyle: improve elisp for a better experience

2016-01-25 Thread Jonathan Corbet
On Thu, 21 Jan 2016 22:18:30 -0300 "Geyslan G. Bem" wrote: > This patch does use of more emacs functionalities which deliver to the > user indentation, commenting and white space highlighting. So perhaps it's just me, but that's an awful lot of elisp code for readers to wade through; many of tho

Re: Bug in split transactions on Raspberry Pi

2016-01-25 Thread Alan Stern
On Fri, 22 Jan 2016, Doug Anderson wrote: > > The corresponding line in the dwc2_host_hub_info() routine simply does: > > > > *hub_port = urb->dev->ttport; > > > > Unfortunately, even after I changed the dwc_otg routine the device > > still didn't work. My bus analyzer isn't on hand today

Re: [PATCH v3 00/10] usb: host: ehci-sched: cleanup

2016-01-25 Thread Alan Stern
On Mon, 25 Jan 2016, Geyslan G. Bem wrote: > Ok Greg, there was three patchset versions for this file that would > count over 40+ emails. This is v3. I didn't find any answer with ack > for it. > About sending, there's no problem, I'm here trying to help :-) but in > order to not increase the nois

Re: [PATCH v3 00/10] usb: host: ehci-sched: cleanup

2016-01-25 Thread Geyslan G. Bem
2016-01-25 16:56 GMT-03:00 Greg Kroah-Hartman : > On Mon, Jan 25, 2016 at 04:52:52PM -0300, Geyslan G. Bem wrote: >> 2016-01-25 0:30 GMT-03:00 Greg Kroah-Hartman : >> > On Thu, Dec 24, 2015 at 01:03:39PM -0300, Geyslan G. Bem wrote: >> >> 2015-12-13 13:59 GMT-03:00 Geyslan G. Bem : >> >> > >> >> >

Re: [PATCH v3 00/10] usb: host: ehci-sched: cleanup

2016-01-25 Thread Geyslan G. Bem
2016-01-25 17:08 GMT-03:00 Alan Stern : > On Mon, 25 Jan 2016, Geyslan G. Bem wrote: > >> Ok Greg, there was three patchset versions for this file that would >> count over 40+ emails. This is v3. I didn't find any answer with ack >> for it. >> About sending, there's no problem, I'm here trying to h

Re: [PATCH v3 00/10] usb: host: ehci-sched: cleanup

2016-01-25 Thread Alan Stern
On Mon, 25 Jan 2016, Geyslan G. Bem wrote: > 2016-01-25 17:08 GMT-03:00 Alan Stern : > > On Mon, 25 Jan 2016, Geyslan G. Bem wrote: > > > >> Ok Greg, there was three patchset versions for this file that would > >> count over 40+ emails. This is v3. I didn't find any answer with ack > >> for it. >

[PATCH 1/4 v2] USB: EHCI: store reason for unlinking a QH

2016-01-25 Thread Alan Stern
This patch replaces the "exception" bitflag in the ehci_qh structure with a more explicit "unlink_reason" bitmask. This is for use in the following patch, where we will need to have a good idea of the reason for unlinking a QH, not just "something exceptional happened". Signed-off-by: Alan Stern

[PATCH 2/4 v2] USB: EHCI: improve handling of the ehci->iaa_in_progress flag

2016-01-25 Thread Alan Stern
This patch improves the way ehci-hcd handles the iaa_in_progress flag. The current code is somewhat careless in this regard: The flag is meaningless when the root hub isn't running, most particularly after the root hub has been suspended. But in start_iaa_cycle(), the driv

[PATCH 3/4 v2] USB: EHCI: add a delay when unlinking an active QH

2016-01-25 Thread Alan Stern
Michael Reutman reports that an AMD/ATI EHCI host controller on one of his computers does not stop transferring data when an active bulk QH is unlinked from the async schedule. Apparently that host controller fails to implement the IAA mechanism correctly when an active QH is unlinked. This leads

Re: Bug in split transactions on Raspberry Pi

2016-01-25 Thread Doug Anderson
Hi, On Mon, Jan 25, 2016 at 12:05 PM, Alan Stern wrote: > On Fri, 22 Jan 2016, Doug Anderson wrote: > >> > The corresponding line in the dwc2_host_hub_info() routine simply does: >> > >> > *hub_port = urb->dev->ttport; >> > >> > Unfortunately, even after I changed the dwc_otg routine the

[PATCH 4/4 v2] USB: EHCI: improvements to unlink_empty_async_suspended()

2016-01-25 Thread Alan Stern
unlink_empty_async_suspended() is marked __maybe_unused. This is because its caller, ehci_bus_suspend(), is protected by "#ifdef CONFIG_PM". We should use the same protection here instead of __maybe_unused. unlink_empty_async_suspended() gets called only when the root hub is suspended. It's sil

Re: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-25 Thread Michal Malý
On Mon, 2016-01-25 at 15:17 +0100, Jiri Kosina wrote: > On Sat, 23 Jan 2016, Michal Malý wrote: > > > I briefly considered leaving the switch up to the userspace and > handling the  > > device in the kernel only once it's been switched. I am however > uncertain how  > > to advertise this to the us

Re: Bug in split transactions on Raspberry Pi

2016-01-25 Thread Alan Stern
On Mon, 25 Jan 2016, Doug Anderson wrote: > > Okay, I checked it. Oddly enough, even though the SPLIT packet's > > contents are now correct, the device still doesn't respond. > > > > Bizarrely, when I interpose a USB-1.1 hub between the RPi and the > > compound device, it _does_ work. I guess th

Re: Bug in split transactions on Raspberry Pi

2016-01-25 Thread Peter Stuge
Alan Stern wrote: > the device's embedded hub ACKs the packets from the PC and not the > packets from the RPi. > > What other differences could there be? Timing? Power levels? Yes, both good candidates. Can you measure VUSB? As for timing, the host controller will send SOF more or less regularl

Re: Bug in split transactions on Raspberry Pi

2016-01-25 Thread Doug Anderson
Alan, On Mon, Jan 25, 2016 at 1:04 PM, Alan Stern wrote: > On Mon, 25 Jan 2016, Doug Anderson wrote: > >> > Okay, I checked it. Oddly enough, even though the SPLIT packet's >> > contents are now correct, the device still doesn't respond. >> > >> > Bizarrely, when I interpose a USB-1.1 hub betwee

Re: Bug in split transactions on Raspberry Pi

2016-01-25 Thread Alan Stern
On Mon, 25 Jan 2016, Peter Stuge wrote: > Alan Stern wrote: > > the device's embedded hub ACKs the packets from the PC and not the > > packets from the RPi. > > > > What other differences could there be? Timing? Power levels? > > Yes, both good candidates. Can you measure VUSB? Distinctly hig

audio class 2 device hangs lsusb on 4.5-rc1

2016-01-25 Thread Sam Shepperd
When plugging an external sound card (usb audio class 2) into USB3 ports on my ASUSTeK P9X79 motherboard, lsusb hangs and the usb device does not work. If I plug the sound card into a USB2 port, lsusb does not hang but the device is not detected. There are 0 new messages printed in dmesg when the

Re: Bug in split transactions on Raspberry Pi

2016-01-25 Thread Doug Anderson
Hi, On Mon, Jan 25, 2016 at 1:51 PM, Alan Stern wrote: > On Mon, 25 Jan 2016, Peter Stuge wrote: > >> Alan Stern wrote: >> > the device's embedded hub ACKs the packets from the PC and not the >> > packets from the RPi. >> > >> > What other differences could there be? Timing? Power levels? >> >>

Re: Bug in split transactions on Raspberry Pi

2016-01-25 Thread Stefan Wahren
> Doug Anderson hat am 25. Januar 2016 um 21:44 > geschrieben: > > > Hi, > > On Mon, Jan 25, 2016 at 12:05 PM, Alan Stern > wrote: > > On Fri, 22 Jan 2016, Doug Anderson wrote: > > > >> > Can you tell me how to configure a mainline kernel to work on the > >> > Raspberry Pi? There is no arch/arm/

Re: [PATCH v3 00/10] usb: host: ehci-sched: cleanup

2016-01-25 Thread Geyslan G. Bem
2016-01-25 17:40 GMT-03:00 Alan Stern : > On Mon, 25 Jan 2016, Geyslan G. Bem wrote: > >> 2016-01-25 17:08 GMT-03:00 Alan Stern : >> > On Mon, 25 Jan 2016, Geyslan G. Bem wrote: >> > >> >> Ok Greg, there was three patchset versions for this file that would >> >> count over 40+ emails. This is v3. I

Re: [RFC PATCH] codingstyle: improve elisp for a better experience

2016-01-25 Thread Geyslan G. Bem
2016-01-25 17:01 GMT-03:00 Jonathan Corbet : > On Thu, 21 Jan 2016 22:18:30 -0300 > "Geyslan G. Bem" wrote: > >> This patch does use of more emacs functionalities which deliver to the >> user indentation, commenting and white space highlighting. > > So perhaps it's just me, but that's an awful lot

[PATCH 00/36] usb: host: ehci: cleanup and refactoring

2016-01-25 Thread Geyslan G. Bem
This patchset is the compendium of three series and an isolated patch. [PATCH resend 0/9] usb: host: ehci.h cleanup [PATCH v3 00/16] usb: host: ehci-dbg: cleanup and refactoring [PATCH] usb: ehci: remove old stub_debug_files definition [PATCH v3 00/10] usb: host: ehci-sched: cleanup ehci.h: Thi

[PATCH 01/36] usb: host: ehci.h: remove space before comma

2016-01-25 Thread Geyslan G. Bem
Get rid of spaces before comma. Caught by checkpatch: "ERROR: space prohibited before that ','" Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index ec61aed..

[PATCH 04/36] usb: host: ehci.h: fix single statement macros

2016-01-25 Thread Geyslan G. Bem
Don't use the 'do {} while (0)' wrapper in a single statement macro. Caught by checkpatch: "WARNING: Single statement macros should not use a do {} while (0) loop" Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH 03/36] usb: host: ehci.h: remove space before open square bracket

2016-01-25 Thread Geyslan G. Bem
Get rid of space before open square bracket. Caught by checkpatch: "ERROR: space prohibited before open square bracket '['" Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/ehc

[PATCH 02/36] usb: host: ehci.h: remove space before function open parenthesis

2016-01-25 Thread Geyslan G. Bem
Get rid of space between function name and open parenthesis. Caught by checkpatch: "WARNING: space prohibited between function name and open parenthesis '('" Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-)

[PATCH 06/36] usb: host: ehci.h: use space after comma

2016-01-25 Thread Geyslan G. Bem
Put space after comma. This patch also changes QH_NEXT macro for better reading. Caught by checkpatch: "ERROR: space required after that ','" Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci

[PATCH 23/36] usb: host: ehci-dbg: enclose conditional blocks with braces

2016-01-25 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to conditional blocks without braces. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/e

[PATCH 08/36] usb: host: ehci.h: move pointer operator to name side

2016-01-25 Thread Geyslan G. Bem
The pointer operator must be sticked to name. Caught by checkpatch: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index cccbe

[PATCH 12/36] usb: host: ehci-dbg: use C89-style comments

2016-01-25 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch. Coding style demands usage of C89-style comments and a specific format when it's multiline. This also removes the Free Software Foundation address because FSF can change it again. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/eh

[PATCH 19/36] usb: host: ehci-dbg: convert macro to inline function

2016-01-25 Thread Geyslan G. Bem
This patch converts macros into inline functions since the usage of second is encouraged by Coding Style instead of the first. Macros converted to functions: - dbg_status - dbg_cmd - dbg_port - speed_char The size after changes remains the same. Before: text data bss dec hex filename 369

[PATCH 14/36] usb: host: ehci-dbg: fix up closing parenthesis

2016-01-25 Thread Geyslan G. Bem
This patch puts the closing parenthesis at the statement end removing unnecessary "new line". Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c i

[PATCH 10/36] usb: host: ehci-dbg: remove space before open parenthesis

2016-01-25 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch. The vast majority of changes in this patch are removing spaces before opening parenthesis, but in some cases, a few additional changes are made to fix other coding style issues. These additional changes are: - Spaces around >> on line

[PATCH 22/36] usb: host: ehci-dbg: replace sizeof operand

2016-01-25 Thread Geyslan G. Bem
This patch fixes a coding style issue reported by checkpatch concerning to usage of sizeof operand as a variable instead the type. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-dbg.c b/drive

[PATCH 05/36] usb: host: ehci.h: remove direct use of __attribute__ keyword

2016-01-25 Thread Geyslan G. Bem
Prefer to use __aligned(size) macro instead of __attribute__((aligned(size))). Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 6

[PATCH 07/36] usb: host: ehci.h: remove macros trailing semicolon

2016-01-25 Thread Geyslan G. Bem
Removes trailing semicolon from macros. Caught by checkpatch: "WARNING: macros should not use a trailing semicolon" Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h

[PATCH 13/36] usb: host: ehci-dbg: move trailing statements to next line

2016-01-25 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to switch case statements. There are few additional changes made to fix other coding styles issues. These additional changes are: - The compound statement "({...})" on line 474 is pulled out from snprintf parameters. - O

[PATCH 15/36] usb: host: ehci-dbg: put spaces around operators

2016-01-25 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to missing spaces around operators. There is an additional change on line 49 that removes unnecessary parentheses around ternary operands. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 16

[PATCH 11/36] usb: host: ehci-dbg: remove space before open square bracket

2016-01-25 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch. The only change in this patch that isn't just removing spaces before opening square brackets is at line 213 where the initialization of fls_strings[] is placed in same line. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c

[PATCH 09/36] usb: host: ehci.h: move constant to right

2016-01-25 Thread Geyslan G. Bem
This patch moves the constant 0x3ff to right and put spaces in the right shift. Caught by coccinelle: scripts/coccinelle/misc/compare_const_fl.cocci Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehc

[PATCH 18/36] usb: host: ehci-dbg: use a blank line after struct declarations

2016-01-25 Thread Geyslan G. Bem
This patch fixes coding style issues reported by checkpatch concerning to missing line after struct declarations. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 4

[PATCH 26/36] usb: ehci: remove old stub_debug_files definition

2016-01-25 Thread Geyslan G. Bem
This patch removes the local STUB_DEBUG_FILES debugging definition. STUB_DEBUG_FILES was used only in ehci-hcd, whereas CONFIG_DYNAMIC_DEBUG is used all over the kernel. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-dbg.c | 4 ++-- drivers/usb/host/ehci.h | 5 - 2 files changed

[PATCH 35/36] usb: host: ehci-sched: use sizeof operator with parens

2016-01-25 Thread Geyslan G. Bem
This patch adds parens to sizeof operator uses. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sch

[PATCH 32/36] usb: host: ehci-sched: remove useless else branch

2016-01-25 Thread Geyslan G. Bem
This patch removes an useless else branch after a break, reducing one indent block. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-sc

[PATCH 36/36] usb: host: ehci-sched: remove unnecessary braces

2016-01-25 Thread Geyslan G. Bem
This patch removes unnecessary braces in single statement blocks at the same time as replaces the if statement with a ternary conditional. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 6 +- 1 file changed, 1 insertion(+)

  1   2   >