Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Don't sync cache on Sansa Clip, while not fatal ...
details: https://anonhg.NetBSD.org/src/rev/a8e9e0c4c423
branches: trunk
changeset: 769731:a8e9e0c4c423
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Sep 20 19:35:46 2011 +0000
description:
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.
diffstat:
sys/dev/usb/umass_quirks.c | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 460eec35f0e7 -r a8e9e0c4c423 sys/dev/usb/umass_quirks.c
--- a/sys/dev/usb/umass_quirks.c Tue Sep 20 19:31:47 2011 +0000
+++ b/sys/dev/usb/umass_quirks.c Tue Sep 20 19:35:46 2011 +0000
@@ -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,
Home |
Main Index |
Thread Index |
Old Index