[PATCH v2 2/3] spi: add FTDI MPSSE SPI controller driver

2018-11-08 Thread Anatolij Gustschin
Add SPI bus controller driver for FTDI MPSSE mode. This driver is supposed to be used together with the FT232H interface driver for FPGA configuration in drivers/usb/misc/ft232h-intf.c which adds an mpsse spi platform device describing USB SPI bus with attached SPI slave devices. Signed-off-by: An

Re: [PATCH 1/3] usb: dwc3: Add reference clock properties

2018-11-08 Thread Thinh Nguyen
Hi Felipe, On 11/8/2018 11:14 PM, Felipe Balbi wrote: > Hi, > > Thinh Nguyen writes: >>> Thinh Nguyen writes: diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt index 636630fb92d7..712b344c3a31 100644

Re: USB Bluetooth dongle stop response with timeout error

2018-11-08 Thread Morikazu Fumita
Hello Oliver, Thank you for the reply again. On 8/11/2018 6:30 PM, Oliver Neukum wrote: > On Mi, 2018-11-07 at 13:20 +0800, Morikazu Fumita wrote: > > Hi, > >> Hello Oliver, >> >> I got rid of the network bridge but the timeout error still happens so I >> can rule out the bridge now. > > Good.

Re: [PATCH 4/4] usb: dwc3: gadget: check if dep->frame_number is still valid

2018-11-08 Thread Thinh Nguyen
Hi Felipe, On 11/8/2018 11:11 PM, Felipe Balbi wrote: > Hi, > > Thinh Nguyen writes: >> On 11/7/2018 10:58 PM, Felipe Balbi wrote: >>> Gadget driver may take an unbounded amount of time to queue requests >>> after XferNotReady. This is important for isochronous endpoints which >>> need to be star

Re: [PATCH 1/3] usb: dwc3: Add reference clock properties

2018-11-08 Thread Felipe Balbi
Hi, Thinh Nguyen writes: >> Thinh Nguyen writes: >>> diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt >>> b/Documentation/devicetree/bindings/usb/dwc3.txt >>> index 636630fb92d7..712b344c3a31 100644 >>> --- a/Documentation/devicetree/bindings/usb/dwc3.txt >>> +++

Re: [PATCH 4/4] usb: dwc3: gadget: check if dep->frame_number is still valid

2018-11-08 Thread Felipe Balbi
Hi, Thinh Nguyen writes: > On 11/7/2018 10:58 PM, Felipe Balbi wrote: >> Gadget driver may take an unbounded amount of time to queue requests >> after XferNotReady. This is important for isochronous endpoints which >> need to be started for a specific (micro-)frame. >> >> Before kicking the tran

Re: [PATCH] net: smsc95xx: Fix MTU range

2018-11-08 Thread David Miller
From: Stefan Wahren Date: Thu, 8 Nov 2018 20:38:26 +0100 > The commit f77f0aee4da4 ("net: use core MTU range checking in USB NIC > drivers") introduce a common MTU handling for usbnet. But it's missing > the necessary changes for smsc95xx. So set the MTU range accordingly. > > This patch has be

Re: [PATCH V2 2/6] usb: core: Add ability to skip phy exit on suspend and init on resume

2018-11-08 Thread Alan Cooper
On Wed, Nov 7, 2018 at 8:43 PM Chunfeng Yun wrote: > > hi, > On Tue, 2018-10-30 at 18:30 -0400, Alan Cooper wrote: > > On 10/17/18 9:46 PM, Chunfeng Yun wrote:> hi, > > > > > > On Wed, 2018-10-17 at 18:29 -0400, Al Cooper wrote: > > >> Add the ability to skip calling the PHY's exit routine on susp

Re: [PATCH 4/4] usb: dwc3: gadget: check if dep->frame_number is still valid

2018-11-08 Thread Thinh Nguyen
Hi Felipe, On 11/7/2018 10:58 PM, Felipe Balbi wrote: > Gadget driver may take an unbounded amount of time to queue requests > after XferNotReady. This is important for isochronous endpoints which > need to be started for a specific (micro-)frame. > > Before kicking the transfer, let's check how m

[PATCH v6 3/3] usb: dwc3: Add workaround for isoc start transfer failure

2018-11-08 Thread Thinh Nguyen
In DWC_usb31 version 1.70a-ea06 and prior, for highspeed and fullspeed isochronous IN, BIT[15:14] of the 16-bit microframe number reported by the XferNotReady event are invalid. The driver uses this number to schedule the isochronous transfer and passes it to the START TRANSFER command. Because thi

[PATCH v6 1/3] usb: dwc3: Track DWC_usb31 VERSIONTYPE

2018-11-08 Thread Thinh Nguyen
Add a new field to dwc3 structure to track VERSIONTYPE. The VERSIONTYPE is represented in ASCII in the 32-bit VERSIONTYPE register. In DWC_usb31, sub releases for each version are tracked with VERSIONTYPE such as "ea01" and "ea02". Signed-off-by: Thinh Nguyen --- drivers/usb/dwc3/core.c | 1 +

[PATCH v6 2/3] usb: dwc3: Add disabling of start_transfer failure quirk

2018-11-08 Thread Thinh Nguyen
DWC_usb31 peripheral v1.70a-ea06 and prior needs a SW workaround for isoc START TRANSFER command failure. However, some affected versions may have RTL patches to fix this without a SW workaround. Add this quirk to disable the SW workaround when it is not needed. Synopsys STAR 9001202023: Wrong mic

[PATCH v6 0/3] usb: dwc3: Workaround isoc start_transfer failure

2018-11-08 Thread Thinh Nguyen
DWC_usb31 peripheral v1.70a-ea06 and prior needs a SW workaround for isoc START TRANSFER command failure. This patch series implements that workaround Change in v6: - Defined more version types in "usb: dwc3: Track DWC_usb31 VERSIONTYPE" - Minor cleanup/fix in "usb: dwc3: Add workaround for isoc

Re: [PATCH 1/3] usb: dwc3: Add reference clock properties

2018-11-08 Thread Thinh Nguyen
Hi Felipe, On 11/7/2018 11:17 PM, Felipe Balbi wrote: > Hi, > > Thinh Nguyen writes: >> diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt >> b/Documentation/devicetree/bindings/usb/dwc3.txt >> index 636630fb92d7..712b344c3a31 100644 >> --- a/Documentation/devicetree/bin

Re: [PATCH v5 1/3] usb: dwc3: Track DWC_usb31 VERSIONTYPE

2018-11-08 Thread Thinh Nguyen
Hi Felipe, On 11/7/2018 11:10 PM, Felipe Balbi wrote: > Hi, > > Thinh Nguyen writes: >> Add a new field to dwc3 structure to track VERSIONTYPE. The VERSIONTYPE >> is represented in ASCII in the 32-bit VERSIONTYPE register. In >> DWC_usb31, sub releases for each version are tracked with VERSIONTYP

Re: [PATCH v2 2/2] usb: dwc3: gadget: Report isoc scheduled frame number

2018-11-08 Thread Thinh Nguyen
Hi, On 11/7/2018 11:08 PM, Felipe Balbi wrote: > Hi, > > Thinh Nguyen writes: >> Report the scheduled frame number of an isochronous request. >> >> Signed-off-by: Thinh Nguyen >> --- >> Change in v2: >> - Capture frame number at request cleanup >> >> drivers/usb/dwc3/gadget.c | 4 >> 1 fi

[PATCH] net: smsc95xx: Fix MTU range

2018-11-08 Thread Stefan Wahren
The commit f77f0aee4da4 ("net: use core MTU range checking in USB NIC drivers") introduce a common MTU handling for usbnet. But it's missing the necessary changes for smsc95xx. So set the MTU range accordingly. This patch has been tested on a Raspberry Pi 3. Fixes: f77f0aee4da4 ("net: use core MT

Re: [PATCH 1/2] usb: gadget: Add start_frame to usb_request

2018-11-08 Thread Thinh Nguyen
Hi, On 11/7/2018 11:03 PM, Felipe Balbi wrote: > Hi, > > Thinh Nguyen writes: >> Similar to URB's start_frame, add a field start_frame to the usb_request >> to report the scheduled (micro)frame number of an isochronous transfer. >> This option is useful for debugging purposes. >> >> Signed-off-by

Re: [PATCH] usb: dwc2: gadget: fix ISOC frame overflow handling

2018-11-08 Thread John Keeping
Hi Minas, On Mon, 5 Nov 2018 08:28:07 + Minas Harutyunyan wrote: > On 10/23/2018 5:43 PM, John Keeping wrote: > > By clearing the overrun flag as soon as the target frame is next > > incremented, we can end up incrementing the target frame more than > > expected in dwc2_gadget_handle_ep_disa

Re: [PATCH] [stable, netdev 4.4+] lan78xx: make sure RX_ADDRL & RX_ADDRH regs are always up to date

2018-11-08 Thread Sasha Levin
On Thu, Nov 08, 2018 at 12:01:27PM +0100, Paolo Pisati wrote: On Wed, Nov 07, 2018 at 07:17:51PM -0500, Sasha Levin wrote: So why not just take 760db29bdc completely? It looks safer than taking a partial backport, and will make applying future patches easier. I tried to do it and it doesn't loo

Re: Query on usb/core/devio.c

2018-11-08 Thread Alan Stern
On Thu, 8 Nov 2018, Mayuresh Kulkarni wrote: > On Wed, 24 Oct 2018 10:10:32 -0400 > Alan Stern wrote: > > > On Wed, 24 Oct 2018, Mayuresh Kulkarni wrote: > > > > > On Mon, 22 Oct 2018 10:24:46 -0400 > > > Alan Stern wrote: > > > > > > > On Mon, 22 Oct 2018, Oliver Neukum wrote: > > > > > > >

Re: [RFC PATCH v1 14/14] usb:cdns3: Feature for changing role

2018-11-08 Thread Roger Quadros
On 08/11/18 13:51, Pawel Laszczak wrote: >> On 03/11/18 19:51, Pawel Laszczak wrote: >>> Patch adds feature that allow to change role from user space. >>> >>> Signed-off-by: Pawel Laszczak >>> --- >>> drivers/usb/cdns3/Makefile | 2 +- >>> drivers/usb/cdns3/core.c| 2 + >>> drivers/usb/cdn

RE: [PATCH] usb: gadget: fix spelling mistakeis "[En]queing" -> "[En]queuing"

2018-11-08 Thread David Laight
From: Andrew Jeffery > Sent: 08 November 2018 01:55 > > - EPDBG(ep,"Enqueing request on wrong or disabled EP\n"); > > + EPDBG(ep, "Enqueuing request on wrong or disabled EP\n"); Shouldn't it be Enqueueing ? David - Registered Address Lakeside, Bramley Road, Mount Farm

Re: [PATCH 3/3] usb: dwc3: Support option to disable USB2 LPM

2018-11-08 Thread Felipe Balbi
Hi, Oliver Neukum writes: >> > > --- a/drivers/usb/dwc3/core.h >> > > +++ b/drivers/usb/dwc3/core.h >> > > @@ -971,6 +971,7 @@ struct dwc3_scratchpad_array { >> > > * @setup_packet_pending: true when there's a Setup Packet in FIFO. >> > > Workaround >> > > * @three_stage_setup: set if we pe

Re: Query on usb/core/devio.c

2018-11-08 Thread Mayuresh Kulkarni
On Wed, 24 Oct 2018 10:10:32 -0400 Alan Stern wrote: > On Wed, 24 Oct 2018, Mayuresh Kulkarni wrote: > > > On Mon, 22 Oct 2018 10:24:46 -0400 > > Alan Stern wrote: > > > > > On Mon, 22 Oct 2018, Oliver Neukum wrote: > > > > > > > On Do, 2018-10-18 at 13:42 -0400, Alan Stern wrote: > > > > > O

Re: [PATCH 0/5 v7] Keep rtsx_usb suspended when there's no card

2018-11-08 Thread Oleksandr Natalenko
This is based on Ulf's work [1] [2]. This patch series can keep rtsx_usb suspended, to save ~0.5W on Intel platforms and ~1.5W on AMD platforms. [1] https://patchwork.kernel.org/patch/10440583/ [2] https://patchwork.kernel.org/patch/10445725/ Tested-by: Oleksandr Natalenko -- Oleksandr Nat

RE: [RFC PATCH v1 13/14] usb:cdns3: Adds debugging function.

2018-11-08 Thread Pawel Laszczak
>Hi, > >On 03/11/18 19:51, Pawel Laszczak wrote: >> Patch implements some function used for debugging driver. >> >> Signed-off-by: Pawel Laszczak >> --- >> drivers/usb/cdns3/Makefile | 2 +- >> drivers/usb/cdns3/debug.c | 128 + >> drivers/usb/cdns3/ep0.c

RE: [RFC PATCH v1 14/14] usb:cdns3: Feature for changing role

2018-11-08 Thread Pawel Laszczak
>On 03/11/18 19:51, Pawel Laszczak wrote: >> Patch adds feature that allow to change role from user space. >> >> Signed-off-by: Pawel Laszczak >> --- >> drivers/usb/cdns3/Makefile | 2 +- >> drivers/usb/cdns3/core.c| 2 + >> drivers/usb/cdns3/debugfs.c | 94

RE: [RFC PATCH v1 03/14] usb:cdns3: Driver initialization code.

2018-11-08 Thread Pawel Laszczak
>On 03/11/18 19:51, Pawel Laszczak wrote: >> Patch adds core.c and core.h file that implements initialization >> of platform driver and adds function responsible for selecting, >> switching and running appropriate Device/Host mode. >> >> Patch also adds gadget.c, host.c, gadget-export.h, host-expor

RE: [RFC PATCH v1 04/14] usb:cdns3: Added DRD support

2018-11-08 Thread Pawel Laszczak
Hi Roger, >On 03/11/18 19:51, Pawel Laszczak wrote: >> Patch adds supports for detecting Host/Device mode. >> Controller has additional OTG register that allow >> implement even whole OTG functionality. >> At this moment patch adds support only for detecting >> the appropriate mode based on strap

Re: [PATCH] HID: Add quirk for Microsoft PIXART OEM mouse

2018-11-08 Thread Jiri Kosina
[ Benjamin CCed ] On Wed, 7 Nov 2018, Sebastian Parschauer wrote: > The PixArt OEM mice are known for disconnecting every minute in > runlevel 1 or 3 if they are not always polled. So add quirk > ALWAYS_POLL for this one as well. > > References: > https://www.spinics.net/lists/linux-usb/msg889

Re: [PATCH] [stable, netdev 4.4+] lan78xx: make sure RX_ADDRL & RX_ADDRH regs are always up to date

2018-11-08 Thread Paolo Pisati
On Wed, Nov 07, 2018 at 07:17:51PM -0500, Sasha Levin wrote: > So why not just take 760db29bdc completely? It looks safer than taking a > partial backport, and will make applying future patches easier. > > I tried to do it and it doesn't look like there are any dependencies > that would cause an i

Re: [PATCH 3/3] usb: dwc3: Support option to disable USB2 LPM

2018-11-08 Thread Oliver Neukum
On Do, 2018-11-08 at 12:47 +0200, Felipe Balbi wrote: Hi, > Oliver Neukum writes: > > On Mi, 2018-11-07 at 18:10 -0800, Thinh Nguyen wrote: > > > > > > --- a/drivers/usb/dwc3/core.h > > > +++ b/drivers/usb/dwc3/core.h > > > @@ -971,6 +971,7 @@ struct dwc3_scratchpad_array { > > > * @setup_pac

Re: [PATCH 3/3] usb: dwc3: Support option to disable USB2 LPM

2018-11-08 Thread Felipe Balbi
Hi, Felipe Balbi writes: >>> --- a/drivers/usb/dwc3/core.h >>> +++ b/drivers/usb/dwc3/core.h >>> @@ -971,6 +971,7 @@ struct dwc3_scratchpad_array { >>> * @setup_packet_pending: true when there's a Setup Packet in FIFO. >>> Workaround >>> * @three_stage_setup: set if we perform a three phase

Re: [PATCH 3/3] usb: dwc3: Support option to disable USB2 LPM

2018-11-08 Thread Felipe Balbi
Hi, Oliver Neukum writes: > On Mi, 2018-11-07 at 18:10 -0800, Thinh Nguyen wrote: >> >> --- a/drivers/usb/dwc3/core.h >> +++ b/drivers/usb/dwc3/core.h >> @@ -971,6 +971,7 @@ struct dwc3_scratchpad_array { >> * @setup_packet_pending: true when there's a Setup Packet in FIFO. >> Workaround >>

Re: USB Bluetooth dongle stop response with timeout error

2018-11-08 Thread Oliver Neukum
On Mi, 2018-11-07 at 13:20 +0800, Morikazu Fumita wrote: Hi, > Hello Oliver, > > I got rid of the network bridge but the timeout error still happens so I > can rule out the bridge now. Good. > I also got USB packet dump and found that the error is happening > regardless of HCI commands. > >

Re: Adding NovAtel USB vendor & device ID to Kernel

2018-11-08 Thread Oliver Neukum
On Do, 2018-11-08 at 01:07 +, SNELL James wrote: > Hello, > We produce extremely high-end GNSS (GPS, etc) receivers that are often used > for a very wide range of applications. Our receivers can be connected to via > USB, which will provide 3 USB-to-serial ports that can be used to issue > c

Re: [RFC PATCH v1 13/14] usb:cdns3: Adds debugging function.

2018-11-08 Thread Roger Quadros
Hi, On 03/11/18 19:51, Pawel Laszczak wrote: > Patch implements some function used for debugging driver. > > Signed-off-by: Pawel Laszczak > --- > drivers/usb/cdns3/Makefile | 2 +- > drivers/usb/cdns3/debug.c | 128 + > drivers/usb/cdns3/ep0.c| 3 +

Re: [PATCH 3/3] usb: dwc3: Support option to disable USB2 LPM

2018-11-08 Thread Oliver Neukum
On Mi, 2018-11-07 at 18:10 -0800, Thinh Nguyen wrote: > > --- a/drivers/usb/dwc3/core.h > +++ b/drivers/usb/dwc3/core.h > @@ -971,6 +971,7 @@ struct dwc3_scratchpad_array { > * @setup_packet_pending: true when there's a Setup Packet in FIFO. > Workaround > * @three_stage_setup: set if we perf