Re: [PATCH] USB: serial: do not use tty class device for debugging

From: Greg KH
Date: Fri Apr 09 2021 - 10:06:13 EST


On Thu, Apr 08, 2021 at 05:08:59PM +0200, Johan Hovold wrote:
> Use the port struct device rather than tty class device for debugging.
>
> Note that while USB serial doesn't support serdev yet (due to serdev not
> handling hotplugging), serdev ttys do not have a corresponding class
> device and would have been logged using a "(NULL device *):" prefix.
>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---
> drivers/usb/serial/metro-usb.c | 4 ++--
> drivers/usb/serial/upd78f0730.c | 7 +++----
> drivers/usb/serial/usb-serial.c | 32 ++++++++++++++++----------------
> 3 files changed, 21 insertions(+), 22 deletions(-)

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>