sc16is7xx: make sure device is in suspend once probed
authorFlorian Vallee <fvallee@eukrea.fr>
Tue, 19 Jul 2016 14:29:36 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 14:05:26 +0000 (16:05 +0200)
commit43c51bb573aab63cd67ad7216dc0b849036bc47a
tree153f5e2afe49c555172aec3cbe5c9d1df7047865
parent81bb549fdf144582f57d1df65a2517beb418dc8b
sc16is7xx: make sure device is in suspend once probed

  Previously sc16is7xx_power was called in order to set the device to a
  low power mode.

  However since SC16IS7XX_EFR_ENABLE_BIT was not set beforehand this
  suspend request had not effect.

  Also, soft-reset the device prior to port initialization. It may
  otherwise be in a state (interrupt pending, fifo not empty) which
  prevents it from sleeping.

Signed-off-by: Florian Vallee <fvallee@eukrea.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c