Re: lan78xx: About 8000 usb interrupts per second when idle

2019-04-14 Thread Paul Zimmerman
Lukas Wunner wrote: > On Tue, Apr 09, 2019 at 09:28:16AM +, Minas Harutyunyan wrote: >> Am 09.04.19 um 08:54 schrieb Jisheng Zhang: >>> The second one: 8000 usb interrupts per second when idle. >>> This is abnormal. any idea? Is it due to the lan78xx? >> >> dwc2 in host mode enable SOF interrup

Re: [RFT/PATCH 18/38] usb: dwc3: gadget: check for Missed Isoc from event status

2018-05-30 Thread Paul Zimmerman
Hi Felipe, Felipe Balbi writes: < snip > > thinking about this a little more. This extra list_empty() check is > not wrong at all :-) I've amended this series with the 3 patches > below. I'll resend the series once I've given more time for people to > test. Patches have been updated to the bran

Re: howto debug xhci driver?

2018-03-20 Thread Paul Zimmerman
Forgot to CC linux-usb. Forwarded Message Subject: Re: howto debug xhci driver? Date: Tue, 20 Mar 2018 13:56:21 -0700 From: Paul Zimmerman To: Bin Liu CC: Felipe Balbi Hi, Bin Liu writes: Bin Liu writes: BTY, the issue I am trying to debug is when reading bulk IN data

Re: Leak of queue heads in DWC2 driver?

2018-03-14 Thread Paul Zimmerman
On Tue, 13 Mar 2018 06:22:30 +, Minas Harutyunyan wrote: > Hi Paul, > > On 3/13/2018 6:26 AM, Paul Zimmerman wrote: > > Hi Minas, > > > > While ‌looking at the QH queuing in the DWC2 driver, I think I've found > > some places where the QH struct may n

Re: High CPU load produced by USB (DW2)

2018-03-12 Thread Paul Zimmerman
On Tue, 13 Mar 2018 06:11:06 +, Minas Harutyunyan wrote: > Hi Paul, > > On 3/13/2018 2:39 AM, Paul Zimmerman wrote: > > On Mon, 12 Mar 2018 12:06:55 +, Minas Harutyunyan > > wrote: > > > >> Hi Paul, > >> > >> Nice to hear you ag

Leak of queue heads in DWC2 driver?

2018-03-12 Thread Paul Zimmerman
Hi Minas, While ‌looking at the QH queuing in the DWC2 driver, I think I've found some places where the QH struct may not be freed. Normally, the sequence is: dwc2_hcd_qh_unlink(); < other stuff > dwc2_hcd_qh_free(); or else: dwc2_hcd_qh_unlink(); < other

Re: High CPU load produced by USB (DW2)

2018-03-12 Thread Paul Zimmerman
On Mon, 12 Mar 2018 12:06:55 +, Minas Harutyunyan wrote: > Hi Paul, > > Nice to hear you again! Hope you are doing well. Thanks, same to you. > On 3/8/2018 1:51 PM, Paul Zimmerman wrote: > > On 03/06/2018 09:09 AM, Minas Harutyunyan wrote: > >> Driver debug l

Re: High CPU load produced by USB (DW2)

2018-03-08 Thread Paul Zimmerman
On 03/06/2018 09:09 AM, Minas Harutyunyan wrote: > Hi, > > On 3/6/2018 10:45 AM, Minas Harutyunyan wrote: >> Hi, >> >> On 3/5/2018 11:14 PM, Marek Vasut wrote: >>> On 02/20/2018 06:51 AM, Minas Harutyunyan wrote: >>> [...] >>> Is there a way to reduce that or is that the absolute minimum in HS

Re: stopping and starting a functionfs USB-device causes panic

2017-11-04 Thread Paul Zimmerman
andy_purc...@keysight.com wrote: >>> >>> I have a second issue with a functionfs USB-device implementation. >>> >>> The scenario is this: >>> 1) USB-device app starts up, runs fine >>> 2) ssh to the device, kill the app with CTRL-C >>> 3) try to start the USB-device app 2nd time >>> >>> PANIC >>> >

Re: g_mass_storage emulation of flash drive - difficulties with passing vendor/product ID

2017-07-08 Thread Paul Zimmerman
Alan Robertson wrote: > On Sat, Jul 8, 2017 at 4:52 PM, Alan Stern wrote: >> On Sat, 8 Jul 2017, Alan Robertson wrote: >> >>> On Sat, Jul 8, 2017 at 2:04 AM, Alan Stern >>> wrote: < snip > >>> > Did you try enabling verbose debugging in g_mass_storage? This >>> > requires setting CONFIG_USB_

Re: [PATCH 2/3] usb: dwc3: gadget: Fix early exit in set/clear ep halt

2017-06-13 Thread Paul Zimmerman
On Tue, 13 Jun 2017 21:57:42 +, John Youn wrote: > On 6/13/2017 2:39 PM, Paul Zimmerman wrote: > > On Tue, 13 Jun 2017 18:33:09 +, John Youn > > wrote: > > > >> On 6/13/2017 12:32 AM, Felipe Balbi wrote: > >>> > >>> Hi, > >&

Re: [PATCH 2/3] usb: dwc3: gadget: Fix early exit in set/clear ep halt

2017-06-13 Thread Paul Zimmerman
On Tue, 13 Jun 2017 18:33:09 +, John Youn wrote: > On 6/13/2017 12:32 AM, Felipe Balbi wrote: > > > > Hi, > > > > Thinh Nguyen writes: > this could be, I don't remember if I checked this or not :-) > > Really, the best way here, IMHO, would be to re-ver

Re: [PATCH 2/3] usb: dwc3: gadget: Fix early exit in set/clear ep halt

2017-06-02 Thread Paul Zimmerman
Forgot to CC linux-usb, doing that now On Fri, 2 Jun 2017 16:27:56 -0700, Paul Zimmerman wrote: > Felipe Balbi writes: > > Thinh Nguyen writes: > >>>>>> this could be, I don't remember if I checked this or not :-) > >>>>>> > >>&

Re: [PATCH 30/62] usb: dwc3: gadget: loop while (timeout)

2016-06-06 Thread Paul Zimmerman
Felipe Balbi writes: > instead of having infinite loop and always checking > timeout value as a break condition, we can just > decrement timeout inside while's condition. > > Signed-off-by: Felipe Balbi > --- > drivers/usb/dwc3/gadget.c | 18 ++ > 1 file changed, 6 insertions(+

Re: [PATCH 11/22] usb: dwc3: gadget: clear LST from previous TRB on Update Transfer

2016-05-18 Thread Paul Zimmerman
Felipe Balbi writes: > If we're going to issue a Update Transfer command, > let's clear LST bit from previous TRB. This will let > us continue processing TRBs and convert previous IRQ > into XferInProgress, instead of XferComplete. > > Signed-off-by: Felipe Balbi > --- > drivers/usb/dwc3/gadge

Re: [PATCH 2/3] xhci: handle no ping response error properly

2015-10-09 Thread Paul Zimmerman
Sorry, resending as plain text. On Fri, Oct 9, 2015, Mathias Nyman wrote: > + handling_skipped_tds = ep->skip && > + (trb_comp_code != COMP_MISSED_INT || ^^ I think this should be &&, shouldn't it? > + trb_comp_code != COMP_PING_ERR); -- Paul -- To unsubscribe from this list: send the line

Re: mass storage behaviour

2015-10-06 Thread Paul Zimmerman
On Tue, Oct 6, 2015 at 10:01 AM, Alan Stern wrote: > On Tue, 6 Oct 2015, Felipe Balbi wrote: > >> >> In my experience, you need to do at least the following to get max >> >> performance from the mass storage gadget: >> >> >> >> - Use Windows 8 or higher on the host. It's much faster than Linux. >

Re: mass storage behaviour

2015-10-05 Thread Paul Zimmerman
On Mon, 5 Oct 2015, Alan Stern wrote: > On Mon, 5 Oct 2015, Paul Jones wrote: > >>> Increasing the max_sectors_kb value, on the other hand, might remove >>> overhead by allowing a higher percentage of the transfer to consist of >>> real data as opposed to CBW and CSW packets. This depends to some

Re: Overly conservative xHCI bandwidth estimation

2015-09-24 Thread Paul Zimmerman
Yep, that's the one. -- Paul On Thu, Sep 24, 2015 at 2:37 PM, Steinar H. Gunderson wrote: > On Thu, Sep 24, 2015 at 02:33:06PM -0700, Paul Zimmerman wrote: >> IIRC, at least some of the Intel controllers require the bandwidth >> calculations to be done by the xHCI driver,

Re: Overly conservative xHCI bandwidth estimation

2015-09-24 Thread Paul Zimmerman
IIRC, at least some of the Intel controllers require the bandwidth calculations to be done by the xHCI driver, instead of doing it themselves in hardware. Perhaps you're tripping over a bug in the xHCI driver? Mathias is probably best the one to comment on this. -- Paul -- To unsubscribe from thi

[PATCH RESEND] MAINTAINERS: update maintainer entry for dwc2 driver

2015-01-15 Thread Paul Zimmerman
Update the MAINTAINERS entry for the dwc2 driver to show John Youn as the new maintainer Signed-off-by: Paul Zimmerman --- Resending with linux-usb and linux-kernel in CC MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

RE: [PATCH] MAINTAINERS: update maintainer entry for dwc2 driver

2015-01-15 Thread Paul Zimmerman
Adding linux-usb and linux-kernel to CC. -- Paul > -Original Message- > From: Paul Zimmerman > Sent: Thursday, January 15, 2015 11:44 AM > To: gre...@linuxfoundation.org; ba...@ti.com; John Youn > (johny...@synopsys.com) > Cc: 'r.bald...@samsung.com'; &#x

[PATCH] Revert "usb: dwc2: add bus suspend/resume for dwc2"

2015-01-15 Thread Paul Zimmerman
/resume on platforms where it does work correctly. Signed-off-by: Paul Zimmerman --- Based on Felipe's testing/next branch. drivers/usb/dwc2/hcd.c | 88 ++-- 1 files changed, 11 insertions(+), 77 deletions(-) diff --git a/drivers/usb/dwc2/hc

[PATCH] usb: phy: make GPIOs optional for the generic phy

2015-01-14 Thread Paul Zimmerman
>From 47bd18e210fecf701d493c27884e13c69bc449ea Mon Sep 17 00:00:00 2001 From: Paul Zimmerman Date: Wed, 14 Jan 2015 18:15:58 -0800 Subject: [PATCH] usb: phy: make GPIOs optional for the generic phy The use of GPIOs should be optional for the generic phy, otherwise the Altera SOCFPGA platform

RE: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Wednesday, January 14, 2015 2:50 PM > > On Wed, Jan 14, 2015 at 10:45:26PM +, Paul Zimmerman wrote: > > > From: Felipe Balbi [mailto:ba...@ti.com] > > > Sent: Wednesday, January 14, 2015 2:40 PM > > > &

RE: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Wednesday, January 14, 2015 2:40 PM > > On Wed, Jan 14, 2015 at 10:28:54PM +, Paul Zimmerman wrote: > > > From: Felipe Balbi [mailto:ba...@ti.com] > > > Sent: Wednesday, January 14, 2015 1:46 PM > > > &

RE: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Wednesday, January 14, 2015 1:46 PM > > On Wed, Jan 14, 2015 at 04:41:23PM -0500, Alan Stern wrote: > > > > > This is really, really odd. Register accesses are atomic, so the lock > > > > > isn't really doing anything. Besides, you're calling > >

RE: [PATCH v2] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-14 Thread Paul Zimmerman
's issue, it's certainly a harmless patch, so Acked-by: Paul Zimmerman But I suspect Felipe will want a better changelog, I don't think just a URL is good enough. -- Paul > --- > > Changelog: > > v2: > - fixed comment from Paul Zimmerman > > v1: https://l

RE: [PATCH] usb: dwc2: call dwc2_is_controller_alive() under spinlock

2015-01-13 Thread Paul Zimmerman
> From: Robert Baldyga [mailto:r.bald...@samsung.com] > Sent: Tuesday, January 13, 2015 2:58 AM > > This patch fixes bug described here: > https://lkml.org/lkml/2014/12/22/185 > > Signed-off-by: Robert Baldyga > --- > drivers/usb/dwc2/core_intr.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 d

RE: New maintainer for dwc2

2015-01-12 Thread Paul Zimmerman
> From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Monday, January 12, 2015 5:02 PM > > On Mon, Jan 12, 2015 at 11:14:54PM +, Paul Zimmerman wrote: > > Hi everyone, > > > > I will be leaving Synopsys on Friday, Jan 16th, so the d

RE: [PATCH v7 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2015-01-12 Thread Paul Zimmerman
> From: Paul Zimmerman > Sent: Saturday, January 10, 2015 3:52 PM > > > From: Yunzhi Li [mailto:l...@rock-chips.com] > > Sent: Saturday, January 10, 2015 8:07 AM > > > > 在 2015/1/9 10:15, Paul Zimmerman 写道: > > >> [...] > > >>

New maintainer for dwc2

2015-01-12 Thread Paul Zimmerman
Hi everyone, I will be leaving Synopsys on Friday, Jan 16th, so the dwc2 driver will need a new maintainer. I am recommending John Youn as the new maintainer. On the plus side, John has quite a bit of experience with the dwc2 controller, and has previous experience submitting kernel patches (fo

RE: dwc2: problems with IN requests completion in linux-next

2015-01-12 Thread Paul Zimmerman
> From: Robert Baldyga [mailto:r.bald...@samsung.com] > Sent: Monday, December 22, 2014 6:13 AM > > I have recently noticed problem with DWC2 driver in latest linux-next. I > use it in gadget only mode at Samsung platform (Odroid U3) but I believe > the bug can be reproduced at another platforms.

RE: [PATCH v3 00/30] usb: updates for dwc2 gadget driver

2015-01-12 Thread Paul Zimmerman
> usb: dwc2: gadget: report disconnection after reset > > Documentation/devicetree/bindings/usb/dwc2.txt | 4 + > drivers/usb/dwc2/core.h | 46 +- > drivers/usb/dwc2/gadget.c | 792 > - > drivers/usb/dwc2

RE: [PATCH v7 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2015-01-10 Thread Paul Zimmerman
> From: Yunzhi Li [mailto:l...@rock-chips.com] > Sent: Saturday, January 10, 2015 8:07 AM > > 在 2015/1/9 10:15, Paul Zimmerman 写道: > >> [...] > >>/* > >> - * Attempt to find a generic PHY, then look for an old style > >> - * USB PHY, finally

RE: [PATCH v3 00/30] usb: updates for dwc2 gadget driver

2015-01-09 Thread Paul Zimmerman
CCing more of the Samsung folks and linux-kernel. Robert, Marek, can you test this series on your platform, please? If I don't hear from you soon, I'll just ack it and we can deal with any breakage later. -- Paul > From: Mian Yousaf Kaukab [mailto:yousaf.kau...@intel.com] > Sent: Friday, Januar

RE: [PATCH v7 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2015-01-08 Thread Paul Zimmerman
> From: Yunzhi Li [mailto:l...@rock-chips.com] > Sent: Friday, December 12, 2014 7:10 AM > > Get PHY parameters from devicetree and power off usb PHY during > system suspend. > > Signed-off-by: Yunzhi Li > Acked-by: Paul Zimmerman > > --- > > Chang

RE: [PATCH v3] usb: dwc2: add bus suspend/resume for dwc2

2015-01-05 Thread Paul Zimmerman
/patch/5325111/ > > Thanks, > > - Kever > On 01/06/2015 09:23 AM, Paul Zimmerman wrote: > >> From: Kever Yang [mailto:kever.y...@rock-chips.com] > >> Sent: Wednesday, November 12, 2014 4:42 PM > >> > >> On 11/13/2014 07:22 AM, Doug Anderson wrote: >

RE: [PATCH v3] usb: dwc2: add bus suspend/resume for dwc2

2015-01-05 Thread Paul Zimmerman
gt;> We also update the lx_state for hsotg state. > >> > >> This patch has tested on rk3288 with suspend/resume. > >> > >> Signed-off-by: Kever Yang > >> Acked-by: Paul Zimmerman > >> --- > >> > >> Changes in v3: > &g

RE: [PATCH] drivers: usb: dwc2: remove 'force' parameter from kill_all_requests()

2015-01-05 Thread Paul Zimmerman
; s3c_hsotg_core_init_disconnected(hsotg); > s3c_hsotg_core_connect(hsotg); > @@ -2588,7 +2581,7 @@ static int s3c_hsotg_ep_disable(struct usb_ep *ep) > > spin_lock_irqsave(&hsotg->lock, flags); > /* terminate a

RE: [PATCH] usb: dwc2: add support for initial state for dual-role mode

2015-01-05 Thread Paul Zimmerman
> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Wednesday, December 17, 2014 5:50 AM > > DWC2 module on Exynos SoCs is used only as peripheral controller (UDC), > so add support for selecting default initial state for dual-role mode. The > default init mode can be overridden by

RE: [PATCH v2 00/30] usb: updates for dwc2 gadget driver

2015-01-05 Thread Paul Zimmerman
Adding Dinh to CC. Robert, Dinh, I would like to have your tested-bys for this series, please. -- Paul > From: Mian Yousaf Kaukab [mailto:yousaf.kau...@intel.com] > Sent: Friday, January 02, 2015 6:42 AM > > Hi, > This patchset consists of various bug fixes and feature enhancements for the > d

RE: query on DWC3

2014-12-13 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of sundeep subbaraya > Sent: Friday, December 12, 2014 9:13 PM > > Hi Felipe, > > In DWC3 driver, for three stage Control OUT transfer there is a check: > >else if (!IS_ALIGNED(req->request.length,

RE: [PATCH] usb: dwc2: gadget: kill requests with 'force' in s3c_hsotg_udc_stop()

2014-12-11 Thread Paul Zimmerman
> * @ep: The endpoint to check. > @@ -2933,7 +2937,7 @@ static int s3c_hsotg_udc_stop(struct usb_gadget *gadget, > > /* all endpoints should be shutdown */ > for (ep = 1; ep < hsotg->num_of_eps; ep++) > - s3c_hsotg_ep_disable(&hsotg->eps[ep].ep); > + s3c_hsotg_ep_disable_force(&hsotg->eps[ep].ep, true); > > spin_lock_irqsave(&hsotg->lock, flags); > Acked-by: Paul Zimmerman -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: [PATCH v3 3/5] usb: dwc2: add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-08 Thread Paul Zimmerman
+ } else { > + if (dwc2->lx_state == DWC2_L0) > + return 0; > + phy_exit(dwc2->phy); > + phy_power_off(dwc2->phy); > + > + } > return ret; > } > > @@ -241,8 +268,13 @@ static int __maybe_unused dwc2_resume(struc

RE: [PATCH v2 3/5] usb: dwc2: Add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-08 Thread Paul Zimmerman
> From: Yunzhi Li [mailto:l...@rock-chips.com] > Sent: Sunday, December 07, 2014 7:58 PM > > On 2014/12/6 3:04, Paul Zimmerman wrote: > >> From: Yunzhi Li [mailto:l...@rock-chips.com] > >> Sent: Friday, December 05, 2014 4:52 AM > >> > >> Get PHY

RE: [PATCH v2 3/5] usb: dwc2: Add generic PHY framework support for dwc2 usb controler platform driver.

2014-12-05 Thread Paul Zimmerman
> From: Yunzhi Li [mailto:l...@rock-chips.com] > Sent: Friday, December 05, 2014 4:52 AM > > Get PHY parameters from devicetree and power off usb PHY during > system suspend. > > Signed-off-by: Yunzhi Li > --- > > drivers/usb/dwc2/gadget.c | 33 - > drivers/us

RE: [PATCH] usb: gadget: zero: fix INT endpoint assignment

2014-11-25 Thread Paul Zimmerman
> From: Sebastian Andrzej Siewior [mailto:bige...@linutronix.de] > Sent: Tuesday, November 25, 2014 9:22 AM > > The max packet size within the FS descriptor has to be highest possible > value and _not_ the one that is (or will be) used on FS. > The way the code works (since day 1) is that usb_ep_a

RE: [PATCH] usb: gadget: USB3 support to the legacy printer driver

2014-11-18 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Felipe Balbi > Sent: Tuesday, November 18, 2014 12:47 PM > > On Tue, Nov 18, 2014 at 03:41:43PM -0500, Jorge Ramirez-Ortiz wrote: > > > > notice that the original PLX driver was still far from the theo

RE: [PATCH v3 1/2] usb: dwc2/gadget: add mutex to serialize init/deinit calls

2014-11-18 Thread Paul Zimmerman
c_hsotg_suspend(struct platform_device > *pdev, pm_message_t state) > clk_disable(hsotg->clk); > } > > + mutex_unlock(&hsotg->init_mutex); > + > return ret; > } > > @@ -3683,7 +3699,9 @@ static int s3c_hsotg_resume(struct platform_d

RE: [PATCH v5] usb: dwc2/gadget: rework disconnect event handling

2014-11-18 Thread Paul Zimmerman
TS); > + /* > + * Report disconnect if there is any previous session > established > + */ > + s3c_hsotg_disconnect(hsotg); > } > > if (gintsts & GINTSTS_ENUMDONE) { > writel(GINTSTS_ENUMDONE, hsotg->

RE: [PATCH v4] usb: dwc2/gadget: rework disconnect event handling

2014-11-14 Thread Paul Zimmerman
> From: Paul Zimmerman > Sent: Friday, November 14, 2014 1:21 PM > > > From: linux-usb-ow...@vger.kernel.org > > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Felipe Balbi > > Sent: Friday, November 14, 2014 11:05 AM > > > > On Fri, Nov 14, 2014 at

RE: [PATCH v4] usb: dwc2/gadget: rework disconnect event handling

2014-11-14 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Felipe Balbi > Sent: Friday, November 14, 2014 11:05 AM > > On Fri, Nov 14, 2014 at 07:01:37PM +, Paul Zimmerman wrote: > > > -Original Message- >

RE: [PATCHv7 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-11-14 Thread Paul Zimmerman
> From: dingu...@opensource.altera.com [mailto:dingu...@opensource.altera.com] > Sent: Tuesday, November 11, 2014 9:14 AM > > From: Dinh Nguyen > > Since the dwc2 hcd driver is currently not looking for a clock node during > init, we should not completely fail if there isn't a clock provided. >

RE: [PATCHv7 7/8] usb: dwc2: move usb_disabled() call to host driver only

2014-11-14 Thread Paul Zimmerman
> @@ -157,9 +157,6 @@ static int dwc2_driver_probe(struct platform_device *dev) > int retval; > int irq; > > - if (usb_disabled()) > - return -ENODEV; > - > match = of_match_device(dwc2_of_match_table, &dev->dev); >

RE: [PATCHv7 5/8] usb: dwc2: Update common interrupt handler to call gadget interrupt handler

2014-11-14 Thread Paul Zimmerman
67b..3552602 100644 > --- a/drivers/usb/dwc2/platform.c > +++ b/drivers/usb/dwc2/platform.c > @@ -196,6 +196,14 @@ static int dwc2_driver_probe(struct platform_device *dev) > return irq; > } > > + dev_dbg(hsotg->dev, "registering common handler for irq%d\n", > + irq); > + retval = devm_request_irq(hsotg->dev, irq, > + dwc2_handle_common_intr, IRQF_SHARED, > + dev_name(hsotg->dev), hsotg); > + if (retval) > + return retval; > + > res = platform_get_resource(dev, IORESOURCE_MEM, 0); > hsotg->regs = devm_ioremap_resource(&dev->dev, res); > if (IS_ERR(hsotg->regs)) Acked-by: Paul Zimmerman -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: [PATCHv7 3/8] usb: dwc2: convert to use dev_pm_ops API

2014-11-14 Thread Paul Zimmerman
.driver = { > .name = dwc2_driver_name, > .of_match_table = dwc2_of_match_table, > + .pm = &dwc2_dev_pm_ops, > }, > .probe = dwc2_driver_probe, > .remove = dwc2_driver_remove, > - .suspend = dwc2_suspend, > -

RE: [PATCH v3] usb: dwc2: add bus suspend/resume for dwc2

2014-11-14 Thread Paul Zimmerman
> From: jwer...@google.com [mailto:jwer...@google.com] On Behalf Of Julius > Werner > Sent: Thursday, November 13, 2014 8:50 PM > > > I will figure out how to make dwc2 detect the device connect after auto > > suspend, > > or disable the auto suspend feature for the dwc2 hcd. > > I think auto-su

RE: [PATCH v3 1/2] usb: dwc2/gadget: add mutex to serialize init/deinit calls

2014-11-14 Thread Paul Zimmerman
> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Friday, November 14, 2014 1:19 AM > > On 2014-11-13 21:55, Paul Zimmerman wrote: > >> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > >> Sent: Thursday, November 13, 2014 7:18 AM >

RE: [PATCH v4] usb: dwc2/gadget: rework disconnect event handling

2014-11-14 Thread Paul Zimmerman
> -Original Message- > From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Friday, November 14, 2014 4:20 AM > > This patch adds a call to s3c_hsotg_disconnect() from 'end session' > interrupt (GOTGINT_SES_END_DET) to correctly notify gadget subsystem > about unplugged usb cab

RE: [PATCH v3 1/2] usb: dwc2/gadget: add mutex to serialize init/deinit calls

2014-11-13 Thread Paul Zimmerman
> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Thursday, November 13, 2014 7:18 AM > > On 2014-10-31 19:46, Paul Zimmerman wrote: > >> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > >> Sent: Friday, October 31, 2014 3:13 AM > >

RE: [PATCH v3] usb: dwc2/gadget: report disconnect event from 'end session' irq

2014-11-13 Thread Paul Zimmerman
> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Thursday, November 13, 2014 5:40 AM > > On 2014-10-31 19:15, Paul Zimmerman wrote: > >> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > >> Sent: Friday, October 31, 2014 1:04 AM > >&g

RE: Two questions about dwc2 driver

2014-11-11 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Haibo Zhang > Sent: Tuesday, November 11, 2014 6:37 AM > > We know that dwc2 is the USB2.0 driver for DesignWare IP. But it only > has host’s code without device’s code. So I have two questions: > 1.

RE: [PATCH v2] usb: dwc2: add bus suspend/resume for dwc2

2014-11-06 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Thursday, November 06, 2014 9:40 AM > > On Thu, Nov 06, 2014 at 06:21:42PM +0100, Romain Perier wrote: > > > > 2014-11-06 2:30 GMT+01:00 Kever Yang : > > > > > > +static int _dwc2_hcd_suspend(struct usb_hcd *hcd) > > > +{ > > > + struct dwc2

RE: [PATCHv6 4/8] usb: dwc2: Update common interrupt handler to call gadget interrupt handler

2014-10-31 Thread Paul Zimmerman
e interrupt conditions that was in gadget, as those are > > handled > > by dwc2 common interrupt handler. > > > > Signed-off-by: Dinh Nguyen > > Acked-by: Paul Zimmerman > > --- > > v5: remove individual devm_request_irq from gadget and hcd, and plac

RE: [PATCH v3 1/2] usb: dwc2/gadget: add mutex to serialize init/deinit calls

2014-10-31 Thread Paul Zimmerman
> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Friday, October 31, 2014 3:13 AM > > This patch adds mutex, which protects initialization and > deinitialization procedures against suspend/resume methods. > > Signed-off-by: Marek Szyprowski > --- > drivers/usb/dwc2/core.h |

RE: [PATCH v3] usb: dwc2/gadget: report disconnect event from 'end session' irq

2014-10-31 Thread Paul Zimmerman
> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Friday, October 31, 2014 1:04 AM > To: linux-usb@vger.kernel.org; linux-samsung-...@vger.kernel.org > Cc: Marek Szyprowski; Kyungmin Park; Robert Baldyga; Paul Zimmerman; > Krzysztof Kozlowski; Felipe Balbi >

RE: [PATCH] usb: dwc2: add bus suspend/resume for dwc2

2014-10-31 Thread Paul Zimmerman
> From: Kever Yang [mailto:kever.y...@gmail.com] On Behalf Of Kever Yang > Sent: Friday, October 31, 2014 7:03 AM > > This patch adds suspend/resume for dwc2 hcd controller. > > Signed-off-by: Kever Yang > --- > > drivers/usb/dwc2/hcd.c | 74 > ++---

RE: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-28 Thread Paul Zimmerman
> From: dingu...@opensource.altera.com [mailto:dingu...@opensource.altera.com] > Sent: Tuesday, October 28, 2014 4:26 PM > > Since the dwc2 hcd driver is currently not looking for a clock node during > init, we should not completely fail if there isn't a clock provided. > For dual-role mode, we wi

RE: [PATCHv6 8/8] usb: dwc2: move usb_disabled() call to host driver only

2014-10-28 Thread Paul Zimmerman
> From: dingu...@opensource.altera.com [mailto:dingu...@opensource.altera.com] > Sent: Tuesday, October 28, 2014 4:26 PM > > Now that platform.c will get built for both Host and Gadget, if we leave the > usb_disabled() call in platform.c, it results in the following build error > when (!USB && USB

RE: [PATCH v3 01/19] usb: dwc3: enable hibernation if to be supported

2014-10-28 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Tuesday, October 28, 2014 12:01 PM > > On Tue, Oct 28, 2014 at 06:55:50PM +, Paul Zimmerman wrote: > > > From: Felipe Balbi [mailto:ba...@ti.com] > > > Sent: Tuesday, October 28, 2014 11:51 AM > > > &

RE: [PATCH v3 01/19] usb: dwc3: enable hibernation if to be supported

2014-10-28 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Tuesday, October 28, 2014 11:51 AM > > On Tue, Oct 28, 2014 at 06:47:08PM +, Paul Zimmerman wrote: > > > From: Huang Rui [mailto:ray.hu...@amd.com] > > > Sent: Tuesday, October 28, 2014 4:54 AM > > &

RE: [PATCH v3 01/19] usb: dwc3: enable hibernation if to be supported

2014-10-28 Thread Paul Zimmerman
> From: Huang Rui [mailto:ray.hu...@amd.com] > Sent: Tuesday, October 28, 2014 4:54 AM > > It enables hibernation if the function is set in coreConsultant. > > Suggested-by: Felipe Balbi > Signed-off-by: Huang Rui > --- > drivers/usb/dwc3/core.c | 1 + > 1 file changed, 1 insertion(+) > > dif

RE: [PATCH v2 01/10] usb: dwc2/gadget: report disconnect event from 'end session' irq

2014-10-24 Thread Paul Zimmerman
> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Monday, October 20, 2014 3:46 AM > > This patch adds a call to s3c_hsotg_disconnect() from 'end session' > interrupt (GOTGINT_SES_END_DET) to correctly notify gadget subsystem > about unplugged usb cable. 'disconnected' interrupt (

RE: [PATCH v2 10/10] usb: dwc2/gadget: rework suspend/resume code to correctly restore gadget state

2014-10-24 Thread Paul Zimmerman
> From: Marek Szyprowski [mailto:m.szyprow...@samsung.com] > Sent: Monday, October 20, 2014 3:46 AM > > Suspend/resume code assumed that the gadget was always enabled and > connected to usb bus. This means that the actual state of the gadget > (soft-enabled/disabled or connected/disconnected) was

RE: [PATCH v2 09/10] usb: dwc2/gadget: fix calls to phy control functions in suspend/resume code

2014-10-24 Thread Paul Zimmerman
s3c_hsotg_phy_enable(hsotg); > + > + spin_lock_irqsave(&hsotg->lock, flags); > s3c_hsotg_core_init_disconnected(hsotg); > s3c_hsotg_core_connect(hsotg); > spin_unlock_irqrestore(&hsotg->lock, flags); Acked-by: Paul Zimmerman -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: [PATCH v2 08/10] usb: dwc2/gadget: use soft-disconnect udc feature in pullup() method

2014-10-24 Thread Paul Zimmerman
s3c_hsotg_pullup(struct usb_gadget *gadget, > int is_on) > spin_lock_irqsave(&hsotg->lock, flags); > if (is_on) { > clk_enable(hsotg->clk); > - s3c_hsotg_core_init_disconnected(hsotg); > s3c_hsotg_core_connect(hsotg); > } els

RE: [PATCH v2 07/10] usb: dwc2/gadget: move phy control calls out of pullup() method

2014-10-24 Thread Paul Zimmerman
> s3c_hsotg_core_connect(hsotg); > } else { > clk_disable(hsotg->clk); > - s3c_hsotg_phy_disable(hsotg); > } > > hsotg->gadget.speed = USB_SPEED_UNKNOWN; Acked-by: Paul Zimmerman -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: [PATCH v2 06/10] usb: dwc2/gadget: decouple setting soft-disconnect from s3c_hsotg_core_init

2014-10-24 Thread Paul Zimmerman
sotg->clk); > s3c_hsotg_phy_disable(hsotg); > @@ -3668,7 +3679,8 @@ static int s3c_hsotg_resume(struct platform_device > *pdev) > > spin_lock_irqsave(&hsotg->lock, flags); > s3c_hsotg_phy_enable(hsotg); > - s3c_hsotg_core_init(hsotg); >

RE: [PATCH v2 05/10] usb: dwc2/gadget: move setting last reset time to s3c_hsotg_core_init

2014-10-24 Thread Paul Zimmerman
d driver %s\n", driver->driver.name); > return 0; > > @@ -3667,7 +3667,6 @@ static int s3c_hsotg_resume(struct platform_device > *pdev) > } > > spin_lock_irqsave(&hsotg->lock, flags); > - hsotg->last_rst = jiffies; > s3c_hsotg_phy_enable(hsotg);

RE: [PATCH v2 02/10] usb: dwc2/gadget: fix enumeration issues

2014-10-24 Thread Paul Zimmerman
status = readl(hsotg->regs + GOTGCTL); > > - dev_info(hsotg->dev, "%s: USBRst\n", __func__); > + dev_dbg(hsotg->dev, "%s: USBRst\n", __func__); > dev_dbg(hsotg->dev, "GNPTXSTS=%08x\n", >

RE: [PATCHv5 7/7] usb: dwc2: Update Kconfig to support dual-role

2014-10-23 Thread Paul Zimmerman
> From: Bartlomiej Zolnierkiewicz [mailto:b.zolnier...@samsung.com] > Sent: Wednesday, October 22, 2014 5:26 AM > > On Monday, October 20, 2014 01:52:06 PM dingu...@opensource.altera.com wrote: > > From: Dinh Nguyen > > > > config USB_DWC2_PLATFORM > > bool "DWC2 Platform" > > - depends on

RE: [PATCH v2 03/10] usb: dwc2/gadget: fix gadget unregistration in udc_stop() function

2014-10-23 Thread Paul Zimmerman
ectly with both registering/unregistering gadgets > > and enabling/disabling gadgets by writing to > > /sys/class/udc/*hsotg/soft_connect interface. > > > > Signed-off-by: Marek Szyprowski > > Also here. In fact, this is much more important :-) Acked-by: Paul Zimmerman Are

RE: [PATCH v2 04/10] usb: dwc2/gadget: disable phy before turning off power regulators

2014-10-23 Thread Paul Zimmerman
e turned off as the last element in > > the device shutdown procedure. > > > > Signed-off-by: Marek Szyprowski > > Paul, can I have your Acked-by here so I can send this to v3.18-rc1 ? Sorry, I've been working on a really hot issue at $work and didn't have time ye

RE: [PATCH] usb: serial: Fix indentation style issue

2014-10-22 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Greg KH > Sent: Wednesday, October 22, 2014 7:19 AM > > On Wed, Oct 22, 2014 at 11:51:12AM +0200, Johan Hovold wrote: > > On Sat, Oct 11, 2014 at 07:20:49AM -0700, Greg Kroah-Hartman wrote: > > > On Sa

RE: [PATCHv5 2/7] usb: dwc2: Move gadget probe function into platform code

2014-10-22 Thread Paul Zimmerman
> From: Bartlomiej Zolnierkiewicz [mailto:b.zolnier...@samsung.com] > Sent: Wednesday, October 22, 2014 4:16 AM > > On Monday, October 20, 2014 01:52:01 PM dingu...@opensource.altera.com wrote: > > From: Dinh Nguyen > > > > This patch will aggregate the probing of gadget/hcd driver into platform.

RE: [PATCHv5 7/7] usb: dwc2: Update Kconfig to support dual-role

2014-10-22 Thread Paul Zimmerman
> From: Dinh Nguyen [mailto:dingu...@opensource.altera.com] > Sent: Tuesday, October 21, 2014 1:48 PM > > diff --git a/drivers/usb/dwc2/Kconfig b/drivers/usb/dwc2/Kconfig > index f93807b..1ea702e 100644 > --- a/drivers/usb/dwc2/Kconfig > +++ b/drivers/usb/dwc2/Kconfig > @@ -1,5 +1,5 @@ > config US

RE: [PATCH] usb: dwc2: allow dwc2 to get built when USB_GADGET=m

2014-10-22 Thread Paul Zimmerman
+++ b/drivers/usb/dwc2/Kconfig > @@ -1,6 +1,6 @@ > config USB_DWC2 > bool "DesignWare USB2 DRD Core Support" > - depends on USB > + depends on USB || USB_GADGET > help > Say Y here if your system has a Dual Role Hi-Speed USB > control

RE: [PATCH 18/28] usb: dwc3: ep0: fix Data Phase for transfer sizes aligned to wMaxPacketSize

2014-10-20 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of David Laight > Sent: Monday, October 20, 2014 2:48 AM > > From: Felipe Balbi > > According to Section 8.5.3.2 of the USB 2.0 specification, > > a USB device must terminate a Data Phase with either a >

RE: [PATCH 1/4] usb: dwc2: gadget: do not call usb_gadget_unregister_driver()

2014-10-20 Thread Paul Zimmerman
if (hsotg->driver) { > - /* should have been done already by driver model core */ > - usb_gadget_unregister_driver(hsotg->driver); > - } > - > clk_disable_unprepare(hsotg->clk); > > return 0; Looks good to me. Acked-by: Pa

RE: [PATCH v2 16/16] usb: dwc3: enable usb suspend phy

2014-10-20 Thread Paul Zimmerman
> From: Huang Rui [mailto:ray.hu...@amd.com] > Sent: Monday, October 20, 2014 2:01 AM > > On Mon, Oct 20, 2014 at 04:41:54PM +0800, Huang Rui wrote: > > On Fri, Oct 17, 2014 at 01:48:19PM -0500, Felipe Balbi wrote: > > > Hi, > > > > > > On Fri, Oct

RE: [PATCH v3 1/2] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-17 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Friday, October 17, 2014 11:52 AM > > On Fri, Oct 17, 2014 at 06:50:19PM +, Paul Zimmerman wrote: > > > From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > > > Sent: Thursday, October 16, 2014 9:44 PM >

RE: [PATCH v3 2/2] usb: dwc2: gadget: modify return statement

2014-10-17 Thread Paul Zimmerman
> From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > Sent: Thursday, October 16, 2014 9:44 PM > > modified the function to have a single return statement at the end > instead of multiple return statement in the middle of the function > to improve the readability of the code. > > This pat

RE: [PATCH v3 1/2] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-17 Thread Paul Zimmerman
t; } > > /* for non control endpoints, set PID to D0 */ > @@ -2579,6 +2581,7 @@ static int s3c_hsotg_ep_enable(struct usb_ep *ep, > /* enable the endpoint interrupt */ > s3c_hsotg_ctrl_epint(hsotg, index, dir_in, 1); > > +error: > spin_unlock_irqres

RE: [PATCH v2 16/16] usb: dwc3: enable usb suspend phy

2014-10-17 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Friday, October 17, 2014 8:00 AM > > On Fri, Oct 17, 2014 at 04:53:41PM +0800, Huang Rui wrote: > > AMD NL needs to suspend usb3 ss phy, but this doesn't enable on simulation > > board. > > > > Signed-off-by: Huang Rui > > --- > > drivers/usb/dw

RE: [PATCH v3 2/2] usb: dwc2: gadget: modify return statement

2014-10-17 Thread Paul Zimmerman
> From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > Sent: Friday, October 17, 2014 3:03 AM > > On Fri, Oct 17, 2014 at 09:02:00AM +, David Laight wrote: > > From: Of Sudip Mukherjee > > > modified the function to have a single return statement at the end > > > instead of multiple ret

RE: [PATCH V2] USB: dwc2: add support for the reset_controller api

2014-10-16 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of John Crispin > Sent: Thursday, October 16, 2014 1:34 PM > > We need this for dwc2 to work on older ralink SoC like the rt3052. Without, we > see the following when loading the driver: > > [0.76000

RE: [PATCH v2 2/2] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-16 Thread Paul Zimmerman
; The sparse warning was fixed by releasing the spinlock before return. > > > > > > This patch depends on the previous patch of the series. > > > > > > Signed-off-by: Sudip Mukherjee > > > > this should be patch one so it can be backported to stable kern

RE: XHCI max scratchpad buffers seem to differ from specification

2014-10-15 Thread Paul Zimmerman
> From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Daniel Karling > Sent: Wednesday, October 15, 2014 2:08 PM > > Hi, > > I noticed that the macro for extracting the number of scratchpad > buffers to allocate from the HCSPARAMS2 register differs from

RE: [PATCH] usb: dwc2: gadget: sparse warning of context imbalance

2014-10-14 Thread Paul Zimmerman
> From: Sudip Mukherjee [mailto:sudipm.mukher...@gmail.com] > Sent: Friday, October 10, 2014 6:10 AM > > sparse was giving the following warning: > warning: context imbalance in 's3c_hsotg_ep_enable' > - different lock contexts for basic block > > we were returning ENOMEM while still

  1   2   3   4   5   6   7   >