[PATCH 06/11] usb: mtu3: rebuild qmu_gpd struct to prepare to support new QMU format

2019-03-06 Thread Chunfeng Yun
To support USB3 Gen2 ISOC, the data buffer length need be extended, it's hard to make the current qmu_gpd struct compatible, so here rebuild qmu_gpd struct and make easy to support new QMU format Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h | 45 +++-- driv

[PATCH 11/11] usb: mtu3: add a function to switch mailbox state to string

2019-03-06 Thread Chunfeng Yun
By introducing mailbox_state_string(), allow to make debug log more readable Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_dr.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_dr.c b/drivers/usb/mtu3/mtu3_dr.c index 82913120

[PATCH 03/11] usb: mtu3: remove unnecessary local variable @req

2019-03-06 Thread Chunfeng Yun
The local variable @req is unnecessary in qmu_tx_zlp_error_handler, so remove it. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_qmu.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_qmu.c b/drivers/usb/mtu3/mtu3_qmu.c index 09f19f70fe8f..f

[PATCH 05/11] usb: mtu3: fix transfer error of USB3 Gen2 isoc

2019-03-06 Thread Chunfeng Yun
To support USB3 Gen2 ISOC, the registers of TXCSR1 and RXCSR1 are adjusted to support greater maxpkt and mult value, this patch fix this issue Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h | 11 ++ drivers/usb/mtu3/mtu3_core.c| 14 +++-- drivers/usb/mtu3/mtu

[PATCH 01/11] usb: mtu3: check return value of devm_extcon_register_notifier()

2019-03-06 Thread Chunfeng Yun
Check the return value of devm_extcon_register_notifier() and add error handling. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_dr.c | 13 + drivers/usb/mtu3/mtu3_plat.c | 8 +++- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_dr.

[PATCH 04/11] usb: mtu3: rebuild the code of getting vbus regulator

2019-03-06 Thread Chunfeng Yun
Remove local variable @vbus and use @dev instead of @pdev->dev Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_plat.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index 3a4a80f15957..a326b1d6006a 100

[PATCH 00/11] add debugfs consumers, tracepoints and rebuild QMU

2019-03-06 Thread Chunfeng Yun
In order to help debug, this series add more debugfs consumers, introduce a few initial tracepoints; And support new features introduced by USB3 Gen2 ISOC: 1. TXCSR/RXCSR registers are adjusted to support greater MULT and MAX_PKT 2. QMU format is also improved last, some small problems are fixed

Re: [PATCH 4/9] usb: gadget: udc: renesas_usb3: use extcon framework to receive connect/disconnect

2019-03-06 Thread Heikki Krogerus
On Wed, Mar 06, 2019 at 09:07:21AM +, Biju Das wrote: > RZ/G2E cat874 board is capable of detecting cable connect and disconnect > events. Add support for renesas_usb3 to receive connect and disconnect > notification using extcon framework. I think you will need the series from Yu Chen [1], bu

Re: [PATCH 0/9] Add USB3.0 and TI HD3SS3220 driver support

2019-03-06 Thread Simon Horman
On Wed, Mar 06, 2019 at 09:07:17AM +, Biju Das wrote: > This series adds USB 3.0 support for the CAT874 platform, including a > new driver for the TI HD3SS3220 USB Type-C DRP port controller. > > This patch series supports: > 1) Host hotplug operation > 2) Device hot plug operation > 3) USB ty

Re: [PATCH 0/4] Add USB-HOST support to cat874

2019-03-06 Thread Simon Horman
On Fri, Mar 01, 2019 at 11:05:44AM +, Fabrizio Castro wrote: > While trying to add USB-HOST support to the cat874 board, > it came up that of_usb_get_dr_mode_by_phy was selecting > the wrong DT node to use for dr_mode. > Also, drivers/phy/renesas/phy-rcar-gen3-usb2.c was registering > IRQs, no

Re: [PATCH] usbip: Remove unnecessary null check

2019-03-06 Thread shuah
Hi Suwan, On 3/5/19 8:11 AM, Suwan Kim wrote: "vdev" points to vhci_hcd->vdev[] array and vhci_hcd->vdev[] array is not a pointer array but a structure array and it is already used in vhci_urb_enqueue() and then passed to vhci_tx_urb() as an argument. vhci_tx_urb() is not called except vhci_urb_

[PATCH] drivers: uwb: Kconfig: pedantic cleanups

2019-03-06 Thread Enrico Weigelt, metux IT consult
Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/uwb/Kconfig | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/uwb/Kconfig b/drivers/uwb/Kconfig index afac258..d0e15e1 100644 --- a/drivers/uwb/Kconfig +++ b/drivers/

Re: [PATCH] drivers: uwb: Kconfig: pedantic cleanups

2019-03-06 Thread Greg KH
On Wed, Mar 06, 2019 at 07:51:46PM +0100, Enrico Weigelt, metux IT consult wrote: > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/uwb/Kconfig | 42 +- > 1 file changed, 21 insertions(+), 21 deletions(-) I do not take patches without any

Re: [PATCH v2 5/8] phy: amlogic: add Amlogic G12A USB2 PHY Driver

2019-03-06 Thread Martin Blumenstingl
Hi Neil, On Mon, Mar 4, 2019 at 11:40 AM Neil Armstrong wrote: [...] > +#include > +#include > +#include > +#include > +#include > +#include > +#include there's a "regmap" include right above. this driver doesn't use syscon so this include can be dropped [...] > +static int phy_meson_g12a

Re: [PATCH v2 6/8] phy: amlogic: Add Amlogic G12A USB3 + PCIE Combo PHY Driver

2019-03-06 Thread Martin Blumenstingl
Hi Neil, On Mon, Mar 4, 2019 at 11:40 AM Neil Armstrong wrote: [...] > +static int phy_g12a_usb3_init(struct phy *phy) > +{ > + struct phy_g12a_usb3_pcie_priv *priv = phy_get_drvdata(phy); > + int data, ret; > + > + /* Switch PHY to USB3 */ > + regmap_update_bits(priv->reg

[PATCH] dt-bindings: usb: dwc2: document the vbus-supply property

2019-03-06 Thread Martin Blumenstingl
Various boards have an external VBUS supply regulator. This regulator depends on the current mode of the controller which is defined as: - dr_mode set to either "host" or "peripheral" (fixed value) - dr_mode set to "otg", based on the OTG status the dwc2 controller internally switches between "ho

Re: [PATCH v2 4/8] dt-bindings: usb: dwc3: Add Amlogic G12A DWC3 Glue Bindings

2019-03-06 Thread Martin Blumenstingl
Hi Neil, On Mon, Mar 4, 2019 at 11:40 AM Neil Armstrong wrote: > > Adds the bindings for the Amlogic G12A USB Glue HW. > > The Amlogic G12A SoC Family embeds 2 USB Controllers : > - a DWC3 IP configured as Host for USB2 and USB3 > - a DWC2 IP configured as Peripheral USB2 Only > > A glue connects

[PATCH v2] drivers: uwb: Kconfig: pedantic cleanups

2019-03-06 Thread Enrico Weigelt, metux IT consult
Formatting of Kconfig files doesn't look so pretty, so just take damp cloth and clean it up. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/uwb/Kconfig | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/uwb/Kconfi

[PATCH] tools: usb: usbip: adding support for older kernel versions

2019-03-06 Thread David Valleau
The current usbip tool relies on the behavior of the vhci-hcd driver in order to work correctly. In instances where a newer version of the tool is used with an older version of the kernel, there are incompatibilities that can sometimes result in failure. This patch adds some fallback capabilities

Re: [GIT PULL] USB/PHY driver patches for 5.1-rc1

2019-03-06 Thread pr-tracker-bot
The pull request you sent on Wed, 6 Mar 2019 11:35:31 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.1-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f90d64483ebd394958841f67f8794ab203b319a7 Thank you! -- Deet-doot-dot, I am a b

Re: [PATCH v2 8/8] usb: dwc3: Add Amlogic G12A DWC3 glue

2019-03-06 Thread Chunfeng Yun
Hi, On Mon, 2019-03-04 at 11:38 +0100, Neil Armstrong wrote: > Adds support for Amlogic G12A USB Control Glue HW. > > The Amlogic G12A SoC Family embeds 2 USB Controllers : > - a DWC3 IP configured as Host for USB2 and USB3 > - a DWC2 IP configured as Peripheral USB2 Only > > A glue connects thes

RE: [PATCH v4 5/6] usb:cdns3 Add Cadence USB3 DRD Driver

2019-03-06 Thread Pawel Laszczak
Hi, >Pawel, > >On 14/02/2019 21:45, Pawel Laszczak wrote: >> This patch introduce new Cadence USBSS DRD driver to linux kernel. >> >> The Cadence USBSS DRD Driver is a highly configurable IP Core whichi >> can be instantiated as Dual-Role Device (DRD), Peripheral Only and >> Host Only (XHCI)config

RE: [PATCH v4 6/6] usb:cdns3 Fix for stuck packets in on-chip OUT buffer.

2019-03-06 Thread Pawel Laszczak
Hi, >Hi, > >On 21/02/2019 09:14, Felipe Balbi wrote: >> >> Hi, >> >> (please break your emails at 80-columns) >> >> Pawel Laszczak writes: > One more thing. Workaround has implemented algorithm that decide for which > endpoint it should be enabled. e.g for composite device MSC+NCM+ACM it

Configuring host_addr and device_addr for u_ether

2019-03-06 Thread Westermann, Oliver
Hey, I'm trying to use a composite gadget on a embedded linux platform using configfs. The kernel-doc was fine and I can now create my gadgets as needed. One big drawback is that the host_addr and dev_addr change on every start. So I tried to change them, without success: * Most web documentati

Re: Configuring host_addr and device_addr for u_ether

2019-03-06 Thread Felipe Balbi
Hi, (please break your lines at 80-columns) "Westermann, Oliver" writes: > Hey, > > I'm trying to use a composite gadget on a embedded linux platform > using configfs. The kernel-doc was fine and I can now create my > gadgets as needed. One big drawback is that the host_addr and dev_addr > chan

[PATCH 3/9] usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller

2019-03-06 Thread Biju Das
Driver for TI HD3SS3220 USB Type-C DRP port controller. The driver currently registers the port and supports data role swapping. Signed-off-by: Biju Das --- drivers/usb/typec/Kconfig | 10 ++ drivers/usb/typec/Makefile| 1 + drivers/usb/typec/hd3ss3220.c | 284 +++

[PATCH 2/9] dt-bindings: usb: renesas_usb3: add extcon support

2019-03-06 Thread Biju Das
Add support for renesas_usb3 to receive connect and disconnect notification using extcon framework. Signed-off-by: Biju Das --- Documentation/devicetree/bindings/usb/renesas_usb3.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/renesas_usb3.txt b/D

[PATCH 4/9] usb: gadget: udc: renesas_usb3: use extcon framework to receive connect/disconnect

2019-03-06 Thread Biju Das
RZ/G2E cat874 board is capable of detecting cable connect and disconnect events. Add support for renesas_usb3 to receive connect and disconnect notification using extcon framework. Signed-off-by: Biju Das --- drivers/usb/gadget/udc/renesas_usb3.c | 115 +- 1 file

[PATCH 1/9] dt-bindings: usb: hd3ss3220 device tree binding document

2019-03-06 Thread Biju Das
Add device tree binding document for TI HD3SS3220 Type-C DRP port controller driver. Signed-off-by: Biju Das --- Documentation/devicetree/bindings/usb/ti,hd3ss3220.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,hd3ss3220.tx

[PATCH 5/9] arm64: defconfig: enable TYPEC_HD3SS3220 config option

2019-03-06 Thread Biju Das
Enable support for the TI HD3SS320 USB Type-C DRP Port controller driver by turning on CONFIG_TYPEC and CONFIG_TYPEC_HD3SS3220 as modules. Signed-off-by: Biju Das --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/conf

[PATCH 0/9] Add USB3.0 and TI HD3SS3220 driver support

2019-03-06 Thread Biju Das
This series adds USB 3.0 support for the CAT874 platform, including a new driver for the TI HD3SS3220 USB Type-C DRP port controller. This patch series supports: 1) Host hotplug operation 2) Device hot plug operation 3) USB type-C data_role switch (Tested with 2 RZ/G2E boards connected with a

[GIT PULL] USB/PHY driver patches for 5.1-rc1

2019-03-06 Thread Greg KH
The following changes since commit d13937116f1e82bf508a6325111b322c30c85eb9: Linux 5.0-rc6 (2019-02-10 14:42:20 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.1-rc1 for you to fetch changes up to 1c7cf3d5e1c181caca75012

Re: [PATCH 3/9] usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller

2019-03-06 Thread Heikki Krogerus
Hi Biju, On Wed, Mar 06, 2019 at 09:07:20AM +, Biju Das wrote: > Driver for TI HD3SS3220 USB Type-C DRP port controller. > > The driver currently registers the port and supports data role swapping. > > Signed-off-by: Biju Das > --- > drivers/usb/typec/Kconfig | 10 ++ > drivers/usb/ty

[PATCH 07/11] usb: mtu3: supports new QMU format

2019-03-06 Thread Chunfeng Yun
In order to support U3gen2 ISOC transfer upto 96DPs, extend the data buffer length. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h | 11 +++--- drivers/usb/mtu3/mtu3_core.c| 5 +++ drivers/usb/mtu3/mtu3_gadget.c | 6 ++-- drivers/usb/mtu3/mtu3_hw_regs.h | 1 + drivers/us

[PATCH 09/11] usb: mtu3: move vbus and mode debugfs interfaces into mtu3_debugfs.c

2019-03-06 Thread Chunfeng Yun
Due to the separated debugfs files are added, move vbus and mode debugfs interfaces related with dual-role switch from mtu3_dr.c into mtu3_debugfs.c Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_debug.h | 2 + drivers/usb/mtu3/mtu3_debugfs.c | 101 driver

[PATCH 10/11] usb: mtu3: add tracepoints to help debug

2019-03-06 Thread Chunfeng Yun
This patch implements a few initial tracepoints for the mtu3 driver. More traces can be added as necessary in order to ease the task of debugging. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/Makefile | 7 + drivers/usb/mtu3/mtu3_core.c | 5 + drivers/usb/mtu3/mtu3_debug.h

[PATCH 02/11] usb: mtu3: print useful information also for device and host modes

2019-03-06 Thread Chunfeng Yun
Print useful information not only dual-role mode but also device mode and host mode. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_plat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index dee31d5eefe

[PATCH 08/11] usb: mtu3: add debugfs interface files

2019-03-06 Thread Chunfeng Yun
This adds more debugfs consumers. The debugfs entries read some important registers, fifo status, QMU ring, endpoint status, and IPPC probe interface to get internal status. With these entries, users can check the registers, endpoint and GPD used during run time. Signed-off-by: Chunfeng Yun ---