summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_bus_acpi.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2013-02-02 11:38:26 +0000
committeravg <avg@FreeBSD.org>2013-02-02 11:38:26 +0000
commit8b53991fd3c21ba6011c078d7a1e36496f755948 (patch)
tree14cfff5e638be0088c1251ce7d3425d957d2e1c9 /sys/dev/uart/uart_bus_acpi.c
parenta51d3124ab88ac620f0e24188a3cfed8be8b210a (diff)
downloadFreeBSD-src-8b53991fd3c21ba6011c078d7a1e36496f755948.zip
FreeBSD-src-8b53991fd3c21ba6011c078d7a1e36496f755948.tar.gz
uart: add resume method and enable it for attachments on the most common
x86 buses Otherwise the uart hardware could be in such a state after the resume where IER is cleared and thus no interrupts are generated. This behavior is observed and tested with QEMU, so I am comitting this change to help with my debugging. There has been no feedback from users of serial ports on real hardware. MFC after: 20 days
Diffstat (limited to 'sys/dev/uart/uart_bus_acpi.c')
-rw-r--r--sys/dev/uart/uart_bus_acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_bus_acpi.c b/sys/dev/uart/uart_bus_acpi.c
index 756f7f2..ccd213d 100644
--- a/sys/dev/uart/uart_bus_acpi.c
+++ b/sys/dev/uart/uart_bus_acpi.c
@@ -47,6 +47,7 @@ static device_method_t uart_acpi_methods[] = {
DEVMETHOD(device_probe, uart_acpi_probe),
DEVMETHOD(device_attach, uart_bus_attach),
DEVMETHOD(device_detach, uart_bus_detach),
+ DEVMETHOD(device_resume, uart_bus_resume),
{ 0, 0 }
};
OpenPOWER on IntegriCloud