diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2009-09-18 11:55:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-10-09 16:52:07 -0400 |
commit | 0a023c6cf10c63d2ce68a2816d90c2f0f1ad2763 (patch) | |
tree | a3f64d82e56a7f5eff27fb6d34f737634b4dad32 /drivers/usb | |
parent | c526d0d4fc9707816b407d2d3336267d3271db2b (diff) |
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 <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/xhci-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
895 | ctrl_ctx->drop_flags |= drop_flag; | 895 | ctrl_ctx->drop_flags |= drop_flag; |
896 | new_drop_flags = ctrl_ctx->drop_flags; | 896 | new_drop_flags = ctrl_ctx->drop_flags; |
897 | 897 | ||
898 | ctrl_ctx->add_flags = ~drop_flag; | 898 | ctrl_ctx->add_flags &= ~drop_flag; |
899 | new_add_flags = ctrl_ctx->add_flags; | 899 | new_add_flags = ctrl_ctx->add_flags; |
900 | 900 | ||
901 | last_ctx = xhci_last_valid_endpoint(ctrl_ctx->add_flags); | 901 | last_ctx = xhci_last_valid_endpoint(ctrl_ctx->add_flags); |