Re: [PATCH] usb: dwc3: gadget: Avoid canceling current request for queuing error

2021-04-19 Thread Thinh Nguyen
Wesley Cheng wrote: > > > On 4/15/2021 12:28 PM, Thinh Nguyen wrote: >> Thinh Nguyen wrote: >>> Wesley Cheng wrote: >>>> >>>> >>>> On 4/14/2021 11:26 PM, Felipe Balbi wrote: >>>>> Wesley Cheng writes: >>>>

Re: [PATCH] usb: dwc3: gadget: Avoid canceling current request for queuing error

2021-04-15 Thread Thinh Nguyen
Thinh Nguyen wrote: > Wesley Cheng wrote: >> >> >> On 4/14/2021 11:26 PM, Felipe Balbi wrote: >>> Wesley Cheng writes: >>> >>>> If an error is received when issuing a start or update transfer >>>> command, the error handler will s

Re: [PATCH] usb: dwc3: gadget: Avoid canceling current request for queuing error

2021-04-15 Thread Thinh Nguyen
Wesley Cheng wrote: > > > On 4/14/2021 11:26 PM, Felipe Balbi wrote: >> Wesley Cheng writes: >> >>> If an error is received when issuing a start or update transfer >>> command, the error handler will stop all active requests (including >>> the current USB request), and call

Re: [Patch v4] usb: dwc3: add cancelled reasons for dwc3 requests

2021-03-30 Thread Thinh Nguyen
o the endpoint's cancelled_list. > */ > -static inline void dwc3_gadget_move_cancelled_request(struct dwc3_request > *req) > +static inline void dwc3_gadget_move_cancelled_request(struct dwc3_request > *req, > + unsigned int reason) > { > struct dwc3_ep *dep = req->dep; > > - req->status = DWC3_REQUEST_STATUS_CANCELLED; > + req->status = reason; > list_move_tail(>list, >cancelled_list); > } > > Reviewed-by: Thinh Nguyen Thanks for the patch, Thinh

Re: [PATCH v3 2/2] usb: dwc3: Fix DRD mode change sequence following programming guide

2021-03-29 Thread Thinh Nguyen
Wesley Cheng wrote: > > > On 3/6/2021 3:39 PM, Thinh Nguyen wrote: >> Wesley Cheng wrote: >>> >>> On 1/7/2021 5:51 PM, John Stultz wrote: >>>> In reviewing the previous patch, Thinh Nguyen pointed out that >>>> the DRD mode change seque

Re: [Patch v2] usb: dwc3: add cancelled reasons for dwc3 requests

2021-03-26 Thread Thinh Nguyen
Hi Ray, Ray Chi wrote: > Currently, when dwc3 handles request cancelled, dwc3 just returns > -ECONNRESET for all requests. It will cause USB function drivers > can't know if the requests are cancelled by other reasons. > > This patch will replace DWC3_REQUEST_STATUS_CANCELLED with the > reasons

Re: [PATCH] usb: dwc3: add cancelled reason for dwc3 requests

2021-03-25 Thread Thinh Nguyen
Felipe Balbi wrote: > Hi, > > Ray Chi writes: >> diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h >> index 0cd281949970..a23e85bd3933 100644 >> --- a/drivers/usb/dwc3/gadget.h >> +++ b/drivers/usb/dwc3/gadget.h >> @@ -56,6 +56,12 @@ struct dwc3; >> >> /* Frame/Microframe

Re: [PATCH] usb: dwc3: add cancelled reason for dwc3 requests

2021-03-25 Thread Thinh Nguyen
Hi Ray, Ray Chi wrote: > Currently, when dwc3 handles request cancelled, dwc3 just returns > -ECONNRESET for all requests. It will cause USB class drivers can't class drivers -> gadget driver or function driver. > know if the requests are cancelled by other reasons. > > This patch will add the

Re: [PATCH 2/2] usb: dwc3: gadget: Ignore EP queue requests during bus reset

2021-03-23 Thread Thinh Nguyen
Wesley Cheng wrote: > Hi Thinh, > > > On 3/19/2021 7:01 PM, Thinh Nguyen wrote: >> Wesley Cheng wrote: >>> >>> >>> On 3/19/2021 5:40 PM, Thinh Nguyen wrote: >>>> Hi, >>>> >>>> Wesley Cheng wrote: >>>&

Re: [PATCH 2/2] usb: dwc3: gadget: Ignore EP queue requests during bus reset

2021-03-19 Thread Thinh Nguyen
Thinh Nguyen wrote: > Wesley Cheng wrote: >> >> >> On 3/19/2021 5:40 PM, Thinh Nguyen wrote: >>> Hi, >>> >>> Wesley Cheng wrote: >>>> The current dwc3_gadget_reset_interrupt() will stop any active >>>> transfers, but

Re: [PATCH 2/2] usb: dwc3: gadget: Ignore EP queue requests during bus reset

2021-03-19 Thread Thinh Nguyen
Wesley Cheng wrote: > > > On 3/19/2021 5:40 PM, Thinh Nguyen wrote: >> Hi, >> >> Wesley Cheng wrote: >>> The current dwc3_gadget_reset_interrupt() will stop any active >>> transfers, but only addresses blocking of EP queuing for while we are >&g

Re: [PATCH 2/2] usb: dwc3: gadget: Ignore EP queue requests during bus reset

2021-03-19 Thread Thinh Nguyen
Hi, Wesley Cheng wrote: > The current dwc3_gadget_reset_interrupt() will stop any active > transfers, but only addresses blocking of EP queuing for while we are > coming from a disconnected scenario, i.e. after receiving the disconnect > event. If the host decides to issue a bus reset on the

Re: [PATCH v3 1/2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2021-03-19 Thread Thinh Nguyen
Wesley Cheng wrote: > > > On 3/8/2021 10:33 PM, Wesley Cheng wrote: >> >> >> On 3/8/2021 7:05 PM, Thinh Nguyen wrote: >>> Wesley Cheng wrote: >>>> >>>> On 3/6/2021 3:41 PM, Thinh Nguyen wrote: >>>>> Wes

Re: [PATCH v2] usb: dwc3: gadget: Prevent EP queuing while stopping transfers

2021-03-11 Thread Thinh Nguyen
Wesley Cheng wrote: > In the situations where the DWC3 gadget stops active transfers, once > calling the dwc3_gadget_giveback(), there is a chance where a function > driver can queue a new USB request in between the time where the dwc3 > lock has been released and re-aquired. This occurs after

Re: [PATCH v3 1/2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2021-03-08 Thread Thinh Nguyen
Wesley Cheng wrote: > > On 3/6/2021 3:41 PM, Thinh Nguyen wrote: >> Wesley Cheng wrote: >>> On 1/8/2021 4:44 PM, Thinh Nguyen wrote: >>>> Hi, >>>> >>>> John Stultz wrote: >>>>> On Fri, Jan 8, 2021 at 4:26 AM Felipe Balbi wr

Re: [PATCH v3 1/2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2021-03-06 Thread Thinh Nguyen
Wesley Cheng wrote: > > On 1/8/2021 4:44 PM, Thinh Nguyen wrote: >> Hi, >> >> John Stultz wrote: >>> On Fri, Jan 8, 2021 at 4:26 AM Felipe Balbi wrote: >>>> Hi, >>>> >>>> John Stultz writes: >>>>> From: Yu Chen

Re: [PATCH v3 2/2] usb: dwc3: Fix DRD mode change sequence following programming guide

2021-03-06 Thread Thinh Nguyen
Wesley Cheng wrote: > > On 1/7/2021 5:51 PM, John Stultz wrote: >> In reviewing the previous patch, Thinh Nguyen pointed out that >> the DRD mode change sequence should be like the following when >> switching from host -> device according to the programming guide >&g

Re: [PATCH v6 3/4] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2021-01-26 Thread Thinh Nguyen
Wesley Cheng wrote: > > On 1/26/2021 12:43 PM, Thinh Nguyen wrote: >> Wesley Cheng wrote: >>> On 1/22/2021 4:15 PM, Thinh Nguyen wrote: >>>> Hi, >>>> >>>> Wesley Cheng wrote: >>>>> Some devices have USB compositions which ma

Re: [PATCH v6 3/4] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2021-01-26 Thread Thinh Nguyen
Wesley Cheng wrote: > > On 1/22/2021 4:15 PM, Thinh Nguyen wrote: >> Hi, >> >> Wesley Cheng wrote: >>> Some devices have USB compositions which may require multiple endpoints >>> that support EP bursting. HW defined TX FIFO sizes may not alway

Re: [PATCH v6 3/4] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2021-01-22 Thread Thinh Nguyen
Hi, Wesley Cheng wrote: > Some devices have USB compositions which may require multiple endpoints > that support EP bursting. HW defined TX FIFO sizes may not always be > sufficient for these compositions. By utilizing flexible TX FIFO > allocation, this allows for endpoints to request the

Re: usb: dwc3: gadget: skip pullup and set_speed after suspend

2021-01-20 Thread Thinh Nguyen
Hi, Daehwan Jung wrote: > Sometimes dwc3_gadget_pullup and dwc3_gadget_set_speed are called after > entering suspend. That's why it needs to check whether suspend > > 1. dwc3 sends disconnect uevent and turn off. (suspend) > 2. Platform side causes pullup or set_speed(e.g., adbd closes ffs node)

Re: [PATCH v3 1/2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2021-01-08 Thread Thinh Nguyen
>> >>> We had seen occasional initialization failures with older >>> kernels but with recent 5.x era kernels it seemed to be becoming >>> much more common, so I dug back through some older trees and >>> realized I dropped this quirk from Yu Chen during ups

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-08 Thread Thinh Nguyen
gre...@linuxfoundation.org wrote: > On Fri, Jan 08, 2021 at 02:19:30AM +0000, Thinh Nguyen wrote: >> Hi Wesley, >> >> Felipe Balbi wrote: >>> Hi, >>> >>> Wesley Cheng writes: >>>> +void composite_reset(struct usb_gadget *gadget) >

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-08 Thread Thinh Nguyen
Jack Pham wrote: > Hi Thinh, > > On Fri, Jan 08, 2021 at 02:19:30AM +0000, Thinh Nguyen wrote: >> Hi Wesley, >> >> Felipe Balbi wrote: >>> Hi, >>> >>> Wesley Cheng writes: >>>> +void composite_reset(struct usb_gadget *gadget) >

Re: [PATCH 2/3] usb: gadget: composite: Split composite reset and disconnect

2021-01-07 Thread Thinh Nguyen
Hi Wesley, Felipe Balbi wrote: > Hi, > > Wesley Cheng writes: >> +void composite_reset(struct usb_gadget *gadget) >> +{ >> +/* >> + * Section 1.4.13 Standard Downstream Port of the USB battery charging >> + * specification v1.2 states that a device connected on a SDP shall only >> +

Re: [PATCH v2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2020-11-10 Thread Thinh Nguyen
Hi, Felipe Balbi wrote: > Hi, > > Thinh Nguyen writes: >> John Stultz wrote: >>> static void __dwc3_set_mode(struct work_struct *work) >>> { >>> struct dwc3 *dwc = work_to_dwc(work); >>> unsigned long flags; >>> + int hw

Re: [PATCH 2/2] usb: dwc3: gadget: Preserve UDC max speed setting

2020-10-29 Thread Thinh Nguyen
Wesley Cheng wrote: > > On 10/28/2020 5:43 PM, Thinh Nguyen wrote: >> Hi, >> >> Wesley Cheng wrote: >>> The USB gadget/UDC driver can restrict the DWC3 controller speed using >>> dwc3_gadget_set_speed(). Store this setting into a variable, in or

Re: [PATCH 2/2] usb: dwc3: gadget: Preserve UDC max speed setting

2020-10-29 Thread Thinh Nguyen
Thinh Nguyen wrote: > Wesley Cheng wrote: >> On 10/28/2020 5:43 PM, Thinh Nguyen wrote: >>> Hi, >>> >>> Wesley Cheng wrote: >>>> The USB gadget/UDC driver can restrict the DWC3 controller speed using >>>> dwc3_gadget_set_speed(). Store

Re: [PATCH 2/2] usb: dwc3: gadget: Preserve UDC max speed setting

2020-10-28 Thread Thinh Nguyen
Hi, Wesley Cheng wrote: > The USB gadget/UDC driver can restrict the DWC3 controller speed using > dwc3_gadget_set_speed(). Store this setting into a variable, in order for > this setting to persist across controller resets due to runtime PM. Why do we need to do this? DCFG should persist

Re: [PATCH v2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2020-10-21 Thread Thinh Nguyen
didn't > seem to be necessary. I now realize I was wrong. > > After resubmitting the quirk Thinh Nguyen pointed out that it > shouldn't be a quirk and it is actually mentioned in the > programming guide that it should be done when switching modes > in DRD. > > So, to avoid these

Re: [RFC][PATCH] usb: dwc3: Add quirk to trigger a GCTL soft reset for Hisilicon Kirin Soc Platform

2020-10-21 Thread Thinh Nguyen
k in the DesignWare USB3 DRD Core of > Hisilicon Kirin SoCs, this patch adds a quirk flag which > executes a GCTL soft reset when we switch modes. > > Cc: Felipe Balbi > Cc: Tejas Joglekar > Cc: Yang Fei > Cc: YongQin Liu > Cc: Andrzej Pietrasiewicz > Cc: Thinh Nguye

Re: [PATCH v2] usb: dwc3: core: fix a issue about clear connect state

2020-10-19 Thread Thinh Nguyen
Dejin Zheng wrote: > According to Synopsys Programming Guide chapter 2.2 Register Resets, > it cannot reset the DCTL register by setting DCTL.CSFTRST for core soft > reset, if DWC3 controller as a slave device and stay connected with a usb > host, then, while rebooting linux, it will fail to

Re: [PATCH v6 04/13] usb: dwc3: Add splitdisable quirk for Hisilicon Kirin Soc

2020-09-08 Thread Thinh Nguyen
Felipe Balbi wrote: > Hi, > > Mauro Carvalho Chehab writes: I tested here, together with the Hikey 970 phy RFC patches I sent last week. Without this patch, the USB HID driver receives -EPROTO from submitted URBs, causing it to enter into an endless reset cycle on

Re: [PATCH v3] usb: dwc3: Stop active transfers before halting the controller

2020-09-03 Thread Thinh Nguyen
v_buf->lpos = (dwc->ev_buf->lpos + count) % > + dwc->ev_buf->length; > + } > + } > + > ret = dwc3_gadget_run_stop(dwc, is_on, false); > spin_unlock_irqrestore(>lock, flags); > + enable_irq(dwc->irq_gadget); > > return ret; > } > @@ -3100,6 +3145,8 @@ static void dwc3_gadget_reset_interrupt(struct dwc3 > *dwc) > } > > dwc3_reset_gadget(dwc); > + /* Stop any active/pending transfers when receiving bus reset */ > + dwc3_stop_active_transfers(dwc); > > reg = dwc3_readl(dwc->regs, DWC3_DCTL); > reg &= ~DWC3_DCTL_TSTCTRL_MASK; Looks good to me. Reviewed-by: Thinh Nguyen Thanks, Thinh

Re: [PATCH v2] usb: dwc3: Stop active transfers before halting the controller

2020-09-01 Thread Thinh Nguyen
Wesley Cheng wrote: > > On 9/1/2020 3:14 PM, Wesley Cheng wrote: >> >> On 8/29/2020 2:35 PM, Thinh Nguyen wrote: >>> Wesley Cheng wrote: >>>> In the DWC3 databook, for a device initiated disconnect or bus reset, the >>>> driver is required to

Re: [PATCH v2] usb: dwc3: Stop active transfers before halting the controller

2020-08-29 Thread Thinh Nguyen
Wesley Cheng wrote: > In the DWC3 databook, for a device initiated disconnect or bus reset, the > driver is required to send dependxfer commands for any pending transfers. > In addition, before the controller can move to the halted state, the SW > needs to acknowledge any pending events. If the

Re: [PATCH] usb: dwc3: Stop active transfers before halting the controller

2020-08-19 Thread Thinh Nguyen
Wesley Cheng wrote: > On 8/19/2020 2:42 PM, Thinh Nguyen wrote: >> Hi, >> >> Wesley Cheng wrote: >>> In the DWC3 databook, for a device initiated disconnect, the driver is >>> required to send dependxfer commands for any pending transfers. >>

Re: [PATCH] usb: dwc3: Stop active transfers before halting the controller

2020-08-19 Thread Thinh Nguyen
Hi, Wesley Cheng wrote: > In the DWC3 databook, for a device initiated disconnect, the driver is > required to send dependxfer commands for any pending transfers. > In addition, before the controller can move to the halted state, the SW > needs to acknowledge any pending events. If the

Re: [RFC PATCH] usb: dwc3: fix maximum_speed check for usb2.0-only core

2020-07-23 Thread Thinh Nguyen
Hi, Thinh Nguyen wrote: > Hi, > > Chunfeng Yun wrote: >> The maximum_speed will be USB_SPEED_SUPER_PLUS, but the >> maximum_speed check for usb2.0-only core doesn't consider it, >> so fix it, and move the ckeck into dwc3_check_params(). >> >> Sign

Re: [RFC PATCH] usb: dwc3: fix maximum_speed check for usb2.0-only core

2020-07-09 Thread Thinh Nguyen
Hi, Chunfeng Yun wrote: > The maximum_speed will be USB_SPEED_SUPER_PLUS, but the > maximum_speed check for usb2.0-only core doesn't consider it, > so fix it, and move the ckeck into dwc3_check_params(). > > Signed-off-by: Chunfeng Yun > --- > Note: > > When I look at the code, find that this

Re: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2020-05-20 Thread Thinh Nguyen
Thinh Nguyen wrote: > Jun Li wrote: >> Hi >> >>> -Original Message- >>> From: Thinh Nguyen >>> Sent: 2020年5月19日 14:46 >>> To: Jun Li ; Felipe Balbi ; Jun Li >>> >>> Cc: John Stultz ; lkml >>> ; Yu >>

Re: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2020-05-20 Thread Thinh Nguyen
Jun Li wrote: > Hi > >> -Original Message----- >> From: Thinh Nguyen >> Sent: 2020年5月19日 14:46 >> To: Jun Li ; Felipe Balbi ; Jun Li >> >> Cc: John Stultz ; lkml >> ; Yu >> Chen ; Greg Kroah-Hartman ; >> Rob >> Herring ; Ma

Re: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2020-05-19 Thread Thinh Nguyen
Thinh Nguyen wrote: > Jun Li wrote: >>> -Original Message- >>> From: Felipe Balbi On Behalf Of Felipe Balbi >>> Sent: 2020年5月16日 19:57 >>> To: Jun Li ; Thinh Nguyen ; Jun >>> Li >>> >>> Cc: John Stultz ; lkml >>&g

Re: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2020-05-19 Thread Thinh Nguyen
Jun Li wrote: >> -Original Message- >> From: Felipe Balbi On Behalf Of Felipe Balbi >> Sent: 2020年5月16日 19:57 >> To: Jun Li ; Thinh Nguyen ; Jun Li >> >> Cc: John Stultz ; lkml >> ; Yu >> Chen ; Greg Kroah-Hartman ; >> Rob >&

Re: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2020-05-15 Thread Thinh Nguyen
ShuFan Lee >> ; Heikki Krogerus ; >> Suzuki K Poulose ; Chunfeng Yun >> ; Hans de Goede ; Andy >> Shevchenko >> ; Valentin Schneider ; >> Jack Pham ; Linux USB List >> ; open >> list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS >> ; >

Re: [PATCH 3/3] usb: dwc3: gadget: Add support for disabling U1 and U2 entries

2019-05-07 Thread Thinh Nguyen
Hi, Anurag Kumar Vulisha wrote: > Hi Claus, > >> -Original Message- >> From: Claus H. Stovgaard [mailto:c...@phaseone.com] >> Sent: Tuesday, May 07, 2019 2:28 AM >> To: Thinh Nguyen ; Anurag Kumar Vulisha >> ; Greg Kroah-Hartman ; Rob >> Herring ;

Re: [PATCH 3/3] usb: dwc3: gadget: Add support for disabling U1 and U2 entries

2019-05-06 Thread Thinh Nguyen
Hi Anurag, Anurag Kumar Vulisha wrote: > Gadget applications may have a requirement to disable the U1 and U2 > entry based on the usecase. For example, when performing performance > benchmarking on mass storage gadget the U1 and U2 entries can be disabled. > Another example is when periodic

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-02-05 Thread Thinh Nguyen
Thinh Nguyen wrote: > Bjorn Helgaas wrote: >> On Tue, Feb 05, 2019 at 08:38:58PM +0000, Thinh Nguyen wrote: >>> Hi Bjorn, >>> >>> Bjorn Helgaas wrote: >>>> On Fri, Feb 01, 2019 at 08:27:00PM +, Thinh Nguyen wrote: >>>>> Lukas Wunne

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-02-05 Thread Thinh Nguyen
Bjorn Helgaas wrote: > On Tue, Feb 05, 2019 at 08:38:58PM +0000, Thinh Nguyen wrote: >> Hi Bjorn, >> >> Bjorn Helgaas wrote: >>> On Fri, Feb 01, 2019 at 08:27:00PM +, Thinh Nguyen wrote: >>>> Lukas Wunner wrote: >>>>> On

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-02-05 Thread Thinh Nguyen
Hi Bjorn, Bjorn Helgaas wrote: > On Fri, Feb 01, 2019 at 08:27:00PM +0000, Thinh Nguyen wrote: >> Lukas Wunner wrote: >>> On Thu, Jan 31, 2019 at 11:46:23PM +, Thinh Nguyen wrote: >>>> --- a/drivers/pci/quirks.c >>>> +++ b/drivers/pci/qui

Re: Frequent dwc3 crashes on suspend or reboot since 5.0-rc1

2019-02-01 Thread Thinh Nguyen
John Stultz wrote: > On Fri, Feb 1, 2019 at 4:46 PM Thinh Nguyen wrote: >> John Stultz wrote: >>> On Fri, Feb 1, 2019 at 4:18 PM John Stultz wrote: >>> Bisecting the changes down, it seems like its due to commit >>> fec9095bdef4e ("us

Re: Frequent dwc3 crashes on suspend or reboot since 5.0-rc1

2019-02-01 Thread Thinh Nguyen
Hi John, John Stultz wrote: > On Fri, Feb 1, 2019 at 4:18 PM John Stultz wrote: >> Hey all, >> Since the 5.0 merge window opened, I've been tripping on frequent >> dwc3 crashes on reboot and suspend, which I've added an example to the >> bottom of this mail. >> >> I've dug in a little bit and

Re: Frequent dwc3 crashes on suspend or reboot since 5.0-rc1

2019-02-01 Thread Thinh Nguyen
Hi John, John Stultz wrote: > Hey all, > Since the 5.0 merge window opened, I've been tripping on frequent > dwc3 crashes on reboot and suspend, which I've added an example to the > bottom of this mail. > > I've dug in a little bit and sort of have a sense of whats going on. > > In

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-02-01 Thread Thinh Nguyen
Hi Lukas, Lukas Wunner wrote: > On Thu, Jan 31, 2019 at 11:46:23PM +0000, Thinh Nguyen wrote: >> --- a/drivers/pci/quirks.c >> +++ b/drivers/pci/quirks.c >> @@ -629,6 +629,9 @@ static void quirk_synopsys_haps(struct pci_dev *pdev) >> { >>

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-02-01 Thread Thinh Nguyen
Hi Lukas, Lukas Hartmann wrote: > Hi Thinh, > > this is in a taped out i.MX6QP 1.2GHz SoC, I also confirmed it with the > 1.0GHz version, it has the same 0xabcd device id integrated. I see. > I will try your patch ASAP. Thank you. Thinh > >> On 1. Feb 2019, at 00

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-01-31 Thread Thinh Nguyen
Hi Lukas, Thinh Nguyen wrote: > Bjorn Helgaas wrote: >> [+cc linux-pci, linux-kernel] >> >> On Thu, Jan 31, 2019 at 11:21 AM Lukas F. Hartmann wrote: >>> Hi Thinh, >>> >>> I'm writing you because you're the author in this commit: >

Re: Linux Kernel Regression: HAPS quirk breaks PCIe on i.MX6QP

2019-01-31 Thread Thinh Nguyen
Hi Lukas, Bjorn Helgaas wrote: > [+cc linux-pci, linux-kernel] > > On Thu, Jan 31, 2019 at 11:21 AM Lukas F. Hartmann wrote: >> Hi Thinh, >> >> I'm writing you because you're the author in this commit: >>

Re: [PATCH] usb: dwc3: gadget: fix miss isoc issue introduced by IRQ latency

2018-12-17 Thread Thinh Nguyen
Hi Zengtao, On 12/16/2018 5:45 PM, Zengtao (B) wrote: >> If it's a busy system, some times when we start an isoc transfer, >> the framenumber get from the event buffer may be already elasped, >> in this case, we will get all the packets dropped due to miss isoc. >> And we turn

Re: [PATCH] usb: dwc3: gadget: fix miss isoc issue introduced by IRQ latency

2018-12-14 Thread Thinh Nguyen
Hi Zengtao, On 12/14/2018 3:24 AM, Felipe Balbi wrote: > Hi, > > "Zengtao (B)" writes: >>> -Original Message- >>> From: Felipe Balbi [mailto:ba...@kernel.org] >>> Sent: Friday, December 14, 2018 4:52 PM >>> To: Zengtao (B) >>> Cc: liangshengjun ; Zengtao (B) >>> ; Greg Kroah-Hartman >>>