Re: [RFC PATCH 1/2] serial: core: Move tty and serdev to be children of serial core port device

From: Greg Kroah-Hartman
Date: Tue Oct 24 2023 - 10:01:39 EST


On Tue, Oct 24, 2023 at 03:29:55PM +0300, Tony Lindgren wrote:
> * Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> [231024 11:52]:
> > What does this change the sysfs tree to look like?
>
> On x86 qemu for the ttys:
>
> # find /sys -name tty
> /sys/class/tty
> /sys/class/tty/tty
> /sys/devices/pnp0/00:04/00:04:0/00:04:0.0/tty
> /sys/devices/platform/serial8250/serial8250:0/serial8250:0.3/tty
> /sys/devices/platform/serial8250/serial8250:0/serial8250:0.1/tty
> /sys/devices/platform/serial8250/serial8250:0/serial8250:0.2/tty
> /sys/devices/virtual/tty
> /sys/devices/virtual/tty/tty

A diff of before vs. after would make more sense for those of us who
don't have your same system configuration :)

thanks,

greg k-h