usb: dwc2: host: always increment available host channel during release
authorGregory Herrero <gregory.herrero@intel.com>
Thu, 5 Nov 2015 08:41:44 +0000 (09:41 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Dec 2015 15:12:41 +0000 (09:12 -0600)
When releasing a channel, increment hsotg->available_host_channels even
in case a periodic channel is released.

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/hcd_ddma.c

index 9635d8d..edccac6 100644 (file)
@@ -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++;
        }
 
        /*