sc16is7xx: Read the LSR register for basic device presence check
authorDaniel Mack <daniel@zonque.org>
Thu, 21 May 2020 09:11:52 +0000 (11:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2020 09:06:15 +0000 (11:06 +0200)
commit2aa916e67db3e625cc0bfe577f67034a46f81c8a
tree35121cebc60dca6ad8ab0a9266be9cbce6eb5bdf
parent2d12fc792cdd43da8502de4a425a98e520b1c302
sc16is7xx: Read the LSR register for basic device presence check

Currently, the driver probes just fine and binds all its resources even
if the physical device is not present.

As the device lacks an identification register, let's at least read the
LSR register to check whether a device at the configured address responds
to the request at all.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Link: https://lore.kernel.org/r/20200521091152.404404-7-daniel@zonque.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c