From: Greg Kroah-Hartman Date: Mon, 11 Jan 2021 09:05:42 +0000 (+0100) Subject: 4.9-stable patches X-Git-Tag: v4.4.251~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef095497c447d9ed3a6d550a677bdb4dd6bc4f6c;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: revert-device-property-keep-secondary-firmware-node-secondary-by-type.patch --- diff --git a/queue-4.9/revert-device-property-keep-secondary-firmware-node-secondary-by-type.patch b/queue-4.9/revert-device-property-keep-secondary-firmware-node-secondary-by-type.patch new file mode 100644 index 00000000000..63731b9b457 --- /dev/null +++ b/queue-4.9/revert-device-property-keep-secondary-firmware-node-secondary-by-type.patch @@ -0,0 +1,40 @@ +From 47f4469970d8861bc06d2d4d45ac8200ff07c693 Mon Sep 17 00:00:00 2001 +From: Bard Liao +Date: Tue, 5 Jan 2021 17:11:45 +0800 +Subject: Revert "device property: Keep secondary firmware node secondary by type" + +From: Bard Liao + +commit 47f4469970d8861bc06d2d4d45ac8200ff07c693 upstream. + +While commit d5dcce0c414f ("device property: Keep secondary firmware +node secondary by type") describes everything correct in its commit +message, the change it made does the opposite and original commit +c15e1bdda436 ("device property: Fix the secondary firmware node handling +in set_primary_fwnode()") was fully correct. + +Revert the former one here and improve documentation in the next patch. + +Fixes: d5dcce0c414f ("device property: Keep secondary firmware node secondary by type") +Signed-off-by: Bard Liao +Reviewed-by: Andy Shevchenko +Reviewed-by: Heikki Krogerus +Cc: 5.10+ # 5.10+ +Signed-off-by: Rafael J. Wysocki +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/base/core.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/base/core.c ++++ b/drivers/base/core.c +@@ -2364,7 +2364,7 @@ void set_primary_fwnode(struct device *d + if (fwnode_is_primary(fn)) { + dev->fwnode = fn->secondary; + if (!(parent && fn == parent->fwnode)) +- fn->secondary = ERR_PTR(-ENODEV); ++ fn->secondary = NULL; + } else { + dev->fwnode = NULL; + } diff --git a/queue-4.9/series b/queue-4.9/series index 6715818127c..a9df82bc389 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -39,3 +39,4 @@ usb-gadget-configfs-fix-use-after-free-issue-with-udc_name.patch usb-serial-keyspan_pda-remove-unused-variable.patch x86-mm-fix-leak-of-pmd-ptlock.patch alsa-hda-conexant-add-a-new-hda-codec-cx11970.patch +revert-device-property-keep-secondary-firmware-node-secondary-by-type.patch diff --git a/queue-4.9/usb-serial-keyspan_pda-remove-unused-variable.patch b/queue-4.9/usb-serial-keyspan_pda-remove-unused-variable.patch index f12bc042d72..bc936bf32f8 100644 --- a/queue-4.9/usb-serial-keyspan_pda-remove-unused-variable.patch +++ b/queue-4.9/usb-serial-keyspan_pda-remove-unused-variable.patch @@ -1,7 +1,7 @@ From 62218024401fac7dd7c7a6e74b566164d515d922 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 8 Jan 2021 15:55:28 +0100 -Subject: [PATCH] USB: serial: keyspan_pda: remove unused variable +Subject: USB: serial: keyspan_pda: remove unused variable From: Johan Hovold