mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-09-29 11:02:35 +00:00
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>
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From cea2dbec1b8e84b95459f4a589c613b84e3d9737 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.com>
|
|
Date: Wed, 15 Sep 2021 17:56:45 +0100
|
|
Subject: [PATCH] sound/usb: call usb_autopm_get_interface() for
|
|
devices that should not be suspended
|
|
|
|
Webcams with microphones are composite devices, and autosuspend is set
|
|
at the device level. If uvcvideo is probed after snd-usb-audio, the effect
|
|
of the quirk applied by snd-usb-audio is undone by uvcvideo's global
|
|
application of autosuspend.
|
|
|
|
Incrementing the interface's PM refcount in such cases prevents runtime PM
|
|
from happening, thus the device is left active.
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
|
|
---
|
|
sound/usb/card.c | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
--- a/sound/usb/card.c
|
|
+++ b/sound/usb/card.c
|
|
@@ -862,8 +862,14 @@ static int usb_audio_probe(struct usb_in
|
|
if (ignore_ctl_error)
|
|
chip->quirk_flags |= QUIRK_FLAG_IGNORE_CTL_ERROR;
|
|
|
|
- if (chip->quirk_flags & QUIRK_FLAG_DISABLE_AUTOSUSPEND)
|
|
+ if (chip->quirk_flags & QUIRK_FLAG_DISABLE_AUTOSUSPEND) {
|
|
+ /*
|
|
+ * Grab the interface, because on a webcam uvcvideo may race
|
|
+ * with snd-usb-audio during probe and re-enable autosuspend.
|
|
+ */
|
|
+ usb_autopm_get_interface(intf);
|
|
usb_disable_autosuspend(interface_to_usbdev(intf));
|
|
+ }
|
|
|
|
/*
|
|
* For devices with more than one control interface, we assume the
|