From fd44da01a174d1179d80937308d3e57dce1655be Mon Sep 17 00:00:00 2001 From: jjm2473 <1129525450@qq.com> Date: Tue, 14 Mar 2023 12:00:27 +0800 Subject: [PATCH] target/rockchip: linux 4.19 update xhci trb-ent-quirk --- target/linux/rockchip/patches-4.19/0027-usb.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/rockchip/patches-4.19/0027-usb.patch b/target/linux/rockchip/patches-4.19/0027-usb.patch index 595621e50c..e1087aa1a7 100644 --- a/target/linux/rockchip/patches-4.19/0027-usb.patch +++ b/target/linux/rockchip/patches-4.19/0027-usb.patch @@ -13138,7 +13138,7 @@ index f5bd91752..66d6709eb 100644 bool more_trbs_coming = true; bool need_zero_pkt = false; bool first_trb = true; -+ bool en_trb_ent = true; ++ bool en_trb_ent = !!(xhci->quirks & XHCI_TRB_ENT_QUIRK); unsigned int num_trbs; unsigned int start_cycle, num_sgs = 0; unsigned int enqd_len, block_len, trb_buff_len, full_len; @@ -13174,7 +13174,7 @@ index f5bd91752..66d6709eb 100644 */ if (enqd_len + trb_buff_len < full_len) { field |= TRB_CHAIN; -+ if (xhci->quirks & XHCI_TRB_ENT_QUIRK && en_trb_ent) ++ if (en_trb_ent) + field |= TRB_ENT; if (trb_is_link(ring->enqueue + 1)) { if (xhci_align_td(xhci, urb, enqd_len,