Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6738148rwi; Mon, 24 Oct 2022 05:37:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70O21Nk+Thgc4ADF5P0BcYmJnJeoN4YewEEEQ5WCKX0UFLYvKEltlMx/EB6dCJbIc46sNJ X-Received: by 2002:a05:6a00:1306:b0:555:6d3f:11ed with SMTP id j6-20020a056a00130600b005556d3f11edmr33359303pfu.55.1666615024576; Mon, 24 Oct 2022 05:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615024; cv=none; d=google.com; s=arc-20160816; b=Gh6OxB34EDMvyfa3MclCgeecs1sAiQQuKoG5Q4ipcvi5JUhW4ptvzvIM3XXkU+pv3e EwErb+zM6hGuox+D4JG0+W+xYon0oxfX8m7wDkjLHe9cl3pIp8tfeMjDGSV8uLNXt0Ie J8q0Z5+/XsyRUa2Bz6k8tpXhnPk19YtGufWGoL/TayBZ/XA76h+IYrO+LFGtE/YRdP96 Aeyr46kO45qFS8RzBggH3PEgcvahsSAJJm+B8QmmrR2GRB9hJ5yEdiVqDFUMmilH20qa JkfH9K6PiIrwoPtnpjaZLsrRAkKsaqaVeLvsoeFev1wzh8zawvBtdTY+wo+ITKgdj7Nl 9IGQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=De2Hw+cMRcAxJBxximsSc5Ym2DiT4zWZYtAMocw3X10=; b=gN4Aorck6ylppG4IiJMCoQt6rvI8jzYbG30SVzCpIsNinm/GD50wBgYdt9mAGP5Gls qsk+exOun/1aEqXIHNG6FX2H2K2u0dL/6nGKRknxPkWsiykF6Y8vha1VTqRajSNog1lQ f4dHJWUqVNrhF1Dui7+/KzDaUhVRgNPABU89NS1yDKIwAOoobvGfBL89Dc2hX1F8rOph p0xG3/tpMlBRtSIX2boSf1eijRYo4yYjfHcRYZhT3DG3goa09N1LO42XtcGDmD5+5ROZ JbxUx3kSjI63L2rZGp++HCLxljNrX8G/yQZOzCLHqWfnU7dDcnKOI2jjsbz3m6bkJpXH qDcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uBEgwsJe; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a6549c2000000b00461b7568ad2si34483363pgs.527.2022.10.24.05.36.52; Mon, 24 Oct 2022 05:37:04 -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=@linuxfoundation.org header.s=korg header.b=uBEgwsJe; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232284AbiJXL4i (ORCPT + 99 others); Mon, 24 Oct 2022 07:56:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232178AbiJXLyE (ORCPT ); Mon, 24 Oct 2022 07:54:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E71474BBD; Mon, 24 Oct 2022 04:45:24 -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 ams.source.kernel.org (Postfix) with ESMTPS id 237B5B81151; Mon, 24 Oct 2022 11:45:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72B60C433D6; Mon, 24 Oct 2022 11:45:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611922; bh=X/cIJmrKiiqRqx/BcVynhDgyBSUjjuc0ViUWGM72QBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uBEgwsJeM657bkm5Zzllr7qcN4rgIZV8tLWGFAMJxAO4od/n8PAy/UyzNjL+9epy9 TR+eSS/cn64Zmzynj4dcM3M0y5sUcbcfMHm9Pt8AAm0if2KR7JGe9EPOyzgeWfgevQ wPhZt0UBvxbbg5X03GdvNBr95GBhSvXG0YvT5J24= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, sunghwan jung , Sasha Levin Subject: [PATCH 4.9 151/159] Revert "usb: storage: Add quirk for Samsung Fit flash" Date: Mon, 24 Oct 2022 13:31:45 +0200 Message-Id: <20221024112954.937926881@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 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 5a6ca1460711..8c51bb66f16f 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -1294,12 +1294,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