Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3651609imm; Thu, 17 May 2018 12:14:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp4wUHXl830sSjYCvD0GFZ/blzybLvN3rfvVe43kNBa5Tuk8U/tn5YIifatmzmRbcbKq8nD X-Received: by 2002:a65:4bca:: with SMTP id p10-v6mr1066817pgr.114.1526584475727; Thu, 17 May 2018 12:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526584475; cv=none; d=google.com; s=arc-20160816; b=TNPnAp8yph6Q88bleHIYmRAGGog3/mEXjz2oZ5bt7VLW3x5+2Tt522nRu1MsD6wJ0B Z66cJ7r5nZc2CNFBglV/TP6v6+RxDRNTxkEs4TiU1c3TTPiZ0y3ZeIcK1xu4lTFJhMy9 +voJ1M3k/dwGmNJyp5FpH0OlQ27lHVNQVUVb9O5SCjKGZxFh/sxqqj37lBsbAWdE+4Nl WqFfOpZav/4tm174a2SFshneZ9rzFM64LFP2OAvQB6+S6ho6E+XskCfqT4BsSkcu5s5x Q4Dzv380fuvaNiuiyMvmCnzRLf+suYnt56bHKlMxn4EyhC4leSSsINozLHKLaA/YCKs+ DuiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date:arc-authentication-results; bh=CvODNABz5tWxpKsnkxJDF0vHxCr6974/eZVOu60R00Q=; b=kotnrdJot51r6oUP4jIc1xRjDgqqpbTS3sT5+YQ5gUWTz8ok7tZIt8/3htCtjFzFUQ eHR5BHvKyLNYMtp2gPzUjs73AZltP5p8lE15/RDvI8UcT3Ghq2NDoMmEfX8NwqhK1KoN hJgmFkUafKnWOa5rMepaa9/0Ao/FUFm6Ilx1uFzpi3QVLHlUMisGC98zxXxjW1OZE6mz ztbEgTzaIYsd8itgGQ0//CVWI4xl5f3GNE+Jo30Ht+lSCLhslKVMTNIr8GYktkKLau+B anVufSrsw8FBy/ZJI+dd2qsY0r+Gry+XCWb0pU2qyPyt719A5es1mClkowQrarKd6TE9 C7bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p91-v6si5689819plb.457.2018.05.17.12.14.12; Thu, 17 May 2018 12:14:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752201AbeEQTOA (ORCPT + 99 others); Thu, 17 May 2018 15:14:00 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:45168 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752119AbeEQTN5 (ORCPT ); Thu, 17 May 2018 15:13:57 -0400 Received: (qmail 5824 invoked by uid 2102); 17 May 2018 15:13:55 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 17 May 2018 15:13:55 -0400 Date: Thu, 17 May 2018 15:13:55 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Alexander Kappner cc: Oliver Neukum , , , , Subject: Re: [PATCH] usb-storage: Add quirks to make G-Technology "G-Drive" work In-Reply-To: <7dc7ea60-81b5-3546-5a12-9b0ff0b734cb@godking.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 May 2018, Alexander Kappner wrote: > Oliver and Alan, > > thank for investigating. > > > this is suspicious. You do not actually whether US_FL_NO_WP_DETECT > > by itself would make the device work. Can you please test that? > > US_FL_NO_WP_DETECT without US_FL_IGNORE_UAS does not make a difference, > even with the patch you included applied: Are you certain Oliver's new code was executed? If you put US_FL_NO_WP_DETECT only in unusual_devs.h and not in ususual_uas.h then it would not affect the uas driver. > > That's bizarre too. Even though the only difference is a MODE SENSE > > command, the command that actually faliled was WRITE(16). > It looks to me like the MODE SENSE simply hangs the drive, so anything > issued after that will fail. Of course the drive says it's the "current > command" that caused the failure, but I wouldn't give too much credence to > that. FYI -- this device is a consumer grade rotational drive that you can > get for less than $200, so I wouldn't be surprised if the implementations > have issues. > > Also, I noticed that copying onto the drive with dd works fine, whereas > trying to mount a filesystem immediately crashes it. I suspect this is > because check_disk_change is called on mount (which eventually calls down > to sd_read_write_protect_flag, which is where the US_FL_NO_WP_DETECT flag > comes into play). Was this tested with uas or usb-storage? Alan Stern