RESEND: About VBUS glitch happen on DWC3 host mode enabling process.

2018-11-21 Thread Ran Wang
Resend this mail in plain text. Hello Felipe,  We’ve found on some Layerscape platforms which integrating DWC3 USB3.0 DRD controller, VBUS glitch happened and caused some USB drives enumeration fail, like to discuss the details as below.    Story is that, we found once function dwc3_core_init_mo

Re: [PATCH] usb: dwc2: Revert "usb: dwc2: Disable all EP's on disconnect"

2018-11-21 Thread Minas Harutyunyan
Hi Marek, On 11/21/2018 7:45 PM, Marek Szyprowski wrote: > This reverts commit dccf1bad4be7eaa096c1f3697bd37883f9a08ecb. > > The reverted commit breaks locking in the DWC2 driver. It causes random > crashes or memory corruption related issues on SMP machines. Here is an > example of the observed

[PATCH v2] xhci: workaround CSS timeout on AMD SNPS 3.0 xHC

2018-11-21 Thread Singh, Sandeep
From: Sandeep Singh Occasionally AMD SNPS 3.0 xHC does not respond to CSS when set, also it does not flag anything on SRE and HCE to point the internal xHC errors on USBSTS register. This stalls the entire system wide suspend and there is no point in stalling just because of xHC CSS is not respon

[PATCH v3 2/5] usb: assign ACPI companions for embedded USB devices

2018-11-21 Thread Rajat Jain
From: Dmitry Torokhov USB devices permanently connected to USB ports may be described in ACPI tables and share ACPI devices with ports they are connected to. See [1] for details. This will allow us to describe sideband resources for devices, such as, for example, hard reset line for BT USB contr

[PATCH v3 5/5] Bluetooth: btusb: Use the hw_reset method to allow resetting the BT chip

2018-11-21 Thread Rajat Jain
If the platform provides it, use the reset gpio to reset the BT chip (requested by the HCI core if needed). This has been found helpful on some of Intel bluetooth controllers where the firmware gets stuck and the only way out is a hard reset pin provided by the platform. Signed-off-by: Rajat Jain

[PATCH v3 4/5] Bluetooth: btusb: Collect the common Intel assignments together

2018-11-21 Thread Rajat Jain
The BTUSB_INTEL and BTUSB_INTEL_NEW have common functions & quirks are assigned to hdev structure. Lets collect them together instead of repeating them in different code branches. Signed-off-by: Rajat Jain --- v3: same as v1 v2: same as v1 drivers/bluetooth/btusb.c | 27

[PATCH v3 1/5] usb: split code locating ACPI companion into port and device

2018-11-21 Thread Rajat Jain
From: Dmitry Torokhov In preparation for handling embedded USB devices let's split usb_acpi_find_companion() into usb_acpi_find_companion_for_device() and usb_acpi_find_companion_for_port(). Signed-off-by: Dmitry Torokhov Signed-off-by: Rajat Jain --- v3: same as v1 v2: same as v1 drivers/us

[PATCH v3 3/5] Bluetooth: Reset Bluetooth chip after multiple command timeouts

2018-11-21 Thread Rajat Jain
Add a quirk and a hook to allow the HCI core to reset the BT chip if needed (after a number of timed out commands). Use that new hook to initiate BT chip reset if the controller fails to respond to certain number of commands (currently 5) including the HCI reset commands. This is done based on a ne

[PATCH] usb: misc: fix boolconv.cocci warnings

2018-11-21 Thread Julia Lawall
From: kbuild test robot drivers/usb/misc/ft232h-intf.c:816:27-32: WARNING: conversion to bool not needed here Remove unneeded conversion to bool Semantic patch information: Relational and logical operators evaluate to bool, explicit conversion is overly verbose and unneeded. Generated by:

Re: [PATCH v2] usb: dwc2: host: use hrtimer for NAK retries

2018-11-21 Thread Doug Anderson
Felipe, On Tue, Nov 20, 2018 at 11:16 PM Minas Harutyunyan wrote: > > On 11/14/2018 3:30 AM, Doug Anderson wrote: > > Hi, > > > > On Sun, Sep 9, 2018 at 9:24 PM Terin Stock wrote: > >> > >> Modify the wait delay utilize the high resolution timer API to allow for > >> more precisely scheduled cal

Re: Support Mac address pass through on Dell DS1000 dock

2018-11-21 Thread Frédéric Parrenin
Le 21/11/2018 à 17:03, mario.limoncie...@dell.com a écrit : Sent from Workspace ONE Boxer On Nov 21, 2018 09:51, Frédéric Parrenin wrote: > > > [EXTERNAL EMAIL] > > > Le 21/11/2018 à 15:19, Frédéric Parrenin a écrit : > > > > Le 21/11/2018 à 15:01, mario.limoncie...@dell.com a écrit : > >>

Re: Support Mac address pass through on Dell DS1000 dock

2018-11-21 Thread Frédéric Parrenin
Le 21/11/2018 à 15:19, Frédéric Parrenin a écrit : Le 21/11/2018 à 15:01, mario.limoncie...@dell.com a écrit : On Nov 21, 2018 02:09, Greg KH wrote: > > > [EXTERNAL EMAIL] > > On Tue, Nov 20, 2018 at 09:10:22PM +0100, Bjørn Mork wrote: > > Greg KH writes: > > > > > I do not see any USB netw

[PATCH] usb: dwc2: Revert "usb: dwc2: Disable all EP's on disconnect"

2018-11-21 Thread Marek Szyprowski
This reverts commit dccf1bad4be7eaa096c1f3697bd37883f9a08ecb. The reverted commit breaks locking in the DWC2 driver. It causes random crashes or memory corruption related issues on SMP machines. Here is an example of the observed reproducible issue (other are a bit more random): =

Re: pl2303 regression after v4.17. Bisected to 7041d9c3f01b

2018-11-21 Thread Florian Zumbiehl
Hi, > >Could you try what happens when you manually disable ixon on the port once > >it's stuck? > > > Is this the right way to do it? > > # stty -ixon -F /dev/ttyUSB0 > > If yes it doesn't change behavior. Neither ixon or [-]ixoff. Seems about right--and I just checked, that immediately resume

Re: Support Mac address pass through on Dell DS1000 dock

2018-11-21 Thread Frédéric Parrenin
Le 21/11/2018 à 15:01, mario.limoncie...@dell.com a écrit : On Nov 21, 2018 02:09, Greg KH wrote: > > > [EXTERNAL EMAIL] > > On Tue, Nov 20, 2018 at 09:10:22PM +0100, Bjørn Mork wrote: > > Greg KH writes: > > > > > I do not see any USB networking device here at all. > > > > No, It wasn't easy

Re: pl2303 regression after v4.17. Bisected to 7041d9c3f01b

2018-11-21 Thread Jarkko Nikula
Hi On 11/21/18 2:06 PM, Florian Zumbiehl wrote: Could you try what happens when you manually disable ixon on the port once it's stuck? Is this the right way to do it? # stty -ixon -F /dev/ttyUSB0 If yes it doesn't change behavior. Neither ixon or [-]ixoff. Does the IXON behavior differ fro

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

2018-11-21 Thread Mark Brown
On Tue, Nov 20, 2018 at 01:28:20AM +0100, Anatolij Gustschin wrote: > --- a/drivers/spi/Makefile > +++ b/drivers/spi/Makefile > @@ -113,6 +113,7 @@ obj-$(CONFIG_SPI_XILINX) += spi-xilinx.o > obj-$(CONFIG_SPI_XLP)+= spi-xlp.o > obj-$(CONFIG_SPI_XTENSA_XTFPGA)

Re: pl2303 regression after v4.17. Bisected to 7041d9c3f01b

2018-11-21 Thread Florian Zumbiehl
Hi, > >And what if you disable the getty? Does the port work then? > > > systemctl disable serial-getty@ttyUSB0.service followed by reboot > and I can see everything what systemd is outputting there as well as > what is dumped to /dev/kmsg so it looks getty started by systemd > changes or triggers

[PATCH v3 net-next 12/21] net: usb: aqc111: Add support for enable/disable checksum offload

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 45 +++- drivers/net/usb/aqc111.h | 1 + 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/u

[PATCH v3 net-next 17/21] net: usb: aqc111: Initialize ethtool_ops structure

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Implement get_drvinfo, set/get_msglevel, get_link callbacks Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/u

[PATCH v3 net-next 20/21] net: usb: aqc111: Add ASIX's HW ids

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov It enables driver for ASIX products which are also based on aqc111/112U chips. Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 40 1 file changed, 40 insertions(+) diff --git a/drivers/n

[PATCH v3 net-next 15/21] net: usb: aqc111: Add support for VLAN_CTAG_TX/RX offload

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 17 + drivers/net/usb/aqc111.h | 12 +++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c

[PATCH v3 net-next 05/21] net: usb: aqc111: Introduce PHY access

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Add helpers to write 32bit values. Implement PHY power up/down sequences. AQC111, PHY is being controlled via vendor command interface. Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 65

[PATCH v3 net-next 10/21] net: usb: aqc111: Add checksum offload support

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 38 ++ drivers/net/usb/aqc111.h | 16 ++-- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/aqc111.c b

[PATCH v3 net-next 11/21] net: usb: aqc111: Add support for changing MTU

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 60 +++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c index 2a322391896c..5c

[PATCH v3 net-next 09/21] net: usb: aqc111: Implement RX data path

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 103 +++ drivers/net/usb/aqc111.h | 15 ++ 2 files changed, 118 insertions(+) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc11

[PATCH v3 net-next 19/21] net: usb: aqc111: Add support for wake on LAN by MAGIC packet

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 180 +++ drivers/net/usb/aqc111.h | 12 +++ 2 files changed, 192 insertions(+) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c

[PATCH v3 net-next 16/21] net: usb: aqc111: Add RX VLAN filtering support

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 89 drivers/net/usb/aqc111.h | 2 +- 2 files changed, 90 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/

[PATCH v3 net-next 07/21] net: usb: aqc111: Add support for getting and setting of MAC address

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 47 drivers/net/usb/aqc111.h | 1 + 2 files changed, 48 insertions(+) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c ind

[PATCH v3 net-next 13/21] net: usb: aqc111: Add support for TSO

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 4 drivers/net/usb/aqc111.h | 8 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c index 36d0da6efbed

[PATCH v3 net-next 08/21] net: usb: aqc111: Implement TX data path

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 72 drivers/net/usb/aqc111.h | 8 + 2 files changed, 80 insertions(+) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c

[PATCH v3 net-next 06/21] net: usb: aqc111: Introduce link management

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Add full hardware initialization sequence and link configuration logic Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 235 +++ drivers/net/usb/aqc111.h | 13 +++ 2 files changed, 248 inserti

[PATCH v3 net-next 04/21] net: usb: aqc111: Various callbacks implementation

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Reset, stop callbacks, driver unbind callback. More register defines required for these callbacks. Add helpers to read/write 16bit values Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 76 + drivers

[PATCH v3 net-next 18/21] net: usb: aqc111: Implement get/set_link_ksettings callbacks

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 124 +++ 1 file changed, 124 insertions(+) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c index 2028db453df9..d96f8d4fb7a0 100

[PATCH v3 net-next 14/21] net: usb: aqc111: Implement set_rx_mode callback

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 72 +--- drivers/net/usb/aqc111.h | 4 +++ 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/aqc111.c b/drivers/ne

[PATCH v3 net-next 21/21] net: usb: aqc111: Extend cdc_ether blacklist

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Added Aquantia and ASIX device IDs to prevent loading cdc_ether for these devices. Our firmware reports CDC configuration simultaneously with vendor specific. Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/cdc_ether.c | 26 +++

[PATCH v3 net-next 03/21] net: usb: aqc111: Add implementation of read and write commands

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Read/write command register defines and functions Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 92 drivers/net/usb/aqc111.h | 18 2 files changed, 110 insertions(+) create mo

[PATCH v3 net-next 02/21] net: usb: aqc111: Add bind and empty unbind callbacks

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Initialize net_device_ops structure Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/aqc111.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/net/usb/aqc111.c b/drivers/net/usb/aqc111.c index

[PATCH v3 net-next 01/21] net: usb: aqc111: Driver skeleton for Aquantia AQtion USB to 5GbE

2018-11-21 Thread Igor Russkikh
From: Dmitry Bezrukov Initialize usb_driver structure skeleton Signed-off-by: Dmitry Bezrukov Signed-off-by: Igor Russkikh --- drivers/net/usb/Kconfig | 12 ++ drivers/net/usb/Makefile | 1 + drivers/net/usb/aqc111.c | 48 3 files changed, 61

[PATCH v3 net-next 00/21] Add support for Aquantia AQtion USB to 5/2.5GbE devices

2018-11-21 Thread Igor Russkikh
This patchset introduces support for new multigig ethernet to USB dongle, developed jointly by Aquantia (Phy) and ASIX (USB MAC). The driver has similar structure with other ASIX MAC drivers (AX88179), but with a number of important differences: - Driver supports both direct Phy and custom firmwar

Re: Support Mac address pass through on Dell DS1000 dock

2018-11-21 Thread Greg KH
On Tue, Nov 20, 2018 at 09:10:22PM +0100, Bjørn Mork wrote: > Greg KH writes: > > > I do not see any USB networking device here at all. > > No, It wasn't easy to see. But it's there both with and without the > feature enabled: > > /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5