OSDN Git Service

serial: 8250_pci: port failed after wakeup from S3
authorPeter Hung <hpeter@gmail.com>
Wed, 1 Apr 2015 06:00:21 +0000 (14:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Apr 2015 12:43:48 +0000 (14:43 +0200)
commit6a8bc239a8c3e6ad34fceabb61ff8ec6222dad4e
treecf6b21ba068e44a29232ec1bd366dc6f07bdd954
parentca782f16ce02e3f4fa2ae28a5ff256ac69f731e2
serial: 8250_pci: port failed after wakeup from S3

Serial ports of F81504/F81508/F81512 will failed when wakeup from S3(STR).

It's due to when the system wakeup from S3(STR), this PCI device's
configuration space from 0x40 to 0x40 + max_port * 0x08 should be
re-configured.

We move all initialization from pci_fintek_setup() to pci_fintek_init() and
set it to pci_serial_quirks .init section. It's will re-init this device when
system wakeup from pciserial_resume_ports().

Signed-off-by: Peter Hung <hpeter+linux_kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c