summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/hcd_ddma.c
diff options
context:
space:
mode:
authorGregory Herrero <gregory.herrero@intel.com>2015-11-05 09:41:44 +0100
committerFelipe Balbi <balbi@ti.com>2015-12-15 09:12:41 -0600
commit3f808bdae75eaf464b1b2710894950772a3784f8 (patch)
tree4f6b636a0b448080a93a562c210325e98adcc4e6 /drivers/usb/dwc2/hcd_ddma.c
parentc17b337c1ea4c681595531912585a94f4bd7f8e7 (diff)
downloadlinux-3f808bdae75eaf464b1b2710894950772a3784f8.tar.gz
linux-3f808bdae75eaf464b1b2710894950772a3784f8.tar.bz2
linux-3f808bdae75eaf464b1b2710894950772a3784f8.zip
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 <johnyoun@synopsys.com> Signed-off-by: Gregory Herrero <gregory.herrero@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2/hcd_ddma.c')
-rw-r--r--drivers/usb/dwc2/hcd_ddma.c1
1 files changed, 1 insertions, 0 deletions
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++;
}
/*