serial: sccnxp: Adds a delay between sequential read/write cycles
authorAlexander Shiyan <shc_work@mail.ru>
Thu, 20 Dec 2018 06:19:29 +0000 (09:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Dec 2018 15:26:59 +0000 (16:26 +0100)
commit4ce193fdba48516717a4840043abb83f71109ee2
tree498a3f96c989494255b5bc79165b47074ab987af
parent663abb1a7a7ff8fea9ab0145463de7fcff823755
serial: sccnxp: Adds a delay between sequential read/write cycles

This patch adds a delay between sequential read/write cycles,
to ensure the required minimum inactive time (tRWD). A time value
from the datasheet has been added for each type of supported chips.
The “inline” compiler attribute has been removed from the
read/write functions, simply allow the compiler to control this.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sccnxp.c