patch "usb: xhci-mtk: remove or operator for setting schedule parameters" added to usb-next
Subsystems (5)
This is a note to let you know that I've just added the patch titled
usb: xhci-mtk: remove or operator for setting schedule parameters
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-next branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will also be merged in the next major kernel release during the merge window.
If you have any questions about this process, please let me know.
From f6e1ab32bf6843c592ac6e241f89caf90b132b76 Mon Sep 17 00:00:00 2001
From: Chunfeng Yun <[email protected]>
Date: Mon, 8 Mar 2021 10:51:50 +0800
Subject: usb: xhci-mtk: remove or operator for setting schedule parameters
Side effect may happen if use or operator to set schedule parameters when the parameters are already set before. Set them directly due to other bits are reserved.
--- drivers/usb/host/xhci-mtk-sch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/usb/host/xhci-mtk-sch.c +3 -3
@@ -643,7 +643,7 @@ int xhci_mtk_add_ep_quirk(struct usb_hcd *hcd, struct usb_device *udev,*/ if (usb_endpoint_xfer_int (&ep->desc) ||usb_endpoint_xfer_isoc (&ep->desc)) - ep_ctx->reserved[0 ] |=cpu_to_le32 (EP_BPKTS (1 )); + ep_ctx->reserved[0 ] =cpu_to_le32 (EP_BPKTS (1 ));return 0 ; }
@@ -730,10 +730,10 @@ int xhci_mtk_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev)list_move_tail (&sch_ep->endpoint, &sch_bw->bw_ep_list); ep_ctx =xhci_get_ep_ctx (xhci, virt_dev->in_ctx, ep_index); - ep_ctx->reserved[0 ] |=cpu_to_le32 (EP_BPKTS (sch_ep->pkts) + ep_ctx->reserved[0 ] =cpu_to_le32 (EP_BPKTS (sch_ep->pkts) |EP_BCSCOUNT (sch_ep->cs_count) |EP_BBM (sch_ep->burst_mode)); - ep_ctx->reserved[1 ] |=cpu_to_le32 (EP_BOFFSET (sch_ep->offset) + ep_ctx->reserved[1 ] =cpu_to_le32 (EP_BOFFSET (sch_ep->offset) |EP_BREPEAT (sch_ep->repeat)); xhci_dbg(xhci, " PKTS:%x, CSCOUNT:%x, BM:%x, OFFSET:%x, REPEAT:%x\n",
Signature · 1 line
2.30.1