NetBSD-Bugs archive

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

Re: kern/40531: 5.0_BETA/i386 doesn't power off on Dell Latitude X1 withCF card plugged in



denbrok%uni-bonn.de@localhost said:
> wdc2 at pcmcia0 function 0: <TRANSCEND, TS1GCF80, >
> wdc2: i/o mapped mode
> atabus1 at wdc2 channel 0 
> [...]
> wd1 at atabus1 drive 0: <TRANSCEND>
> wd1: drive supports 1-sector PIO transfers, LBA addressing
> wd1: 991 MB, 2014 cyl, 16 head, 63 sec, 512 bytes/sect x 2030112 sectors
> wd1: drive supports PIO mode 4

Can you try the appended patch?
(just to narrow down the problem)
The CF card might not support power management.

best regards
Matthias




-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
#
# old_revision [884ce8c5452fc4dfbe943834a593e6de60e97b28]
#
# patch "sys/dev/ata/wd.c"
#  from [e3585309ef6464d47751fccb6e89f2bc201e0d9c]
#    to [1d5cdddc1b26d2b566dc6200b75e4a4e6e73cbd6]
#
============================================================
--- sys/dev/ata/wd.c    e3585309ef6464d47751fccb6e89f2bc201e0d9c
+++ sys/dev/ata/wd.c    1d5cdddc1b26d2b566dc6200b75e4a4e6e73cbd6
@@ -1948,8 +1948,10 @@ wd_shutdown(device_t dev, int how)
 
        struct wd_softc *wd = device_private(dev);
        wd_flushcache(wd, AT_POLL);
+#if 0
        if ((how & RB_POWERDOWN) == RB_POWERDOWN)
                wd_standby(wd, AT_POLL);
+#endif
        return true;
 }
 


Home | Main Index | Thread Index | Old Index