Module Name: src Committed By: jakllsch Date: Tue Sep 20 19:35:46 UTC 2011
Modified Files: src/sys/dev/usb: umass_quirks.c Log Message: Don't sync cache on Sansa Clip, while not fatal to further device access, it spews 4 "generic HBA error" lines in the dmesg just plugging it in. To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/sys/dev/usb/umass_quirks.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/umass_quirks.c diff -u src/sys/dev/usb/umass_quirks.c:1.89 src/sys/dev/usb/umass_quirks.c:1.90 --- src/sys/dev/usb/umass_quirks.c:1.89 Mon Sep 19 08:26:57 2011 +++ src/sys/dev/usb/umass_quirks.c Tue Sep 20 19:35:46 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: umass_quirks.c,v 1.89 2011/09/19 08:26:57 plunky Exp $ */ +/* $NetBSD: umass_quirks.c,v 1.90 2011/09/20 19:35:46 jakllsch Exp $ */ /* * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.89 2011/09/19 08:26:57 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.90 2011/09/20 19:35:46 jakllsch Exp $"); #ifdef _KERNEL_OPT #include "opt_umass.h" @@ -273,6 +273,19 @@ NULL, NULL }, + /* + * SanDisk Sansa Clip rejects cache sync in unconventional way. + * However, unlike some other devices listed in this table, + * this is does not cause the device firmware to stop responding. + */ + { { USB_VENDOR_SANDISK, USB_PRODUCT_SANDISK_SANSA_CLIP }, + UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC, + 0, + PQUIRK_NOSYNCCACHE, + UMATCH_VENDOR_PRODUCT, + NULL, NULL + }, + /* Kingston USB pendrives don't like being told to lock the door */ { { USB_VENDOR_KINGSTON, USB_PRODUCT_KINGSTON_DT101_II }, UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,