From: Sarah Sharp Date: Fri, 18 Sep 2009 15:55:12 +0000 (-0700) Subject: USB: xhci: Fix dropping endpoints from the xHC schedule. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a023c6cf10c63d2ce68a2816d90c2f0f1ad2763;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: xhci: Fix dropping endpoints from the xHC schedule. When an endpoint is to be dropped from the hardware bandwidth schedule, we want to clear its add flag. Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/xhci-hcd.c b/drivers/usb/host/xhci-hcd.c index d61c49f90f4a..932f99938481 100644 --- a/drivers/usb/host/xhci-hcd.c +++ b/drivers/usb/host/xhci-hcd.c @@ -895,7 +895,7 @@ int xhci_drop_endpoint(struct usb_hcd *hcd, struct usb_device *udev, ctrl_ctx->drop_flags |= drop_flag; new_drop_flags = ctrl_ctx->drop_flags; - ctrl_ctx->add_flags = ~drop_flag; + ctrl_ctx->add_flags &= ~drop_flag; new_add_flags = ctrl_ctx->add_flags; last_ctx = xhci_last_valid_endpoint(ctrl_ctx->add_flags);