Patch "of: property: Disable fw_devlink DT support for X86" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    of: property: Disable fw_devlink DT support for X86

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     of-property-disable-fw_devlink-dt-support-for-x86.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 109b9ff86d974f9e2df01bcb9c937d6db0250863
Author: Saravana Kannan <saravanak@xxxxxxxxxx>
Date:   Thu Sep 9 18:14:45 2021 -0700

    of: property: Disable fw_devlink DT support for X86
    
    [ Upstream commit 4a48b66b3f52aa1a8aaa8a8863891eed35769731 ]
    
    Andre reported fw_devlink=on breaking OLPC XO-1.5 [1].
    
    OLPC XO-1.5 is an X86 system that uses a mix of ACPI and OF to populate
    devices. The root cause seems to be ISA devices not setting their fwnode
    field. But trying to figure out how to fix that doesn't seem worth the
    trouble because the OLPC devicetree is very sparse/limited and fw_devlink
    only adds the links causing this issue. Considering that there aren't many
    users of OF in an X86 system, simply fw_devlink DT support for X86.
    
    [1] - https://lore.kernel.org/lkml/3c1f2473-92ad-bfc4-258e-a5a08ad73dd0@xxxxxx/
    
    Fixes: ea718c699055 ("Revert "Revert "driver core: Set fw_devlink=on by default""")
    Signed-off-by: Saravana Kannan <saravanak@xxxxxxxxxx>
    Cc: Andre Muller <andre.muller@xxxxxx>
    Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Tested-by: Andre Müller <andre.muller@xxxxxx>
    Link: https://lore.kernel.org/r/20210910011446.3208894-1-saravanak@xxxxxxxxxx
    Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/of/property.c b/drivers/of/property.c
index 6c028632f425..0b9c2fb843e7 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -1434,6 +1434,9 @@ static int of_fwnode_add_links(struct fwnode_handle *fwnode)
 	struct property *p;
 	struct device_node *con_np = to_of_node(fwnode);
 
+	if (IS_ENABLED(CONFIG_X86))
+		return 0;
+
 	if (!con_np)
 		return -EINVAL;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux