Subject: Quirk for SigmaTel MP3 USB stick
To: None <tech-kern@netbsd.org, netbsd-users@netbsd.org>
From: Michael Kukat <michael@unixiron.org>
List: tech-kern
Date: 12/12/2003 13:11:22
Hello,

this morning i bought the device named in $Subject and played around a bit, 
until the point, where every write access resulted in a crash of the stick 
and a hanging operation on NetBSD side. After hunting around, i found FreeBSD 
already has a quirk for this problem, which i ported to NetBSD. Here is the 
patch:

--- dev/scsipi/scsiconf.c.orig  Fri Aug  2 10:55:15 2002
+++ dev/scsipi/scsiconf.c       Fri Dec 12 12:47:19 2003
@@ -600,6 +600,8 @@
        {{T_DIRECT, T_REMOV,
         "INSITE", "I325VM",             ""},
                                PQUIRK_NOLUNS|PQUIRK_NODOORLOCK},
+       {{T_DIRECT, T_REMOV,
+        "SigmaTel", "MSCN",             ""},     PQUIRK_NOSYNCCACHE},
 
        /* XXX: QIC-36 tape behind Emulex adapter.  Very broken. */
        {{T_SEQUENTIAL, T_REMOV,

This is verified, i can write now, and currently i don't see any further 
problems.

BTW... fine with KDE to lock the console and detach cfs volumes when pulling 
out, and re-enable the console and attach cfs volumes when plugging in :)
Wrote some rudimentary usb event daemon for this.

For replies, please contact me off-list (or Cc:), as i'm not subscribed here.

...Michael