From: Gregory Herrero Date: Thu, 5 Nov 2015 08:41:44 +0000 (+0100) Subject: usb: dwc2: host: always increment available host channel during release X-Git-Tag: v4.5-rc1~124^2~6^2~77 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3f808bdae75eaf464b1b2710894950772a3784f8;p=karo-tx-linux.git usb: dwc2: host: always increment available host channel during release When releasing a channel, increment hsotg->available_host_channels even in case a periodic channel is released. Acked-by: John Youn Signed-off-by: Gregory Herrero Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc2/hcd_ddma.c b/drivers/usb/dwc2/hcd_ddma.c index 9635d8d4bba4..edccac662d74 100644 --- a/drivers/usb/dwc2/hcd_ddma.c +++ b/drivers/usb/dwc2/hcd_ddma.c @@ -278,6 +278,7 @@ static void dwc2_release_channel_ddma(struct dwc2_hsotg *hsotg, hsotg->non_periodic_channels--; } else { dwc2_update_frame_list(hsotg, qh, 0); + hsotg->available_host_channels++; } /*