From patchwork Thu Jun 7 18:46:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Knibbs X-Patchwork-Id: 10453405 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 886EC60375 for ; Thu, 7 Jun 2018 18:46:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FD3E294C9 for ; Thu, 7 Jun 2018 18:46:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6430629766; Thu, 7 Jun 2018 18:46:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F96F294C9 for ; Thu, 7 Jun 2018 18:46:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934948AbeFGSqL (ORCPT ); Thu, 7 Jun 2018 14:46:11 -0400 Received: from mout.gmx.com ([74.208.4.200]:52269 "EHLO mout.gmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934556AbeFGSqK (ORCPT ); Thu, 7 Jun 2018 14:46:10 -0400 Received: from [95.146.146.3] ([95.146.146.3]) by 3c-app-mailcom-lxa15.server.lan (via HTTP); Thu, 7 Jun 2018 20:46:04 +0200 MIME-Version: 1.0 Message-ID: From: "Mark Knibbs" To: linux-usb@vger.kernel.org Subject: [PATCH] storage: Widen bcdDevice range for SanDisk SDDR-31 quirk Date: Thu, 7 Jun 2018 20:46:04 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:AUlkB6avVTQIUqKbat0wMQVpwFl69n1QnYOvvNUiAQ7 QfJ68yhDG9rkrfJbh7Edn5uv697OXaBzlFW+SBm6CazINppPHO Mtlm/YoG64+nSdkz9NQKSrvGrvwPQdD9+pFtR6xP7IK7jgyUIW 7PJWD+qVwL+4hNehtrR8M4pnInmBn58hBzrC7FWICIZ33qwHmo ThC2PZA5XAV+0+csLrWb/1ljzzeyn5YTym8NHn6wSJENMqd241 ax8U0NjgYhInnL0m9ilyRfIvJoH1ReWZpl4Mr/IoJvIQrIL8St 19kedo= X-UI-Out-Filterresults: notjunk:1; V01:K0:YlaHF3wxHiI=:x2YrctdBd1BKp5hJQ56D// j5QQQNAPPGetkEzNYZ/8DDcJykDVkH/4zcIFQsNOuarHhTrsPRhccJLDWauNF/oabam/2O2D4 YsYwYBC8gLegZkwZE4bC0JEK40/gs/rrSytTFHvY7gnAoXLO6oIi+rs7bSmBYfFyIlXjmEtMl mLdW6U4tyQ7U2MDBtzlhYLnVl4yoSJu/5lXFzEpGUuW4kmiduyQBKss7lXlRgLIdU5lL0dVlU +Ou+R8U7Ko0CXdv5l7QnTBT0FS0DbumP+hasJfMRR5l1u6ZkAQG2XREA3IIK720RkrbH5JGOU Q+mUhVNyeGnKMir82W2tjk2n7RNfndv5OfJOHyXbugBXwmVQM5WeulKDqVJYDbEaja15cs+9c sJaHuB26eNjCXdCOuSFupt0YLWyjbxIyY3ToINgYRzn5LNpICUd02US+3q++oxYp04pSzLMBl yMIZTpA1y7dfcWj0QmZbbg6DVgnhhyiKif/YfPQp+Ox4O0tXy196 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The SanDisk SDDR-31 needs the US_FL_FIX_CAPACITY quirk. Previously that was only applied for bcdDevice 0x0009 but later firmware needs it too. The later firmware has bcdDevice 0x0022. On the assumption that any even later firmware (if it exists) has the same problem I have widened the bcdDevice range to 0x0000 to 0x00FF. (That would allow a patched firmware which doesn't have the bug to use e.g. bcdDevice 0x0122.) Signed-off-by: Mark Knibbs --- -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index 747d3a9..dfcceaf 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -1044,7 +1044,7 @@ UNUSUAL_DEV( 0x0781, 0x0001, 0x0200, 0x0200, USB_SC_SCSI, USB_PR_CB, NULL, US_FL_SINGLE_LUN ), -UNUSUAL_DEV( 0x0781, 0x0002, 0x0009, 0x0009, +UNUSUAL_DEV( 0x0781, 0x0002, 0x0000, 0x00ff, "SanDisk Corporation", "ImageMate CompactFlash USB", USB_SC_DEVICE, USB_PR_DEVICE, NULL,