]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31a09381692ac1d4138ce4653e8bbcddb9c0c37d
tree35121cebc60dca6ad8ab0a9266be9cbce6eb5bdf
parent17c9a30587756f7c0c1b650ac77bae5d60c32d11
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