]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty/8250_pnp: serial port detection regression since v3.7
authorSean Young <sean@mess.org>
Fri, 22 Feb 2013 16:27:19 +0000 (16:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:10:53 +0000 (13:10 -0700)
commiteec98f82c63730d039e4a87f623cfcf5ac612683
tree64008cddae8a52179c9bc57fc181ae01449bc9f3
parent3d1e1dba617554975426e7c7477321bd26f71789
tty/8250_pnp: serial port detection regression since v3.7

commit 77e372a3d82e5e4878ce1962207edd766773cc76 upstream.

The InsydeH2O BIOS (version dated 09/12/2011) has the following in
its pnp resouces for its serial ports:

$ cat /sys/bus/pnp/devices/00:0b/resources
state = active
io disabled
irq disabled

We do not check if the resources are disabled, and create a bogus
ttyS* device. Since commit 835d844d1a28e (8250_pnp: do pnp probe
before legacy probe) we get a bogus ttyS0, which prevents the legacy
probe from detecting it.

Note, the BIOS can also be upgraded, fixing this problem, but for people
who can't do that, this fix is needed.

Reported-by: Vincent Deffontaines <vincent@gryzor.com>
Tested-by: Vincent Deffontaines <vincent@gryzor.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pnp.c