NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/42633: uhmodem: suspend/resume impossible with built-in modem



>Number:         42633
>Category:       kern
>Synopsis:       uhmodem: suspend/resume impossible with built-in modem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 17 15:20:00 +0000 2010
>Originator:     Uwe Krüger
>Release:        netbsd-5 (snapshot from Jan 14th 2010)
>Organization:
>Environment:
NetBSD eeepc 5.0_STABLE NetBSD 5.0_STABLE (UWE) #1: Sun Jan 17 14:50:10 UTC 
2010  root@eeepc:/usr/src/sys/arch/i386/compile/UWE i386

>Description:
On an eeepc-901go (with built-in HUAWEI HSDPA modem) suspend/resume doesn't 
work. The following error messages are printed:

Jan 17 14:00:31 eeepc /netbsd: acpi0: entering state 3
Jan 17 14:00:31 eeepc /netbsd: Devices without power management support: 
uhmodem0
Jan 17 14:00:31 eeepc /netbsd: acpi0: aborting suspend

>How-To-Repeat:
Try to enter suspend mode on an eeepc 901go. (You should deactivate the wired 
network in the BIOS since the built-in ale-Device causes various proplems - but 
that's another story...)
>Fix:
Addind a dummy power management registration to the uhmodem driver fixes the 
problem:

--- sys/dev/usb/uhmodem.c.orig  2010-01-17 14:45:15.000000000 +0000
+++ sys/dev/usb/uhmodem.c       2010-01-17 14:48:52.000000000 +0000
@@ -369,6 +369,9 @@
        usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_ubsa.sc_udev,
                           USBDEV(sc->sc_ubsa.sc_dev));
 
+       if (!pmf_device_register(self, NULL, NULL))
+               aprint_error_dev(self, "couldn't establish power handler\n");
+
        USB_ATTACH_SUCCESS_RETURN;
 
 error:



Home | Main Index | Thread Index | Old Index