projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1be6f2b
)
serdev: Set fwnode for serdev devices
author
Saravana Kannan
<saravanak@google.com>
Thu, 2 Mar 2023 02:35:09 +0000
(18:35 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 9 Mar 2023 16:09:56 +0000
(17:09 +0100)
This allow fw_devlink to do dependency tracking for serdev devices.
Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Link:
https://lore.kernel.org/lkml/03b70a8a-0591-f28b-a567-9d2f736f17e5@gmail.com/
Cc: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Link:
https://lore.kernel.org/r/20230302023509.319903-1-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serdev/core.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serdev/core.c
b/drivers/tty/serdev/core.c
index
aa80de3
..
6780142
100644
(file)
--- a/
drivers/tty/serdev/core.c
+++ b/
drivers/tty/serdev/core.c
@@
-534,7
+534,7
@@
static int of_serdev_register_devices(struct serdev_controller *ctrl)
if (!serdev)
continue;
-
serdev->dev.of_node = node
;
+
device_set_node(&serdev->dev, of_fwnode_handle(node))
;
err = serdev_device_add(serdev);
if (err) {