Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp179136rwi; Wed, 12 Oct 2022 18:11:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6K/ljiLBIruK94nvkk5KASH1HSMZFgKrtHxWDwYaDJjGquPP9frPQvH+Q0sI5sOLqWLnxa X-Received: by 2002:a17:90a:e001:b0:20d:9f5b:f1e3 with SMTP id u1-20020a17090ae00100b0020d9f5bf1e3mr2781870pjy.49.1665623503332; Wed, 12 Oct 2022 18:11:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665623503; cv=none; d=google.com; s=arc-20160816; b=VSvuDrJE3do4zYcIqkJUgRtId0B3JYvtwXxZSKHDRwTHrMf5pZvcPuLbczP270mzsI udXUmYLFhRlavyzQUvT527P3CIEZMJz5G/tt+3H1sDLwLW2xArDAF4lcumqjIDG3eU8l kegUKbCEgRiUpLk+9bulugDUFYGx/dX3Cw1FDq1xUtu1kpBvlFmBNhYXdB4xtRQBoTQp q7yY9qc5Xa1p+aFZ2uUOWXqlYqKDrAYDHnhirYjR0hK/YwpL2EKatpAD5dDLSoJDM0xj L/jjZaO8ZyczOhm4Z57uOOuP5bjGkcdtaqOQzi0/8Nl5EXif1VF0eKnHtUCxzcwCPy+z UDyQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xJQEd/tw+5bihUtS8xNDx4uOCFTFc7l87/IjfaVZf1w=; b=K7GNlsUxVMX0u9JwdpeuuU3lxsmxpWqMehWL8b6+WFX+skXIBOYVAMfN0gDCyACfaH gbw07GKDnsikGA9xQ3jQzUAxF31hrIqERqyOVltGJAOYJyKV6x6woGIMkjXMZmTsd7Ob X3v411YyJYi10PANLhy9zLIQvYnl7VDK0uMW/oPNJBowX/1dDrdvp30zkGKG+iLO3wJx x/+g6I8Fejq0EKhtZHfE2loev4Fqavb6WiqtjHRzKhKNK6cMH7+ZQJ2PzF+lD1UkPUQc j6MgauoKppwje2zJJCX8SpDyZ0y+RFPNiJjLgrEJBR6vdIdSJhAnydNr/RI8OiBIsDkz 6y3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oRo1pKDV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090a4a0600b0020d3fa4d1edsi3433942pjh.64.2022.10.12.18.11.31; Wed, 12 Oct 2022 18:11:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oRo1pKDV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbiJMAUS (ORCPT + 99 others); Wed, 12 Oct 2022 20:20:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbiJMATY (ORCPT ); Wed, 12 Oct 2022 20:19:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19E3518C94F; Wed, 12 Oct 2022 17:17:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5DDC8616B6; Thu, 13 Oct 2022 00:17:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E83ECC433C1; Thu, 13 Oct 2022 00:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665620252; bh=6vbKmmz0ryFxKZLGyy2yrARzgTOezGzvxGBhsplRrh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oRo1pKDVz9ZBeNjIMuirVSs5F/amDJEhUeRaysSgsR/IK3ht09seqvCDrg5A7x7E8 sZ4TVRFdd5e3/Uv7FGzugw84TDW3yy8EvyORLacNMkz/TJ+vFZv2usJmzdISnpJXR1 bYGJjWvAtvFgAK0f/R3Lv0ytdm7++W/exgIoKa7nSAGYaf0ZKXE3BPwS8BgXoBxSCB VzcUGUY1CJ6K0ia7Mj7XPl9KEHmsQvXcgTMwqqmWxMajudh/ScvmElV7n7ItcOE20Y LgG9EMLRPhdiUArxdFx4nRJk97CqhQw+p+YOTDrxUKNlE2uZXYoruXypeBvgQx0VR3 YJ8ALfbzPdfBA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: sunghwan jung , Greg Kroah-Hartman , Sasha Levin , stern@rowland.harvard.edu, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net Subject: [PATCH AUTOSEL 6.0 42/67] Revert "usb: storage: Add quirk for Samsung Fit flash" Date: Wed, 12 Oct 2022 20:15:23 -0400 Message-Id: <20221013001554.1892206-42-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221013001554.1892206-1-sashal@kernel.org> References: <20221013001554.1892206-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: sunghwan jung [ Upstream commit ad5dbfc123e6ffbbde194e2a4603323e09f741ee ] This reverts commit 86d92f5465958752481269348d474414dccb1552, which fix the timeout issue for "Samsung Fit Flash". But the commit affects not only "Samsung Fit Flash" but also other usb storages that use the same controller and causes severe performance regression. # hdparm -t /dev/sda (without the quirk) Timing buffered disk reads: 622 MB in 3.01 seconds = 206.66 MB/sec # hdparm -t /dev/sda (with the quirk) Timing buffered disk reads: 220 MB in 3.00 seconds = 73.32 MB/sec The commit author mentioned that "Issue was reproduced after device has bad block", so this quirk should be applied when we have the timeout issue with a device that has bad blocks. We revert the commit so that we apply this quirk by adding kernel paramters using a bootloader or other ways when we really need it, without the performance regression with devices that don't have the issue. Signed-off-by: sunghwan jung Link: https://lore.kernel.org/r/20220913114913.3073-1-onenowy@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/storage/unusual_devs.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index 4993227ab293..20dcbccb290b 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -1275,12 +1275,6 @@ UNUSUAL_DEV( 0x090a, 0x1200, 0x0000, 0x9999, USB_SC_RBC, USB_PR_BULK, NULL, 0 ), -UNUSUAL_DEV(0x090c, 0x1000, 0x1100, 0x1100, - "Samsung", - "Flash Drive FIT", - USB_SC_DEVICE, USB_PR_DEVICE, NULL, - US_FL_MAX_SECTORS_64), - /* aeb */ UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff, "Feiya", -- 2.35.1