]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: core: restore of_node information in sysfs
authorAidan Stewart <astewart@tektelic.com>
Tue, 17 Jun 2025 16:48:19 +0000 (10:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 11:27:48 +0000 (13:27 +0200)
commitd36f0e9a0002f04f4d6dd9be908d58fe5bd3a279
treee16d36df372d3a2b877e9a3411f23482e4872de9
parent747b52413effe958ed57cf6d7bef80c34e1185f3
serial: core: restore of_node information in sysfs

Since in v6.8-rc1, the of_node symlink under tty devices is
missing. This breaks any udev rules relying on this information.

Link the of_node information in the serial controller device with the
parent defined in the device tree. This will also apply to the serial
device which takes the serial controller as a parent device.

Fixes: b286f4e87e32 ("serial: core: Move tty and serdev to be children of serial core port device")
Cc: stable@vger.kernel.org
Signed-off-by: Aidan Stewart <astewart@tektelic.com>
Link: https://lore.kernel.org/r/20250617164819.13912-1-astewart@tektelic.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_base_bus.c