Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp244832pxb; Mon, 13 Sep 2021 18:12:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFc7j/qCP9/3fr4RdV0b7iqbAVXFjxU7dOKhDSm3ZT0rXr0RboNO4SDes45L0LREXe1fld X-Received: by 2002:a92:d2ca:: with SMTP id w10mr2166196ilg.222.1631581963669; Mon, 13 Sep 2021 18:12:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631581963; cv=none; d=google.com; s=arc-20160816; b=oDhXzdvoPnIvX16ALpdwdJmZ4tQPPV+ZOSCoj8OxkW3zG7UzG9xLQCMFRBtRsMMxpZ xfLZ+1cRLi1clkTG6VrYG4wWpS+rn1aMSCBprw9onWmoSIZc2F/pbXmVGa/KZZsHAVDk gaGGwdfUAM/BefYPKenjqri3qv+7Ne3Kph8dwBzSx9qLqoMtX6zAiD2YFX1GC7tHxfP5 z05Y9bKlKwcxOPmfCbUxhpMGRR/kaGdm03XBr84NEKCsQoUs9qg2LakfiYNWxm6Sr2lu CkwQ3l3TyLm+KxbOe1PC1xu3anMhXzD7h04GyVnYLT+RxOzA0cknHZtjSxCrK/LvMRj2 iQ+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=h/0Jb6RrFYNFHsQrOjdo/8BK2QNmmhXJQ5jA2r/F04g=; b=LrUk4R+FNU0UrNedUL7hA1C9AKIE6xWcc9hPjMXCErbsBscl8uF3jW1mC79xT65P6D oONLGcambu4fgHeE2NyTBAUgu3w/BaGQk2evvFeSf/hMPbh8nTED6tmFI9Uy4OwpnC+N 0SLqvKSLIyY1d5curd9/2su0S7zorVuXYiqD6mbV4xw2JcZdBSFIzMTVDIdZhosWU6AI feGCOIY7gg/v8Eog18DBRTon4IjGMngcgnVawEb59HNI3r0x7fo/mFcXZDOTNk6Ni1cn d7mUfuc0xvwF33hyrM2k6BLjbgHOuYgVGDaPOHZbSJQJNV5CvT116IPK2tKdPhNCWpT2 uaGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r199si2433590jac.71.2021.09.13.18.12.32; Mon, 13 Sep 2021 18:12:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242487AbhIMVJ4 (ORCPT + 99 others); Mon, 13 Sep 2021 17:09:56 -0400 Received: from hosting.gsystem.sk ([212.5.213.30]:56728 "EHLO hosting.gsystem.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231976AbhIMVJz (ORCPT ); Mon, 13 Sep 2021 17:09:55 -0400 X-Greylist: delayed 423 seconds by postgrey-1.27 at vger.kernel.org; Mon, 13 Sep 2021 17:09:55 EDT Received: from gsql.ggedos.sk (off-20.infotel.telecom.sk [212.5.213.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by hosting.gsystem.sk (Postfix) with ESMTPSA id E799F7A0214; Mon, 13 Sep 2021 23:01:35 +0200 (CEST) From: Ondrej Zary To: Alan Stern Cc: linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org Subject: [PATCH] usb-storage: Add quirk for ScanLogic SL11R-IDE older than 2.6c Date: Mon, 13 Sep 2021 23:01:06 +0200 Message-Id: <20210913210106.12717-1-linux@zary.sk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ScanLogic SL11R-IDE with firmware older than 2.6c (the latest one) has broken tag handling, preventing the device from working at all: usb 1-1: new full-speed USB device number 2 using uhci_hcd usb 1-1: New USB device found, idVendor=04ce, idProduct=0002, bcdDevice= 2.60 usb 1-1: New USB device strings: Mfr=1, Product=1, SerialNumber=0 usb 1-1: Product: USB Device usb 1-1: Manufacturer: USB Device usb-storage 1-1:1.0: USB Mass Storage device detected scsi host2: usb-storage 1-1:1.0 usbcore: registered new interface driver usb-storage usb 1-1: reset full-speed USB device number 2 using uhci_hcd usb 1-1: reset full-speed USB device number 2 using uhci_hcd usb 1-1: reset full-speed USB device number 2 using uhci_hcd usb 1-1: reset full-speed USB device number 2 using uhci_hcd Add US_FL_BULK_IGNORE_TAG to fix it. Also update my e-mail address. 2.6c is the only firmware that claims Linux compatibility. The firmware can be upgraded using ezotgdbg utility: https://github.com/asciilifeform/ezotgdbg Signed-off-by: Ondrej Zary --- drivers/usb/storage/unusual_devs.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index efa972be2ee3..c6b3fcf90180 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -416,9 +416,16 @@ UNUSUAL_DEV( 0x04cb, 0x0100, 0x0000, 0x2210, USB_SC_UFI, USB_PR_DEVICE, NULL, US_FL_FIX_INQUIRY | US_FL_SINGLE_LUN), /* - * Reported by Ondrej Zary + * Reported by Ondrej Zary * The device reports one sector more and breaks when that sector is accessed + * Firmwares older than 2.6c (the latest one and the only that claims Linux + * support) have also broken tag handling */ +UNUSUAL_DEV( 0x04ce, 0x0002, 0x0000, 0x026b, + "ScanLogic", + "SL11R-IDE", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_FIX_CAPACITY | US_FL_BULK_IGNORE_TAG), UNUSUAL_DEV( 0x04ce, 0x0002, 0x026c, 0x026c, "ScanLogic", "SL11R-IDE", -- Ondrej Zary