[PATCH v10 0/3] Mediatek xHCI support

2015-10-17 Thread Chunfeng Yun
>From 66e467548861c39c52de1d3d899ddc980c6cb925 Mon Sep 17 00:00:00 2001 From: Chunfeng Yun Date: Sun, 18 Oct 2015 11:39:45 +0800 Subject: [PATCH v10 0/3] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1. The interval is specified i

[PATCH v10 1/3] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-10-17 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt8173-xhci.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/mt81

[PATCH v10 2/3] xhci: mediatek: support MTK xHCI host controller

2015-10-17 Thread Chunfeng Yun
There some vendor quirks for MTK xhci host controller: 1. It defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context. 2. Its IMODI unit for Interr

[PATCH v10 3/3] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-10-17 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 42 + 2 files changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt817

Re: [PATCH v9 4/5] xhci: mediatek: support MTK xHCI host controller

2015-10-17 Thread chunfeng yun
Hi, On Thu, 2015-10-15 at 17:46 +0300, Mathias Nyman wrote: > On 29.09.2015 06:01, Chunfeng Yun wrote: > > There some vendor quirks for MTK xhci host controller: > > 1. It defines some extra SW scheduling parameters for HW > >to minimize the scheduling effort for synchronous and > >interrup

Re: mass storage behaviour

2015-10-17 Thread Paul Jones
On 17 Oct 2015, at 16:06, Alan Stern wrote: > On Sat, 17 Oct 2015, Paul Jones wrote: > >> On 17 Oct 2015, at 12:30, Alan Stern wrote: >> >>> Paul, can you tell your email client to wrap lines after 72 columns or >>> so? It would make replying a lot easier… >> Mac Mail is not very friendly i

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Greg Kroah-Hartman
On Sat, Oct 17, 2015 at 03:39:20PM -0400, Rob Clark wrote: > On Sat, Oct 17, 2015 at 2:59 PM, Greg Kroah-Hartman > wrote: > > On Sat, Oct 17, 2015 at 02:45:34PM -0400, Rob Clark wrote: > >> On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman > >> wrote: > >> > On Sat, Oct 17, 2015 at 01:54:43PM -

Re: mass storage behaviour

2015-10-17 Thread Alan Stern
On Sat, 17 Oct 2015, Paul Jones wrote: > On 17 Oct 2015, at 12:30, Alan Stern wrote: > > > Paul, can you tell your email client to wrap lines after 72 columns or > > so? It would make replying a lot easier… > Mac Mail is not very friendly in this respect, but I can pay attention to > not make

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Rob Clark
On Sat, Oct 17, 2015 at 3:04 PM, Noralf Trønnes wrote: > > Den 17.10.2015 20:45, skrev Rob Clark: >> >> On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman >> wrote: >>> >>> On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman >

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Rob Clark
On Sat, Oct 17, 2015 at 2:59 PM, Greg Kroah-Hartman wrote: > On Sat, Oct 17, 2015 at 02:45:34PM -0400, Rob Clark wrote: >> On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman >> wrote: >> > On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: >> >> On Sat, Oct 17, 2015 at 12:56 PM, Greg Kro

[PATCH 2/3] usb: host: lpc32xx: balance clk enable/disable on removal

2015-10-17 Thread Vladimir Zapolskiy
The change adds missing clk_disable_unprepare(usb_otg_clk) call, also the disabled clocks are sorted in order opposite to enabled clocks. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/host/ohci-nxp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-

[PATCH 1/3] usb: host: lpc32xx: fix warnings caused by enabling unprepared clock

2015-10-17 Thread Vladimir Zapolskiy
If common clock framework is configured, the driver generates a warning, which is fixed by this change: WARNING: CPU: 0 PID: 573 at drivers/clk/clk.c:728 clk_core_enable+0x2c/0xf0() Modules linked in: ohci_nxp(+) sc16is7xx snd_soc_uda1380 CPU: 0 PID: 573 Comm: udevd Not tainted 4.3.0-

[PATCH 3/3] usb: host: lpc32xx: don't unregister phy device

2015-10-17 Thread Vladimir Zapolskiy
There is no need to unregister the I2C device, which serves as a phy from host code, this should be done in the correspondent phy driver. Signed-off-by: Vladimir Zapolskiy --- drivers/usb/host/ohci-nxp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb

[PATCH 0/3] usb: ohci: lpc32xx: clock fixes

2015-10-17 Thread Vladimir Zapolskiy
The changeset contains a couple of fixes in the LPC32xx OHCI driver related to clock enable/disable usage and one more fix of improper phy device release on driver removal. Vladimir Zapolskiy (3): usb: host: lpc32xx: fix warnings caused by enabling unprepared clock usb: host: lpc32xx: balance

[PATCH 3/9 V2] usb/host/fotg210: Remove return statement inside if

2015-10-17 Thread Peter Senna Tschudin
This patch make changes to an if else statement which simplifies the code allowing to remove a return. CC: Joe Perches Signed-off-by: Peter Senna Tschudin --- Subject was: [PATCH 3/9] usb/host/fotg210: Remove useless else statement To be applied on top of V1. Changes from V1: Instead of jus

[PATCH] usb: udc: lpc32xx: fix warnings caused by enabling unprepared clock

2015-10-17 Thread Vladimir Zapolskiy
If common clock framework is configured, the driver generates warnings, which is fixed by this change: WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:728 clk_core_enable+0x2c/0xf0() Modules linked in: CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0-rc2+ #284 Hardware name: LPC32XX SoC (

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Noralf Trønnes
Den 17.10.2015 20:45, skrev Rob Clark: On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman wrote: On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman wrote: I'm guessing the time is a matter of probing and undoing the probes rather

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Greg Kroah-Hartman
On Sat, Oct 17, 2015 at 02:45:34PM -0400, Rob Clark wrote: > On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman > wrote: > > On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: > >> On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman > >> wrote: > >> >> I'm guessing the time is a matter

Re: mass storage behaviour

2015-10-17 Thread Paul Jones
On 17 Oct 2015, at 12:30, Alan Stern wrote: > Paul, can you tell your email client to wrap lines after 72 columns or > so? It would make replying a lot easier… Mac Mail is not very friendly in this respect, but I can pay attention to not make long lines :) > ... >>> One thing you did not sho

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Rob Clark
On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman wrote: > On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: >> On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman >> wrote: >> >> I'm guessing the time is a matter of probing and undoing the probes >> >> rather than slow h/w. We could

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Greg Kroah-Hartman
On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: > On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman > wrote: > >> I'm guessing the time is a matter of probing and undoing the probes > >> rather than slow h/w. We could maybe improve things by making sure > >> drivers move what they de

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Rob Clark
On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman wrote: >> I'm guessing the time is a matter of probing and undoing the probes >> rather than slow h/w. We could maybe improve things by making sure >> drivers move what they defer on to the beginning of probe, but that >> seems like a horrible,

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Greg Kroah-Hartman
On Sat, Oct 17, 2015 at 11:28:29AM -0500, Rob Herring wrote: > On Sat, Oct 17, 2015 at 10:47 AM, Greg Kroah-Hartman > wrote: > > On Sat, Oct 17, 2015 at 10:04:55AM -0500, Rob Herring wrote: > >> On Sat, Oct 17, 2015 at 1:57 AM, Greg Kroah-Hartman > >> wrote: > >> > On Wed, Oct 14, 2015 at 10:34:0

Re: mass storage behaviour

2015-10-17 Thread Alan Stern
Paul, can you tell your email client to wrap lines after 72 columns or so? It would make replying a lot easier... On Fri, 16 Oct 2015, Paul Jones wrote: > >> The slow queuing of transfers seems to be due to waiting in a spin lock on > >> ep->dev->lock (4+ us). > >> I�m guessing this is caused

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Rob Herring
On Sat, Oct 17, 2015 at 10:47 AM, Greg Kroah-Hartman wrote: > On Sat, Oct 17, 2015 at 10:04:55AM -0500, Rob Herring wrote: >> On Sat, Oct 17, 2015 at 1:57 AM, Greg Kroah-Hartman >> wrote: >> > On Wed, Oct 14, 2015 at 10:34:00AM +0200, Tomeu Vizoso wrote: >> >> Hi Rob, >> >> >> >> here is the pull

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Greg Kroah-Hartman
On Sat, Oct 17, 2015 at 10:04:55AM -0500, Rob Herring wrote: > On Sat, Oct 17, 2015 at 1:57 AM, Greg Kroah-Hartman > wrote: > > On Wed, Oct 14, 2015 at 10:34:00AM +0200, Tomeu Vizoso wrote: > >> Hi Rob, > >> > >> here is the pull request you asked for, with no changes from the version > >> that I

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Rob Herring
On Fri, Oct 16, 2015 at 4:23 PM, Olof Johansson wrote: > Hi, > > I've bisected boot failures in next-20151016 down to patches in this branch: > > On Thu, Oct 15, 2015 at 4:42 AM, Tomeu Vizoso > wrote: >> Tomeu Vizoso (20): >> driver core: handle -EPROBE_DEFER from bus_type.match() > > The m

Re: [PATCH v9 4/4] USB / PM: Allow USB devices to remain runtime-suspended when sleeping

2015-10-17 Thread Alan Stern
On Fri, 16 Oct 2015, Greg Kroah-Hartman wrote: > On Mon, Oct 05, 2015 at 04:45:32PM +0200, Tomeu Vizoso wrote: > > Have dev_pm_ops.prepare return 1 for USB devices and ports so that USB > > devices can remain runtime-suspended when the system goes to a sleep > > state, if their wakeup state is cor

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Rob Herring
On Sat, Oct 17, 2015 at 1:57 AM, Greg Kroah-Hartman wrote: > On Wed, Oct 14, 2015 at 10:34:00AM +0200, Tomeu Vizoso wrote: >> Hi Rob, >> >> here is the pull request you asked for, with no changes from the version >> that I posted last to the list. >> >> The following changes since commit 6ff33f390

Re: [PATCH] ohci-pci: use PCI_DEVICE_SUB()

2015-10-17 Thread Sergei Shtylyov
On 10/17/2015 9:39 AM, Greg KH wrote: Toshiba Portege 4000 quirk entry can be written shorter using the PCI_DEVICE_SUB() macro. Signed-off-by: Sergei Shtylyov --- The patch is against the 'usb-next' branch of Greg KH's 'usb.git' repo. drivers/usb/host/ohci-pci.c |6 ++ 1 file cha