Re: [PATCH v2] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-08-03 Thread Felipe Balbi
Hi, Sandeep Singh writes: > @@ -260,11 +266,12 @@ int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev > *pdev) > { > /* Make sure amd chipset type has already been initialized */ > usb_amd_find_chipset_info(); > - if (amd_chipset.sb_type.gen !=

Re: [PATCH v2] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-08-03 Thread Sandeep Singh
>>> Sandeep Singh writes: @@ -260,11 +266,12 @@ int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev) { /* Make sure amd chipset type has already been initialized */ usb_amd_find_chipset_info(); - if (amd_chipset.sb_type.gen !=

[PATCH v2 1/5] phy: qcom-usb-hs: Replace the extcon API

2017-08-03 Thread Chanwoo Choi
This patch uses the resource-managed extcon API for extcon_register_notifier() and replaces the deprecated extcon API as following: - (deprecated) extcon_get_cable_state_() -> extcon_get_state() Acked-by: Kishon Vijay Abraham I Signed-off-by: Chanwoo Choi

[PATCH v2 0/5] usb: Replace the deprecated extcon API

2017-08-03 Thread Chanwoo Choi
These patches replace the deprecated extcon API and remove them from extcon. Patch4 (drivers/usb/gadget/udc/snps_udc_plat.c) neeeds the review from usb maintainer. After finishing the review of patch4, I'll create the immutable branch and send the pull request to both usb and phy maintainer.

[PATCH v2 2/5] phy: rockchip-inno-usb2: Replace the extcon API

2017-08-03 Thread Chanwoo Choi
This patch uses the resource-managed extcon API for extcon_register_notifier() and replaces the deprecated extcon API as following: - extcon_get_cable_state_() -> extcon_get_state() - extcon_set_cable_state_() -> extcon_set_state_sync() Acked-by: Kishon Vijay Abraham I

Re: [PATCH v2] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-08-03 Thread Felipe Balbi
Hi, Sandeep Singh writes: > On 8/3/2017 1:28 PM, Felipe Balbi wrote: >> >> Hi, >> >> Sandeep Singh writes: >>> @@ -260,11 +266,12 @@ int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev >>> *pdev) >>> { >>> /* Make sure amd chipset type has already

Re: [PATCH 2/5] phy: rockchip-inno-usb2: Replace the extcon API

2017-08-03 Thread Chanwoo Choi
Hi, On 2017년 08월 02일 14:12, Kishon Vijay Abraham I wrote: > > > On Monday 17 July 2017 06:50 AM, Chanwoo Choi wrote: >> This patch uses the resource-managed extcon API for >> extcon_register_notifier() >> and replaces the deprecated extcon API as following: >> - extcon_get_cable_state_() ->

[PATCH 1/2] usb: mtu3: add a vbus debugfs interface

2017-08-03 Thread Chunfeng Yun
Provides a new vbus debugfs interface used to turn on/off vbus regulator, it also can be used to get/put reference count of vbus, due to sometimes we need keep it alive when manually switch mtu3 to device mode. Signed-off-by: Chunfeng Yun ---

[PATCH v2 4/5] usb: gadget: udc: Replace the deprecated extcon API

2017-08-03 Thread Chanwoo Choi
This patch replaces the deprecated extcon API as following: - extcon_get_cable_state_() -> extcon_get_state() Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Raviteja Garimella Signed-off-by: Chanwoo Choi

[PATCH v2 3/5] phy: phy-bcm-ns2-usbdrd: Replace the deprecated extcon API

2017-08-03 Thread Chanwoo Choi
This patch replaces the deprecated extcon API as following: - extcon_set_cable_state_() -> extcon_get_state() Cc: Raviteja Garimella Acked-by: Kishon Vijay Abraham I Signed-off-by: Chanwoo Choi ---

Re: [PATCH v2] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-08-03 Thread Sandeep Singh
On 8/3/2017 1:28 PM, Felipe Balbi wrote: > > Hi, > > Sandeep Singh writes: >> @@ -260,11 +266,12 @@ int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev >> *pdev) >> { >> /* Make sure amd chipset type has already been initialized */ >>

[PATCH v2 5/5] extcon: Remove deprecated extcon_set/get_cable_state_()

2017-08-03 Thread Chanwoo Choi
The commit 575c2b867ee0 ("extcon: Rename the extcon_set/get_state() to maintain the function naming pattern") renames the extcon function as following: But, the extcon just keeps the old API to prevent the build error. This patch removes the deprecatd extcon API. - extcon_get_cable_state_() ->

[PATCH 2/2] MAINTAINERS: add entry for mediatek usb3 DRD IP driver

2017-08-03 Thread Chunfeng Yun
Add myself as maintainer of MediaTek USB3 DRD IP driver Signed-off-by: Chunfeng Yun --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 205d397..0f0bcc7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8472,6

[PATCH 4/4] dt-bindings: phy-mt65xx-usb: supports PCIe, SATA and rename file

2017-08-03 Thread Chunfeng Yun
add support for PCIe and SATA, also add some new compatibles. due to phy-mt65xx-usb.txt holds the bindings for all mediatek SoCs with T-PHY controller, change the name to phy-mtk-tphy.txt to reflect that. Change-Id: I2d9200d4c8768dc301a4c116fe0e9b8179d5911c Signed-off-by: Chunfeng Yun

[PATCH 1/4] phy: phy-mt65xx-usb3: add PCIe PHY support

2017-08-03 Thread Chunfeng Yun
From: Ryder Lee This patch adds PCIe PHY setting part. Signed-off-by: Ryder Lee Signed-off-by: Chunfeng Yun --- drivers/phy/phy-mt65xx-usb3.c | 220 + 1 file changed, 202

[PATCH 3/4] phy: phy-mt65xx-usb3: add mediatek directory and rename file

2017-08-03 Thread Chunfeng Yun
The driver is actually for T-PHY which supports USB3.0, PCIe and SATA, and supports more SoCs now, but not just only for series of mt65xx SoCs, so the name of file, data struct, functions etc with 'mt65xx' may cause misunderstanding when new SoCs are supported. Here rename them to reflect the real

[PATCH 4/4] dt-bindings: phy-mt65xx-usb: supports PCIe, SATA and rename file

2017-08-03 Thread Chunfeng Yun
add support for PCIe and SATA, also add some new compatibles. due to phy-mt65xx-usb.txt holds the bindings for all mediatek SoCs with T-PHY controller, change the name to phy-mtk-tphy.txt to reflect that. Signed-off-by: Chunfeng Yun --- .../phy/{phy-mt65xx-usb.txt =>

[PATCH 2/4] phy: phy-mt65xx-usb3: add SATA PHY support

2017-08-03 Thread Chunfeng Yun
From: Ryder Lee This patch adds SATA setting part. Signed-off-by: Ryder Lee Signed-off-by: Chunfeng Yun --- drivers/phy/phy-mt65xx-usb3.c | 133 +++-- 1 file changed, 129

[PATCH] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
USB devices use the DMA mask and offset of the controller, which have already been setup when a device is probed. Note that modifying the mask of a USB device would change the mask for the controller (and all devices on the bus) as the mask is literally shared. Since commit 2bf698671205 ("USB:

Re: [PATCH 4/4] dt-bindings: phy-mt65xx-usb: supports PCIe, SATA and rename file

2017-08-03 Thread Chunfeng Yun
hi, I made a mistake, please ignore the patches with Change-Id, very sorry On Thu, 2017-08-03 at 18:01 +0800, Chunfeng Yun wrote: > add support for PCIe and SATA, also add some new compatibles. > > due to phy-mt65xx-usb.txt holds the bindings for all mediatek SoCs > with T-PHY controller,

Re: [PATCH 2/2] MAINTAINERS: add entry for mediatek usb3 DRD IP driver

2017-08-03 Thread Chunfeng Yun
On Thu, 2017-08-03 at 12:23 +0300, Felipe Balbi wrote: > Hi, > > Chunfeng Yun writes: > > Add myself as maintainer of MediaTek USB3 DRD IP driver > > > > Signed-off-by: Chunfeng Yun > > --- > > MAINTAINERS |7 +++ > > 1 file

Re: Rpi3: no ethernet in 4.13: bisected to patch 'USB: of: fix root-hub device-tree node handling'

2017-08-03 Thread Johan Hovold
On Wed, Aug 02, 2017 at 12:43:01PM +0100, Robin Murphy wrote: > On 02/08/17 12:10, Stefan Wahren wrote: > > Am 02.08.2017 um 09:03 schrieb Hans Verkuil: > >> When testing with my Raspberry Pi 3 and the 4.13-rcX mainline kernel > >> I discovered that there was no ethernet. After bisecting I got to

Re: [PATCH 2/2] MAINTAINERS: add entry for mediatek usb3 DRD IP driver

2017-08-03 Thread Felipe Balbi
Hi, Chunfeng Yun writes: > Add myself as maintainer of MediaTek USB3 DRD IP driver > > Signed-off-by: Chunfeng Yun > --- > MAINTAINERS |7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index

[GIT PULL] USB fixes for v4.13-rc4

2017-08-03 Thread Felipe Balbi
Hi Greg, Here's my second round of fixes for the current -rc cycle. Let me know if you want anything to be changed. cheers The following changes since commit 16f73eb02d7e1765ccab3d2018e0bd98eb93d973: Linux 4.13-rc3 (2017-07-30 12:40:36 -0700) are available in the git repository at:

[PATCH 3/4] phy: phy-mt65xx-usb3: add mediatek directory and rename file

2017-08-03 Thread Chunfeng Yun
The driver is actually for T-PHY which supports USB3.0, PCIe and SATA, and supports more SoCs now, but not just only for series of mt65xx SoCs, so the name of file, data struct, functions etc with 'mt65xx' may cause misunderstanding when new SoCs are supported. Here rename them to reflect the real

[PATCH 1/4] phy: phy-mt65xx-usb3: add PCIe PHY support

2017-08-03 Thread Chunfeng Yun
From: Ryder Lee This patch adds PCIe PHY setting part. Change-Id: I112cbcdafd3deecf2c0ad17bafc8c784e1730ec4 Signed-off-by: Ryder Lee Signed-off-by: Chunfeng Yun --- drivers/phy/phy-mt65xx-usb3.c | 220

[PATCH 2/4] phy: phy-mt65xx-usb3: add SATA PHY support

2017-08-03 Thread Chunfeng Yun
From: Ryder Lee This patch adds SATA setting part. Change-Id: Icb1fc15ebe9f6172c56a46d40c359c7cff922976 Signed-off-by: Ryder Lee Signed-off-by: Chunfeng Yun --- drivers/phy/phy-mt65xx-usb3.c | 133

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Alan Stern
On Thu, 3 Aug 2017, Johan Hovold wrote: > USB devices use the DMA mask and offset of the controller, which have > already been setup when a device is probed. Note that modifying the > DMA mask of a USB device would change the mask for the controller (and > all devices on the bus) as the mask is

Re: [PATCH 1/2] usb: mtu3: add a vbus debugfs interface

2017-08-03 Thread Greg Kroah-Hartman
On Thu, Aug 03, 2017 at 04:37:18PM +0800, Chunfeng Yun wrote: > +static ssize_t ssusb_vbus_write(struct file *file, > + const char __user *ubuf, size_t count, loff_t *ppos) > +{ > + struct seq_file *sf = file->private_data; > + struct ssusb_mtk *ssusb = sf->private; > + struct

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
On Thu, Aug 03, 2017 at 03:48:06PM +0100, Robin Murphy wrote: > On 03/08/17 15:23, Johan Hovold wrote: > > On Thu, Aug 03, 2017 at 10:04:21AM -0400, Alan Stern wrote: > >> On Thu, 3 Aug 2017, Johan Hovold wrote: > >>> diff --git a/include/linux/usb.h b/include/linux/usb.h > >>> index

Re: [PATCH v2] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-08-03 Thread Greg KH
On Thu, Aug 03, 2017 at 02:00:37PM +0530, Sandeep Singh wrote: > > >>> Sandeep Singh writes: > @@ -260,11 +266,12 @@ int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev > *pdev) > { > /* Make sure amd chipset type has already been initialized

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
On Thu, Aug 03, 2017 at 04:23:08PM +0200, Johan Hovold wrote: > On Thu, Aug 03, 2017 at 10:04:21AM -0400, Alan Stern wrote: > > On Thu, 3 Aug 2017, Johan Hovold wrote: > > > > > USB devices use the DMA mask and offset of the controller, which have > > > already been setup when a device is probed.

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
On Thu, Aug 03, 2017 at 04:49:24PM +0200, Johan Hovold wrote: > On Thu, Aug 03, 2017 at 04:23:08PM +0200, Johan Hovold wrote: > > On Thu, Aug 03, 2017 at 10:04:21AM -0400, Alan Stern wrote: > > > On Thu, 3 Aug 2017, Johan Hovold wrote: > > > > > > > USB devices use the DMA mask and offset of the

Re: [PATCH v2] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-08-03 Thread Greg KH
On Thu, Aug 03, 2017 at 09:02:32AM -0700, Greg KH wrote: > On Thu, Aug 03, 2017 at 02:00:37PM +0530, Sandeep Singh wrote: > > > > >>> Sandeep Singh writes: > > @@ -260,11 +266,12 @@ int usb_hcd_amd_remote_wakeup_quirk(struct > > pci_dev *pdev) > > { > >

Re: [PATCH v3] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Greg Kroah-Hartman
On Thu, Aug 03, 2017 at 05:52:08PM +0200, Johan Hovold wrote: > USB devices use the DMA mask and offset of the controller, which have > already been setup when a device is probed. Note that modifying the > DMA mask of a USB device would change the mask for the controller (and > all devices on the

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Robin Murphy
On 03/08/17 15:23, Johan Hovold wrote: > On Thu, Aug 03, 2017 at 10:04:21AM -0400, Alan Stern wrote: >> On Thu, 3 Aug 2017, Johan Hovold wrote: >> >>> USB devices use the DMA mask and offset of the controller, which have >>> already been setup when a device is probed. Note that modifying the >>>

[PATCH v3] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
USB devices use the DMA mask and offset of the controller, which have already been setup when a device is probed. Note that modifying the DMA mask of a USB device would change the mask for the controller (and all devices on the bus) as the mask is literally shared. Since commit 2bf698671205

Re: [PATCH v3] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
On Thu, Aug 03, 2017 at 09:07:28AM -0700, Greg Kroah-Hartman wrote: > On Thu, Aug 03, 2017 at 05:52:08PM +0200, Johan Hovold wrote: > > USB devices use the DMA mask and offset of the controller, which have > > already been setup when a device is probed. Note that modifying the > > DMA mask of a

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
On Thu, Aug 03, 2017 at 10:04:21AM -0400, Alan Stern wrote: > On Thu, 3 Aug 2017, Johan Hovold wrote: > > > USB devices use the DMA mask and offset of the controller, which have > > already been setup when a device is probed. Note that modifying the > > DMA mask of a USB device would change the

Re: [PATCH 1/2] usb: mtu3: add a vbus debugfs interface

2017-08-03 Thread Greg Kroah-Hartman
On Thu, Aug 03, 2017 at 09:00:57AM -0700, Greg Kroah-Hartman wrote: > On Thu, Aug 03, 2017 at 04:37:18PM +0800, Chunfeng Yun wrote: > > +static ssize_t ssusb_vbus_write(struct file *file, > > + const char __user *ubuf, size_t count, loff_t *ppos) > > +{ > > + struct seq_file *sf =

Need PHY reset after USB device disconnected

2017-08-03 Thread Srinath Mannam
Hi Mathias, In our SOC, xHCI controller has three ports. In that one is SS and two HS ports, all ports are connected with separate phy controller. We have a bug in HS phy controllers. Because of this bug, HS phy controller needs to reset after disconnected the device in the corresponding HS

Re: [GIT PULL] USB fixes for v4.13-rc4

2017-08-03 Thread Greg Kroah-Hartman
On Thu, Aug 03, 2017 at 01:08:12PM +0300, Felipe Balbi wrote: > > Hi Greg, > > Here's my second round of fixes for the current -rc cycle. Let me know > if you want anything to be changed. > > cheers > > The following changes since commit 16f73eb02d7e1765ccab3d2018e0bd98eb93d973: > > Linux

Re: [GIT PULL] USB-serial fixes for v4.13-rc4

2017-08-03 Thread Greg Kroah-Hartman
On Thu, Aug 03, 2017 at 06:08:00PM +0200, Johan Hovold wrote: > The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: > > Linux v4.13-rc1 (2017-07-15 15:22:10 -0700) > > are available in the git repository at: > >

Re: [PATCH v4 3/3] power: wm831x_power: Support USB charger current limit management

2017-08-03 Thread Rob Herring
On Thu, Jul 27, 2017 at 01:14:38PM +0800, Baolin Wang wrote: > Integrate with the newly added USB charger interface to limit the current > we draw from the USB input based on the input device configuration > identified by the USB stack, allowing us to charge more quickly from high > current inputs

Re: [PATCH] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread kbuild test robot
Hi Johan, [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on v4.13-rc3 next-20170803] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Johan-Hovold/dma-mapping

[PATCH] Drivers: usb: serial: Replace unsigned to unsigned int and fix line over 80 characters

2017-08-03 Thread Himanshu Jha
This patch fixes the following checkpatch.pl warnings: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line WARNING: Prefer 'unsigned int' to bare use of 'unsigned' WARNING: Missing a blank line after declarations WARNING: line over 80

Re: [PATCH] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread kbuild test robot
Hi Johan, [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on v4.13-rc3 next-20170803] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Johan-Hovold/dma-mapping

Re: [PATCH 1/2] usb: mtu3: add a vbus debugfs interface

2017-08-03 Thread Chunfeng Yun
On Thu, 2017-08-03 at 09:01 -0700, Greg Kroah-Hartman wrote: > On Thu, Aug 03, 2017 at 09:00:57AM -0700, Greg Kroah-Hartman wrote: > > On Thu, Aug 03, 2017 at 04:37:18PM +0800, Chunfeng Yun wrote: > > > +static ssize_t ssusb_vbus_write(struct file *file, > > > + const char __user *ubuf, size_t

[PATCH v2 1/3] usb: gadget: udc: renesas_usb3: add debugfs to set the b-device mode

2017-08-03 Thread Yoshihiro Shimoda
This patch adds debugfs to set the "b-device" mode for using a board which is not connected to the ID pin (e.g. CN11 on Salvator-X). If we want to use peripheral mode on such a board, we have to disable VBUS output first. So, this patch can set such a mode as the following: # mount -t debugfs

[PATCH v2 3/3] usb: gadget: udc: renesas_usb3: add support for R-Car M3-W

2017-08-03 Thread Yoshihiro Shimoda
This patch adds support for R-Car M3-W. This patch also adds R-Car Gen3 generic version's compatible and changes ".compatible" in the usb3_of_match from "renesas,r8a7796-usb3-peri" to "renesas,rcar-gen3-usb3-peri". Signed-off-by: Yoshihiro Shimoda ---

[PATCH v2 0/3] usb: gadget: udc: renesas_usb3: add support for some R-Car Gen3 SoCs

2017-08-03 Thread Yoshihiro Shimoda
This patch set is based on the latest Felipe's usb.git / testing/next branch (the commit id = 5771a8c08880cdca3bfb4a3fc6d309d6bba20877) Changes from v1: - The usb3_of_match has "renesas,rcar-gen3-usb3-peri" only in patch 3. Yoshihiro Shimoda (3): usb: gadget: udc: renesas_usb3: add debugfs to

[PATCH v2 2/3] usb: gadget: udc: renesas_usb3: add support for R-Car H3 ES2.0

2017-08-03 Thread Yoshihiro Shimoda
This patch adds support for R-Car H3 ES2.0. Since this SoC revision doesn't need workaround for vbus detection and number of ramif is increased. So, this driver uses soc_device_match() to detect it. Signed-off-by: Yoshihiro Shimoda ---

Re: [PATCH 3/3] usb: gadget: udc: renesas_usb3: add support for R-Car M3-W

2017-08-03 Thread Rob Herring
On Fri, Jul 28, 2017 at 09:16:59PM +0900, Yoshihiro Shimoda wrote: > This patch adds support for R-Car M3-W. This patch also adds R-Car > Gen3 generic version's compatible. > > Signed-off-by: Yoshihiro Shimoda > --- >

Re: [PATCH v4 3/3] power: wm831x_power: Support USB charger current limit management

2017-08-03 Thread Baolin Wang
On 4 August 2017 at 03:16, Rob Herring wrote: > On Thu, Jul 27, 2017 at 01:14:38PM +0800, Baolin Wang wrote: >> Integrate with the newly added USB charger interface to limit the current >> we draw from the USB input based on the input device configuration >> identified by the USB

[PATCH v2 2/2] MAINTAINERS: add entry for mediatek usb3 DRD IP driver

2017-08-03 Thread Chunfeng Yun
Add myself as maintainer of MediaTek USB3 DRD IP driver Signed-off-by: Chunfeng Yun --- MAINTAINERS |8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 205d397..0cf5e31 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8472,6

[PATCH v2 1/2] usb: mtu3: add a vbus debugfs interface

2017-08-03 Thread Chunfeng Yun
Provides a new vbus debugfs interface used to turn on/off vbus regulator, it also can be used to get/put reference count of vbus, due to sometimes we need keep it alive when manually switch mtu3 to device mode. Signed-off-by: Chunfeng Yun ---

[RFC][PATCH 1/2] usb: dwc2: Improve gadget state disconnection handling

2017-08-03 Thread John Stultz
In the earlier commit dad3f793f20f ("usb: dwc2: Make sure we disconnect the gadget state"), I was trying to fix up the fact that we somehow weren't disconnecting the gadget state, so that when the OTG port was plugged in the second time we would get warnings about the state tracking being wrong.

[RFC][PATCH 2/2] usb: dwc2: Fix UDC state tracking

2017-08-03 Thread John Stultz
It has been noticed that the dwc2 udc state reporting doesn't seem to work (at least on HiKey boards). Where after the initial setup, the sysfs /sys/class/udc/f72c.usb/state file would report "configured" no matter the state of the OTG port. This patch adds a call so that we report to the UDC

Re: [PATCH] Drivers: usb: serial: Replace unsigned to unsigned int and fix line over 80 characters

2017-08-03 Thread Greg KH
On Fri, Aug 04, 2017 at 02:21:13AM +0530, Himanshu Jha wrote: > This patch fixes the following checkpatch.pl warnings: > > WARNING: Block comments use * on subsequent lines > WARNING: Block comments use a trailing */ on a separate line > WARNING: Prefer 'unsigned int' to bare use of 'unsigned' >

RE: [PATCH 3/3] usb: gadget: udc: renesas_usb3: add support for R-Car M3-W

2017-08-03 Thread Yoshihiro Shimoda
Hi Rob, > -Original Message- > From: Rob Herring > Sent: Friday, August 4, 2017 7:28 AM > > On Fri, Jul 28, 2017 at 09:16:59PM +0900, Yoshihiro Shimoda wrote: > > This patch adds support for R-Car M3-W. This patch also adds R-Car > > Gen3 generic version's compatible. > > > >

[PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
USB devices use the DMA mask and offset of the controller, which have already been setup when a device is probed. Note that modifying the DMA mask of a USB device would change the mask for the controller (and all devices on the bus) as the mask is literally shared. Since commit 2bf698671205

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Robin Murphy
On 03/08/17 14:14, Johan Hovold wrote: > USB devices use the DMA mask and offset of the controller, which have > already been setup when a device is probed. Note that modifying the > DMA mask of a USB device would change the mask for the controller (and > all devices on the bus) as the mask is

Re: [PATCH] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Robin Murphy
Hi Johan, On 03/08/17 11:05, Johan Hovold wrote: > USB devices use the DMA mask and offset of the controller, which have > already been setup when a device is probed. Note that modifying the mask > of a USB device would change the mask for the controller (and all > devices on the bus) as the mask

Re: [PATCH] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-03 Thread Johan Hovold
On Thu, Aug 03, 2017 at 12:50:20PM +0100, Robin Murphy wrote: > Hi Johan, > > On 03/08/17 11:05, Johan Hovold wrote: > > USB devices use the DMA mask and offset of the controller, which have > > already been setup when a device is probed. Note that modifying the mask > > of a USB device would