Re: [PATCH RESEND] usb: dwc2: avoid leaking DMA channels on disconnection

2015-03-16 Thread John Youn
On 3/16/2015 2:50 AM, Yunzhi Li wrote: > Hi >> When the HCD is disconnected, the DMA transfers still in-flight were >> cleaned-up >> but the count of available DMA channels (e.g. available_host_channels) was >> not >> reset. >> The pool of DMA channels can be depleted when doing unclean >> discon

Re: [PATCH RESEND] usb: dwc2: avoid leaking DMA channels on disconnection

2015-03-16 Thread Yunzhi Li
Hi When the HCD is disconnected, the DMA transfers still in-flight were cleaned-up but the count of available DMA channels (e.g. available_host_channels) was not reset. The pool of DMA channels can be depleted when doing unclean disconnection of USB peripherals, and reaches the point where no tra

[PATCH RESEND] usb: dwc2: avoid leaking DMA channels on disconnection

2015-03-16 Thread Vincent Palatin
When the HCD is disconnected, the DMA transfers still in-flight were cleaned-up but the count of available DMA channels (e.g. available_host_channels) was not reset. The pool of DMA channels can be depleted when doing unclean disconnection of USB peripherals, and reaches the point where no transfer