mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-01 11:36:49 +00:00
b389c3d66f
Manually adapted: bcm27xx/patches-5.15/950-0166-xhci-Use-more-event-ring-segment-table-entries.patch I replaced it with the version from main branch which applies more easily bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm27xx/patches-5.15/950-0605-xhci-refactor-out-TRBS_PER_SEGMENT-define-in-runtime.patch bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch generic/hack-5.15/645-netfilter-connmark-introduce-set-dscpmark.patch Added patch: generic/backport-5.15/777-netfilter-xtables-fix-typo-causing-some-targets-to-not-load-on-IPv6.patch This fixes a bug intoduced in this version. Adapt kernel configuration for newly added option CONFIG_PROC_MEM_ALWAYS_FORCE. Link: https://github.com/openwrt/openwrt/pull/16882 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
16 lines
459 B
Diff
16 lines
459 B
Diff
--- a/drivers/usb/dwc2/platform.c
|
|
+++ b/drivers/usb/dwc2/platform.c
|
|
@@ -496,6 +496,12 @@ static int dwc2_driver_probe(struct plat
|
|
if (retval)
|
|
return retval;
|
|
|
|
+ /* Enable USB port before any regs access */
|
|
+ if (readl(hsotg->regs + PCGCTL) & 0x0f) {
|
|
+ writel(0x00, hsotg->regs + PCGCTL);
|
|
+ /* TODO: mdelay(25) here? vendor driver don't use it */
|
|
+ }
|
|
+
|
|
hsotg->needs_byte_swap = dwc2_check_core_endianness(hsotg);
|
|
|
|
retval = dwc2_get_dr_mode(hsotg);
|