[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201014193615.1045792-4-michael.auchter@ni.com>
Date: Wed, 14 Oct 2020 14:36:15 -0500
From: Michael Auchter <michael.auchter@...com>
To: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: saravanak@...gle.com, robh+dt@...nel.org, frowand.list@...il.com,
gregkh@...uxfoundation.org, rafael@...nel.org,
Michael Auchter <michael.auchter@...com>
Subject: [RFC PATCH 3/3] of: dynamic: add device links barrier before detach
Signed-off-by: Michael Auchter <michael.auchter@...com>
---
drivers/of/dynamic.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c
index 7478bfc8d440..a4e2881524e9 100644
--- a/drivers/of/dynamic.c
+++ b/drivers/of/dynamic.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/proc_fs.h>
+#include <linux/device.h>
#include "of_private.h"
@@ -688,6 +689,8 @@ void of_changeset_destroy(struct of_changeset *ocs)
{
struct of_changeset_entry *ce, *cen;
+ device_links_barrier();
+
list_for_each_entry_safe_reverse(ce, cen, &ocs->entries, node)
__of_changeset_entry_destroy(ce);
}
--
2.25.4
Powered by blists - more mailing lists