]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Fix could not remove dev_attr_rx_fifo_timeout
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 30 Oct 2018 06:13:35 +0000 (15:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Nov 2018 17:34:50 +0000 (09:34 -0800)
commit97ce141882ecd8c0ce69f720437567347c41797c
treeefd7d03d79249a1e69298282668c0ab5df90ba58
parent6164b00cad2153b9c18eb79d637f918910e90672
serial: sh-sci: Fix could not remove dev_attr_rx_fifo_timeout

This patch fixes an issue that the sci_remove() could not remove
dev_attr_rx_fifo_timeout because uart_remove_one_port() set
the port->port.type to PORT_UNKNOWN.

Reported-by: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>
Fixes: eb9386089d81 ("serial: sh-sci: make RX FIFO parameters tunable via sysfs")
Cc: <stable@vger.kernel.org> # v4.11+
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c