Force argument is not used anymore. Clean up leftovers from
https://lkml.org/lkml/2014/12/9/283
Signed-off-by: Mian Yousaf Kaukab
---
drivers/usb/dwc2/gadget.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index bbc
From: Gregory Herrero
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/hcd.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index 36f0c69..0213763 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -23
From: Gregory Herrero
During vbus session, usb controller needs to exit hibernation if it was
previously in suspend state.
Since controller will be resetted and configured, there is no need
to restore registers.
Moreover, set lx_state to L0 on B session. vbus_session callback may
not be used by
From: Gregory Herrero
dwc2 may not be able to exit from hibernation if the hardware
does not provide a way to detect resume signalling in this state.
Thus, add the possibility to disable hibernation feature.
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/core.c | 24 +
From: Jingwu Lin
Add support for SetPortFeature(PORT_TEST) for root port.
Signed-off-by: Jingwu Lin
---
drivers/usb/dwc2/hcd.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index 3c8f68c..c8a5005 100644
--- a/drivers/usb/dwc2/hcd.c
From: Gregory Herrero
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/gadget.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c
index d94d0e8..bbc25ec 100644
--- a/drivers/usb/dwc2/gadget.c
+++ b/drivers/usb/dwc2/gadget.c
@@ -3525,6
As dwc2 pci module is now exporting dwc2 platform device, include
platform.o in dwc2-y and remove USB_DWC2_PLATFORM configuration
option. Driver will be built as two modules, dwc2.ko and dwc2_pci.ko.
dwc2.ko is the new platform driver.
Remove all EXPORT_SYMBOL_GPL as they are not needed any more.
From: Gregory Herrero
Once hub is runtime suspended, dwc2 must resume it
on port connect event.
Else, roothub will stay in suspended state and will
not resume transfers.
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/hcd_intr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/driver
From: Gregory Herrero
If usb controller is in partial power down, any write to registers may
cause unpredictable behavior.
Thus, prevent any new request submission once controller is in partial
power down.
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/gadget.c | 7 +++
1 file changed
From: Gregory Herrero
This is required due to an Intel specific hardware issue. Where id-
pin setup causes glitches on the interrupt line when CONIDSTSCHG
interrupt is enabled.
Specify external_id_pin_ctl when an external driver (for example phy)
can handle id change, so that CONIDSTSCHG interru
Hello.
On 03/20/2015 06:36 PM, Mian Yousaf Kaukab wrote:
From: Gregory Herrero
ResetDet interrupt is used to detect a reset of the bus
while the controller is suspended.
This may happens for example when using Command Verifier.
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/gadge
>> > - qh->dw_align_buf = dma_alloc_coherent(hsotg->dev, buf_size,
>> > -
>> > &qh->dw_align_buf_dma,
>> > - GFP_ATOMIC);
>> > + qh->dw_align_buf = kzalloc(buf_size,
On Tue, Nov 25, 2014 at 1:19 PM, Mark Langsdorf wrote:
> The xhci platform driver needs to work on systems that either only
> support 64-bit DMA or only support 32-bit DMA. Attempt to set a
> coherent dma mask for 64-bit DMA, and attempt again with 32-bit
> DMA if that fails.
>
> Signed-off-by: Ma
Hi All,
Here is v2 of my patch-set to add support for the musb variant found on
Allwinner sunxi SoCs.
Changes since the original posting:
-Removed the sunxi specific phy functions, instead the id / vbus gpio polling
has been moved to the phy-sun4i-usb driver and their status is exported
through
The generic fifo functions already use non wrapped accesses in various
cases through the iowrite#_rep functions, and all platforms which override
the default musb_read[b|w] / _write[b|w] functions also provide their own
fifo access functions, so we can safely drop the unnecessary indirection
from t
musb-core was setting the ops to the default indexed or flat handlers after
checking for platform overrides. Reverse the order of this so that platform
overrides actually work.
Signed-off-by: Hans de Goede
---
drivers/usb/musb/musb_core.c | 13 ++---
1 file changed, 6 insertions(+), 7 de
The Allwinner (sunxi) implementation of the musb has its busctl registers
indexed by the MUSB_INDEX register rather then in a flat address space.
This commit turns MUSB_BUSCTL_OFFSET from a macro into an io-op which can
be overridden from the platform ops.
Signed-off-by: Hans de Goede
---
drive
The usb0 phy is connected to an OTG controller, and as such needs some special
handling:
1) It allows explicit control over the pullups, enable these on phy_init and
disable them on phy_exit.
2) It has bits to signal id and vbus detect to the musb-core, add support for
for monitoring id and vbus
Enable the otg/drc usb controller on the A20-OLinuxIno-Lime.
Signed-off-by: Hans de Goede
---
arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts | 28 ++
1 file changed, 28 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
b/arch/arm/boot/dts/sun7i-a
From: Roman Byshko
Enable the otg/drc usb controller on the cubietruck.
Signed-off-by: Hans de Goede
---
arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 23 +++
1 file changed, 23 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
b/arch/arm/boot/dts/sun7i
Add a node for the otg/drc usb controller to sun4i-a10.dtsi.
Signed-off-by: Hans de Goede
---
arch/arm/boot/dts/sun4i-a10.dtsi | 11 +++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
index a932c1c..88f57b4 100644
--- a/
From: Roman Byshko
Add a node for the otg/drc usb controller to sun7i-a20.dtsi
Signed-off-by: Hans de Goede
---
arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
index fb911c9..7
For some reason the musb_write_rxfun* and musb_write_rxhub* functions had
a different function prototype and some extra magic needed on the caller side
compared to their tx counterparts, this commit makes them work the same as
their tx counterparts.
Signed-off-by: Hans de Goede
---
drivers/usb/m
Enable the OTG controller on the UTOO P66 tablet.
Signed-off-by: Hans de Goede
---
arch/arm/boot/dts/sun5i-a13-utoo-p66.dts | 23 +++
1 file changed, 23 insertions(+)
diff --git a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts
index d1d4
This is based on initial code to get the Allwinner sunxi musb controller
supported by Chen-Yu Tsai and Roman Byshko.
This adds support for the Allwinner sunxi musb controller in both host only
and otg mode. Peripheral only mode is not supported, as no boards use that.
This has been tested on a cu
Add a node for the otg/drc usb controller to sun5i-a1*.dtsi.
Signed-off-by: Hans de Goede
---
arch/arm/boot/dts/sun5i.dtsi | 11 +++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi
index c3e11ec..eb5bce5 100644
--- a/arch/arm/boo
Enable the otg/drc usb controller on the Chuwi V7 CW0825 tablet.
Signed-off-by: Hans de Goede
---
arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts | 31 +
1 file changed, 31 insertions(+)
diff --git a/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
b/arch/arm/boot/dts/su
On Fri, 2015-03-20 at 16:11 +0100, Bjørn Mork wrote:
> Anyway, the "outnl" is only ever used with rv < 0, and with your
> changes
> all other cases where rv < 0 will jump to some other label. So I
> don't
> think it makes much sense to keep the "return rv < 0 ? rv : count"
> even
> if you don't wa
This patch set adds a new API to get phy by index when multiple
phys are present. This patch is based on discussion with Arnd Bergmann
about dt bindings for multiple phys.
Arun Ramamurthy (3):
phy: core: Add devm_of_phy_get_by_index to phy-core
usb: ehci-platform: Use devm_of_phy_get_by_inde
Getting phys by index instead of phy names so that the dt
bindings phy-names remain consistent when multiple phys are present
Reviewed-by: Ray Jui
Reviewed-by: Scott Branden
Signed-off-by: Arun Ramamurthy
---
drivers/usb/host/ehci-platform.c | 20
1 file changed, 4 inserti
Getting phys by index instead of phy names so that the dt
bindings phy-names remain consistent when multiple phys are present
Reviewed-by: Ray Jui
Reviewed-by: Scott Branden
Signed-off-by: Arun Ramamurthy
---
drivers/usb/host/ohci-platform.c | 20
1 file changed, 4 inserti
Adding devm_of_phy_get_by_index to get phys by supplying an index
and not a phy name when multiple phys are declared
Reviewed-by: Ray Jui
Reviewed-by: Scott Branden
Signed-off-by: Arun Ramamurthy
---
drivers/phy/phy-core.c | 30 ++
include/linux/phy/phy.h | 2 ++
Hi Arun,
On Fri, Mar 20, 2015 at 02:07:08PM -0700, Arun Ramamurthy wrote:
> Adding devm_of_phy_get_by_index to get phys by supplying an index
> and not a phy name when multiple phys are declared
>
> Reviewed-by: Ray Jui
> Reviewed-by: Scott Branden
> Signed-off-by: Arun Ramamurthy
> ---
> dri
On 15-03-20 02:26 PM, Dmitry Torokhov wrote:
Hi Arun,
On Fri, Mar 20, 2015 at 02:07:08PM -0700, Arun Ramamurthy wrote:
Adding devm_of_phy_get_by_index to get phys by supplying an index
and not a phy name when multiple phys are declared
Reviewed-by: Ray Jui
Reviewed-by: Scott Branden
Signed
Hi Arun,
On Fri, Mar 20, 2015 at 02:07:09PM -0700, Arun Ramamurthy wrote:
> Getting phys by index instead of phy names so that the dt
> bindings phy-names remain consistent when multiple phys are present
>
> Reviewed-by: Ray Jui
> Reviewed-by: Scott Branden
> Signed-off-by: Arun Ramamurthy
> -
The MUSB test mode register can only be set once, otherwise the result
is undefined.
This prevents the debugfs testmode entry to set the register more than
once which causes test failure.
Signed-off-by: Bin Liu
---
drivers/usb/musb/musb_debugfs.c | 6 ++
1 file changed, 6 insertions(+)
dif
Sorry, please ignore this one. Forgot to rebase.
Regards,
-Bin.
> -Original Message-
> From: Liu, Bin
> Sent: Friday, March 20, 2015 4:45 PM
> To: linux-usb@vger.kernel.org
> Cc: Balbi, Felipe; Liu, Bin
> Subject: [PATCH] usb: musb: only set test mode once
>
> The MUSB test mode register
The MUSB test mode register can only be set once, otherwise the result
is undefined.
This prevents the debugfs testmode entry to set the register more than
once which causes test failure.
Signed-off-by: Bin Liu
---
drivers/usb/musb/musb_debugfs.c | 6 ++
1 file changed, 6 insertions(+)
dif
Added a safety net to make sure that
composite_disconnect does not end up disconneting
a NULL device. Prevents NULL pointer crash.
Signed-off-by: Badhri Jagan Sridharan
---
drivers/usb/gadget/composite.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/usb/gadget/composite.c b/dr
On Fri, Mar 20, 2015 at 10:16:49AM -0400, Alan Stern wrote:
> Peter:
>
> Are there any known errata for the root-hub Transaction Translator in
> the Freescale host controllers?
>
> When debugging some problems in an i.MX51 system, I found that the host
> controller would never issue more than 4
On 3/20/2015 8:35 AM, Mian Yousaf Kaukab wrote:
> Hi,
> This patchset consists of some bug fixes and feature enhancements for
> the dwc2 driver. All the patches are verified on dwc2 v3.0a with
> dedicated fifos. Main focus of testing was with dma enabled. Although
> basic testing without dma was al
On Fri, Mar 20, 2015 at 01:08:25PM +0200, Roger Quadros wrote:
> On 20/03/15 11:46, Roger Quadros wrote:
> > On 20/03/15 09:18, Peter Chen wrote:
> >> On Thu, Mar 19, 2015 at 04:50:31PM +0200, Roger Quadros wrote:
> >>> On 19/03/15 16:09, Li Jun wrote:
> On Thu, Mar 19, 2015 at 12:14:39PM +020
Hi,
On Sat, Mar 21, 2015 at 3:11 AM, Hans de Goede wrote:
> This is based on initial code to get the Allwinner sunxi musb controller
> supported by Chen-Yu Tsai and Roman Byshko.
>
> This adds support for the Allwinner sunxi musb controller in both host only
> and otg mode. Peripheral only mode i
RNDIS function has a limitation on the number of allowed instances.
So far it has been RNDIS_MAX_CONFIGS, which happens to be one.
In order to eliminate this kind of arbitrary limitation we should not
preallocate a predefined (RNDIS_MAX_CONFIGS) array of struct rndis_params
instances but instead al
On Thu, Mar 19, 2015 at 04:50:31PM +0200, Roger Quadros wrote:
> On 19/03/15 16:09, Li Jun wrote:
> > On Thu, Mar 19, 2015 at 12:14:39PM +0200, Roger Quadros wrote:
> >> On 19/03/15 05:30, Peter Chen wrote:
> >>> On Wed, Mar 18, 2015 at 03:55:56PM +0200, Roger Quadros wrote:
> The OTG state ma
Hi Chanwoo,
On 03/19/2015 09:50 PM, Chanwoo Choi wrote:
> Hi Roger,
>
> On Thu, Mar 19, 2015 at 11:45 PM, Roger Quadros wrote:
>> On 19/03/15 14:19, George Cherian wrote:
>>> Hi Robert,
>>>
>>> +Roger
>>> On Thu, Mar 19, 2015 at 5:37 PM, Robert Baldyga
>>> wrote:
Hi George,
On 0
Hi Robert,
On 03/20/2015 04:25 PM, Robert Baldyga wrote:
> Hi Chanwoo,
>
> On 03/19/2015 09:50 PM, Chanwoo Choi wrote:
>> Hi Roger,
>>
>> On Thu, Mar 19, 2015 at 11:45 PM, Roger Quadros wrote:
>>> On 19/03/15 14:19, George Cherian wrote:
Hi Robert,
+Roger
On Thu, Mar 19, 2015
On Thu, Mar 19, 2015 at 12:18:55PM +0200, Roger Quadros wrote:
> On 19/03/15 05:40, Peter Chen wrote:
> > On Wed, Mar 18, 2015 at 03:55:57PM +0200, Roger Quadros wrote:
> >> The OTG core instantiates the OTG Finite State Machine
> >> per OTG controller and manages starting/stopping the
> >> host an
Abn URB may be may marked free only after the buffer has been
processed or there is a small window during which it could
be submitted on another CPU and overwrite an unprocessed buffer
Signed-off-by: Oliver Neukum
---
drivers/usb/class/cdc-acm.c | 12 ++--
1 file changed, 10 insertions(+
From: Li Jun
Current otg fsm timers are using controller 1ms irq and count it, this patch
is to replace it with hrtimer solution, use one hrtimer for all otg timers.
Signed-off-by: Li Jun
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/ci.h | 10 +-
drivers/usb/chipidea/otg_fsm.c | 3
From: Li Jun
Since BSV irq is enabled for B-device all the time, so B_SESS_VLD timer
is not required, and also no need to check BSV status when B_ASE0_BRST
timer timeout.
Signed-off-by: Li Jun
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/otg_fsm.c | 31 +--
d
From: Li Jun
B_DATA_PLS(data-line pulse time) and B_SSEND_SRP(session end to SRP init) are
also from OTG&EH 2.0 Specification and they are not chipidea specific.
Signed-off-by: Li Jun
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/otg_fsm.c | 8
drivers/usb/chipidea/otg_fsm.h |
From: Andy Shevchenko
This patch introduces USB_CHIPIDEA_PCI and USB_CHIPIDEA_OF Kconfig options, one
per each specific glue driver. This is needed to provide different dependencies
they have.
Signed-off-by: Andy Shevchenko
Signed-off-by: Peter Chen
---
drivers/usb/chipidea/Kconfig | 10
Hi Greg,
There are two updates in this set, one for build error found
by kbuild test robot, the other is using hrtimer to replace
hardware 1ms timer for OTG fsm.
Andy Shevchenko (2):
chipidea: introduce specific Kconfig options for glue drivers
chipidea: pci: make it depends on NOP_USB_XCEIV
From: Andy Shevchenko
After commit ba1aff67f99a (chipidea: pci: register nop PHY) the PCI glue driver
requires nop-PHY to be selected. Thus, make it an explicit dependency.
Reported-by: kbuild test robot
Fixes: ba1aff67f99a (chipidea: pci: register nop PHY)
Signed-off-by: Andy Shevchenko
Signe
Chanwoo & Robert,
On 20/03/15 09:45, Chanwoo Choi wrote:
> Hi Robert,
>
> On 03/20/2015 04:25 PM, Robert Baldyga wrote:
>> Hi Chanwoo,
>>
>> On 03/19/2015 09:50 PM, Chanwoo Choi wrote:
>>> Hi Roger,
>>>
>>> On Thu, Mar 19, 2015 at 11:45 PM, Roger Quadros wrote:
On 19/03/15 14:19, George Che
On Thu, 2015-03-19 at 20:36 -0700, Keith Packard wrote:
> This is a hardware random number generator. The driver provides both a
> /dev/chaoskeyX entry and hooks the entropy source up to the kernel
> hwrng interface. More information about the device can be found at
It looks good to me.
R
On 20/03/15 09:45, Peter Chen wrote:
> On Thu, Mar 19, 2015 at 12:18:55PM +0200, Roger Quadros wrote:
>> On 19/03/15 05:40, Peter Chen wrote:
>>> On Wed, Mar 18, 2015 at 03:55:57PM +0200, Roger Quadros wrote:
The OTG core instantiates the OTG Finite State Machine
per OTG controller and ma
>
> - Registering an OTG capable controller
> - Registering Host and Gadget controllers to OTG core
> - Providing inputs to and kicking the OTG state machine
>
> TODO:
> - sysfs interface to allow application inputs to OTG state machine
> - otg class?
> >>>
On Thu, 2015-03-19 at 20:25 -0700, Keith Packard wrote:
> > That is a violation of the DMA rules on non-coherent architectures.
> > The buffer must be allocated separately.
>
> Ok, I'm not sure I understand the reasoning given that both come from
> kmalloc, but that's easy to do.
That happens on
On 20/03/15 09:18, Peter Chen wrote:
> On Thu, Mar 19, 2015 at 04:50:31PM +0200, Roger Quadros wrote:
>> On 19/03/15 16:09, Li Jun wrote:
>>> On Thu, Mar 19, 2015 at 12:14:39PM +0200, Roger Quadros wrote:
On 19/03/15 05:30, Peter Chen wrote:
> On Wed, Mar 18, 2015 at 03:55:56PM +0200, Roge
On 20/03/15 08:32, Peter Chen wrote:
> On Thu, Mar 19, 2015 at 01:38:32PM +0200, Roger Quadros wrote:
>> On 18/03/15 21:49, Alan Stern wrote:
>>> On Wed, 18 Mar 2015, Roger Quadros wrote:
>>>
To support OTG we want a mechanism to start and stop
the HCD from the OTG state machine. Add usb_
During the entry intro suspend a misleading message can be
printed. Surpress it by checking the specific error.
Signed-off-by: Oliver Neukum 0
---
drivers/usb/class/cdc-acm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-ac
A step on the road to passing status as a parameter
Signed-off-by: Oliver Neukum
---
drivers/usb/class/cdc-acm.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 43cb058..3e15add 100644
--- a/drivers/usb/cl
On 20/03/15 11:46, Roger Quadros wrote:
> On 20/03/15 09:18, Peter Chen wrote:
>> On Thu, Mar 19, 2015 at 04:50:31PM +0200, Roger Quadros wrote:
>>> On 19/03/15 16:09, Li Jun wrote:
On Thu, Mar 19, 2015 at 12:14:39PM +0200, Roger Quadros wrote:
> On 19/03/15 05:30, Peter Chen wrote:
>>
Commit a124820de5fd ("usb: isp1760: fix possible deadlock in
isp1760_udc_irq") replaced spin_{un,}lock with spin_{un,}lock_irq{save,restore}.
However it missed an error path resulting in the smatch warning as below:
drivers/usb/isp1760/isp1760-udc.c:1230 isp1760_udc_start() warn: inconsistent
ret
UTMI+ Low Pin Interface (ULPI) is a commonly used PHY
interface for USB 2.0. The ULPI specification describes a
standard set of registers which the vendors can extend for
their specific needs. ULPI PHYs provide often functions
such as charger detection and ADP sensing and probing.
There are two ma
On some BYT platforms the USB2 PHY needs to be put into
operational mode by the controller driver with GPIOs
controlling the PHYs reset and cs signals.
Signed-off-by: Heikki Krogerus
---
drivers/usb/dwc3/dwc3-pci.c | 35 +++
1 file changed, 35 insertions(+)
diff
Registers DWC3's ULPI interface with the ULPI bus when it's
available.
Signed-off-by: Heikki Krogerus
---
drivers/usb/dwc3/Kconfig | 7
drivers/usb/dwc3/Makefile | 4 +++
drivers/usb/dwc3/core.c | 14
drivers/usb/dwc3/core.h | 14
drivers/usb/dwc3/ulpi.c | 91
Lieing to user space is wrong. The real reason for a failure
to write should be returned to user space.
Signed-off-by: Oliver Neukum 0
---
drivers/usb/class/cdc-wdm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
inde
This makes sure the error handling path is the same for
all error conditions, thus reducing code duplication.
Signed-off-by: Oliver Neukum 0
---
drivers/usb/class/cdc-wdm.c | 31 ---
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/drivers/usb/class/cdc-
Values directly from descriptors given in debug statements
must be converted to native endianness.
Signed-off-by: Oliver Neukum
CC: sta...@vger.kernel.org
---
drivers/usb/class/cdc-wdm.c | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/class/cdc-wdm.c
> -Original Message-
> From: jwer...@google.com [mailto:jwer...@google.com] On Behalf Of Julius
> Werner
> Sent: Wednesday, March 18, 2015 11:43 PM
> To: Kaukab, Yousaf
> Cc: linux-usb@vger.kernel.org; Felipe Balbi; john.y...@synopsys.com; Herrero,
> Gregory; r.bald...@samsung.com; Dinh N
Oliver Neukum writes:
> This makes sure the error handling path is the same for
> all error conditions, thus reducing code duplication.
Great! This looks like I nice cleanup. Will test it out. Just a quick
comment based on the first glance:
> outnl:
> return rv < 0 ? rv : count;
How
> -Original Message-
> From: John Youn [mailto:john.y...@synopsys.com]
> Sent: Thursday, March 19, 2015 11:55 PM
> To: Kaukab, Yousaf; John Youn; linux-usb@vger.kernel.org; ba...@ti.com
> Cc: Herrero, Gregory; r.bald...@samsung.com;
> dingu...@opensource.altera.com; zhangfei@linaro.or
Peter:
Are there any known errata for the root-hub Transaction Translator in
the Freescale host controllers?
When debugging some problems in an i.MX51 system, I found that the host
controller would never issue more than 4 full-speed isochronous packets
in any frame, no matter how many siTDs were
Hi Sudeep,
Thank you for the patch.
On Friday 20 March 2015 11:42:17 Sudeep Holla wrote:
> Commit a124820de5fd ("usb: isp1760: fix possible deadlock in
> isp1760_udc_irq") replaced spin_{un,}lock with
> spin_{un,}lock_irq{save,restore}. However it missed an error path resulting
> in the smatch wa
On Fri, 2015-03-20 at 15:02 +0100, Bjørn Mork wrote:
> Oliver Neukum writes:
>
> > This makes sure the error handling path is the same for
> > all error conditions, thus reducing code duplication.
>
> Great! This looks like I nice cleanup. Will test it out. Just a quick
> comment based on the
memset() to 0 interfaces array before reusing
usb_configuration structure.
This commit fix bug:
ln -s functions/acm.1 configs/c.1
ln -s functions/acm.2 configs/c.1
ln -s functions/acm.3 configs/c.1
echo "UDC name" > UDC
echo "" > UDC
rm configs/c.1/acm.*
rmdir functions/*
mkdir functions/ecm.usb0
Hi Laurent,
On 20/03/15 14:20, Laurent Pinchart wrote:
Hi Sudeep,
Thank you for the patch.
On Friday 20 March 2015 11:42:17 Sudeep Holla wrote:
Commit a124820de5fd ("usb: isp1760: fix possible deadlock in
isp1760_udc_irq") replaced spin_{un,}lock with
spin_{un,}lock_irq{save,restore}. However
Oliver Neukum writes:
> On Fri, 2015-03-20 at 15:02 +0100, Bjørn Mork wrote:
>> Oliver Neukum writes:
>>
>> > This makes sure the error handling path is the same for
>> > all error conditions, thus reducing code duplication.
>>
>> Great! This looks like I nice cleanup. Will test it out. Jus
Hi,
This patchset consists of some bug fixes and feature enhancements for
the dwc2 driver. All the patches are verified on dwc2 v3.0a with
dedicated fifos. Main focus of testing was with dma enabled. Although
basic testing without dma was also done.
This is based on testing/next branch in Felipe's
Dump all registers to take a complete snapshot of dwc2 state.
Code is inspired by dwc3/debugfs.c
Signed-off-by: Mian Yousaf Kaukab
---
drivers/usb/dwc2/core.h| 1 +
drivers/usb/dwc2/debugfs.c | 357 +
2 files changed, 358 insertions(+)
diff --gi
Prepare to add more debug code. Moreover, don't save dentry * for
each file in struct dwc2_hsotg as clean up is done with
debugfs_remove_recursive(). s3c_hsotg_delete_debug() is removed
altogether for the same reason.
Signed-off-by: Mian Yousaf Kaukab
---
drivers/usb/dwc2/Makefile | 4 +
dri
From: Gregory Herrero
When suspending usb bus, phy driver may disable controller power.
In this case, registers need to be saved on suspend and restored
on resume.
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/core.c | 377
drivers/usb/dwc
From: Gregory Herrero
During suspend, there could a race condition between ep_queue and
suspend interrupt if lx_state is updated after releasing spinlock in
call_gadget(hsotg, suspend).
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/core_intr.c | 11 ---
1 file changed, 8 insertio
From: Gregory Herrero
Allow controller to enter in hibernation during usb bus suspend and
inform both phy and gadget about the suspended state.
While in hibernation, the controller can't detect the resume condition.
An external mechanism must call usb_phy_set_suspend on resume.
Exit hibernation w
There is no need for dwc2_pci to depend on dwc2 configuration
Signed-off-by: Mian Yousaf Kaukab
---
drivers/usb/dwc2/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/Makefile b/drivers/usb/dwc2/Makefile
index 1547002..de65b94 100644
--- a/drivers/usb/
From: Gregory Herrero
Nothing to be done in pm suspend/resume when controller is in L2.
Don't disconnect or reset. State is already saved when putting
controller in hibernation and will be restored on USB bus resume.
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/gadget.c | 6 ++
1 fi
So the parameters can be used in both host and gadget modes.
Also consolidate param functions in the core.h
Signed-off-by: Mian Yousaf Kaukab
---
drivers/usb/dwc2/core.c | 19 +++
drivers/usb/dwc2/core.h | 13 ++---
drivers/usb/dwc2/hcd.c | 36 +--
If phy driver is present register hcd handle to it.
Signed-off-by: Mian Yousaf Kaukab
---
drivers/usb/dwc2/hcd.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index cc6f394..36f0c69 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/
From: Gregory Herrero
During urb_enqueue, if the urb can't be queued to the endpoint,
the urb is freed without any spinlock protection.
This leads to memory corruption when concurrent urb_dequeue try to free
same urb->hcpriv.
Thus, ensure the whole urb_enqueue in spinlocked.
Signed-off-by: Grego
From: Gregory Herrero
ResetDet interrupt is used to detect a reset of the bus
while the controller is suspended.
This may happens for example when using Command Verifier.
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/gadget.c | 19 ---
1 file changed, 16 insertions(+), 3
From: Gregory Herrero
Align buffer must be allocated using kmalloc since irqs are disabled.
Coherency is handled through dma_map_single which can be used with irqs
disabled.
Signed-off-by: Gregory Herrero
---
drivers/usb/dwc2/hcd.c | 8 +---
drivers/usb/dwc2/hcd_intr.c | 10 +++
94 matches
Mail list logo