Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756882Ab2EHPhl (ORCPT ); Tue, 8 May 2012 11:37:41 -0400 Received: from cpsmtpb-ews05.kpnxchange.com ([213.75.39.8]:3366 "EHLO cpsmtpb-ews05.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756106Ab2EHPhi (ORCPT ); Tue, 8 May 2012 11:37:38 -0400 Message-ID: <1336491453.1933.67.camel@x61.thuisdomein> Subject: Re: [PATCH 0/3] scsi: usb-storage: hide errors for five devices From: Paul Bolle To: Alan Stern Cc: "James E.J. Bottomley" , Matthew Dharm , Greg Kroah-Hartman , linux-scsi@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 08 May 2012 17:37:33 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 (3.2.3-3.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-OriginalArrivalTime: 08 May 2012 15:37:36.0203 (UTC) FILETIME=[7E2AD9B0:01CD2D30] X-RcptDomain: vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1285 Lines: 35 On Tue, 2012-05-08 at 10:02 -0400, Alan Stern wrote: > On Tue, 8 May 2012, Paul Bolle wrote: > > 1) These patches try to hide those errors by: > > - downgrading one error to a notice; and > > That's a reasonable thing to do, IMO. > > > - setting the NO_WP_DETECT quirk for these five devices. > > But that isn't. These quirks are intended for devices that crash when > they receive the command in question. Yes, these USB memory sticks don't crash. (They actually seem to work just fine, something that I perhaps should have emphasized in the commit descriptions.) > They aren't meant to suppress sending commands to devices that can > properly reject them. Even the sticks that hit "bad_sense" (in sd_read_cache_type(), which I forgot to mention in the comment descriptions)? Is that not as severe as it suggests? Of course, an easy way out would be to downgrade both the "Asking for cache data failed" and the "No Caching mode page present" errors to notices. But the SCSI people might disagree with that approach. Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/