From: Greg Kroah-Hartman Date: Tue, 5 Nov 2024 16:08:42 +0000 (+0100) Subject: 5.10-stable patches X-Git-Tag: v4.19.323~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d1de2c41510d7f3c7962b18141c467156d5b688;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: alsa-usb-audio-add-quirks-for-dell-wd19-dock.patch usb-phy-fix-api-devm_usb_put_phy-can-not-release-the-phy.patch usbip-tools-fix-detach_port-invalid-port-error-path.patch --- diff --git a/queue-5.10/alsa-usb-audio-add-quirks-for-dell-wd19-dock.patch b/queue-5.10/alsa-usb-audio-add-quirks-for-dell-wd19-dock.patch new file mode 100644 index 00000000000..430c9027e41 --- /dev/null +++ b/queue-5.10/alsa-usb-audio-add-quirks-for-dell-wd19-dock.patch @@ -0,0 +1,42 @@ +From 4413665dd6c528b31284119e3571c25f371e1c36 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Sch=C3=A4r?= +Date: Tue, 29 Oct 2024 23:12:49 +0100 +Subject: ALSA: usb-audio: Add quirks for Dell WD19 dock +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Jan Schär + +commit 4413665dd6c528b31284119e3571c25f371e1c36 upstream. + +The WD19 family of docks has the same audio chipset as the WD15. This +change enables jack detection on the WD19. + +We don't need the dell_dock_mixer_init quirk for the WD19. It is only +needed because of the dell_alc4020_map quirk for the WD15 in +mixer_maps.c, which disables the volume controls. Even for the WD15, +this quirk was apparently only needed when the dock firmware was not +updated. + +Signed-off-by: Jan Schär +Cc: +Link: https://patch.msgid.link/20241029221249.15661-1-jan@jschaer.ch +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman +--- + sound/usb/mixer_quirks.c | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/sound/usb/mixer_quirks.c ++++ b/sound/usb/mixer_quirks.c +@@ -3026,6 +3026,9 @@ int snd_usb_mixer_apply_create_quirk(str + case USB_ID(0x0bda, 0x4014): /* Dell WD15 dock */ + err = dell_dock_mixer_init(mixer); + break; ++ case USB_ID(0x0bda, 0x402e): /* Dell WD19 dock */ ++ err = dell_dock_mixer_create(mixer); ++ break; + + case USB_ID(0x2a39, 0x3fd2): /* RME ADI-2 Pro */ + case USB_ID(0x2a39, 0x3fd3): /* RME ADI-2 DAC */ diff --git a/queue-5.10/series b/queue-5.10/series index a8539668ffa..cfa960e4179 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -82,3 +82,6 @@ firmware-arm_sdei-fix-the-input-parameter-of-cpuhp_r.patch net-amd-mvme147-fix-probe-banner-message.patch nfs-remove-revoked-delegation-from-server-s-delegati.patch misc-sgi-gru-don-t-disable-preemption-in-gru-driver.patch +alsa-usb-audio-add-quirks-for-dell-wd19-dock.patch +usbip-tools-fix-detach_port-invalid-port-error-path.patch +usb-phy-fix-api-devm_usb_put_phy-can-not-release-the-phy.patch diff --git a/queue-5.10/usb-phy-fix-api-devm_usb_put_phy-can-not-release-the-phy.patch b/queue-5.10/usb-phy-fix-api-devm_usb_put_phy-can-not-release-the-phy.patch new file mode 100644 index 00000000000..6421447d297 --- /dev/null +++ b/queue-5.10/usb-phy-fix-api-devm_usb_put_phy-can-not-release-the-phy.patch @@ -0,0 +1,34 @@ +From fdce49b5da6e0fb6d077986dec3e90ef2b094b50 Mon Sep 17 00:00:00 2001 +From: Zijun Hu +Date: Sun, 20 Oct 2024 17:33:42 +0800 +Subject: usb: phy: Fix API devm_usb_put_phy() can not release the phy + +From: Zijun Hu + +commit fdce49b5da6e0fb6d077986dec3e90ef2b094b50 upstream. + +For devm_usb_put_phy(), its comment says it needs to invoke usb_put_phy() +to release the phy, but it does not do that actually, so it can not fully +undo what the API devm_usb_get_phy() does, that is wrong, fixed by using +devres_release() instead of devres_destroy() within the API. + +Fixes: cedf8602373a ("usb: phy: move bulk of otg/otg.c to phy/phy.c") +Cc: stable@vger.kernel.org +Signed-off-by: Zijun Hu +Link: https://lore.kernel.org/r/20241020-usb_phy_fix-v1-1-7f79243b8e1e@quicinc.com +Signed-off-by: Greg Kroah-Hartman +--- + drivers/usb/phy/phy.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/usb/phy/phy.c ++++ b/drivers/usb/phy/phy.c +@@ -590,7 +590,7 @@ void devm_usb_put_phy(struct device *dev + { + int r; + +- r = devres_destroy(dev, devm_usb_phy_release, devm_usb_phy_match, phy); ++ r = devres_release(dev, devm_usb_phy_release, devm_usb_phy_match, phy); + dev_WARN_ONCE(dev, r, "couldn't find PHY resource\n"); + } + EXPORT_SYMBOL_GPL(devm_usb_put_phy); diff --git a/queue-5.10/usbip-tools-fix-detach_port-invalid-port-error-path.patch b/queue-5.10/usbip-tools-fix-detach_port-invalid-port-error-path.patch new file mode 100644 index 00000000000..f41f9005f80 --- /dev/null +++ b/queue-5.10/usbip-tools-fix-detach_port-invalid-port-error-path.patch @@ -0,0 +1,33 @@ +From e7cd4b811c9e019f5acbce85699c622b30194c24 Mon Sep 17 00:00:00 2001 +From: Zongmin Zhou +Date: Thu, 24 Oct 2024 10:27:00 +0800 +Subject: usbip: tools: Fix detach_port() invalid port error path + +From: Zongmin Zhou + +commit e7cd4b811c9e019f5acbce85699c622b30194c24 upstream. + +The detach_port() doesn't return error +when detach is attempted on an invalid port. + +Fixes: 40ecdeb1a187 ("usbip: usbip_detach: fix to check for invalid ports") +Cc: stable@vger.kernel.org +Reviewed-by: Hongren Zheng +Reviewed-by: Shuah Khan +Signed-off-by: Zongmin Zhou +Link: https://lore.kernel.org/r/20241024022700.1236660-1-min_halo@163.com +Signed-off-by: Greg Kroah-Hartman +--- + tools/usb/usbip/src/usbip_detach.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/tools/usb/usbip/src/usbip_detach.c ++++ b/tools/usb/usbip/src/usbip_detach.c +@@ -68,6 +68,7 @@ static int detach_port(char *port) + } + + if (!found) { ++ ret = -1; + err("Invalid port %s > maxports %d", + port, vhci_driver->nports); + goto call_driver_close;