Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137069085
D8054.id20836.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
703 B
Referenced Files
None
Subscribers
None
D8054.id20836.diff
View Options
Index: head/sys/dev/fdt/simplebus.c
===================================================================
--- head/sys/dev/fdt/simplebus.c
+++ head/sys/dev/fdt/simplebus.c
@@ -265,6 +265,15 @@
if ((ndi = simplebus_setup_dinfo(dev, node, di)) == NULL)
return (NULL);
+
+ /*
+ * If the order is unspecified, use the cell-index field, if available.
+ * The cell-index property is not part of any standard, but is widely
+ * used in NXP/Freescale and Marvell device trees.
+ */
+ if (order == -1)
+ OF_getencprop(node, "cell-index", &order, sizeof(order));
+
cdev = device_add_child_ordered(dev, order, name, unit);
if (cdev == NULL) {
device_printf(dev, "<%s>: device_add_child failed\n",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 22, 2:12 AM (7 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25872666
Default Alt Text
D8054.id20836.diff (703 B)
Attached To
Mode
D8054: Use the cell-index property as the unit number if available.
Attached
Detach File
Event Timeline
Log In to Comment