Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2568633rwo; Thu, 3 Aug 2023 11:16:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlG4lI4bIgs90GM4NnWZit7ptyeKe2Ua8yo54lPoLEnHh6HiSY416MnNDkIvYFDQ9TwFVq95 X-Received: by 2002:a05:6a20:1596:b0:13d:d5bd:7593 with SMTP id h22-20020a056a20159600b0013dd5bd7593mr12674612pzj.12.1691086565667; Thu, 03 Aug 2023 11:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691086565; cv=none; d=google.com; s=arc-20160816; b=ahv28Xny50CKoRSerONAWDKZ1dvyKE4MIBtpfcbxSV5zlUjD/CXA0OWOURlnG4xRPS O769ZFuC1fXaoQq+4VYRMZhiHFifhYmYfDUfsiMLxl4aRNuf0kO+MngaDkbQdRcMMwJ4 ZAcbPe92fVEHHbP0bfUtlF1H70gBAU61IGvmFMwgGkGmBRhWC3g9gcWSYZlyBNq1MPUU n2IjzndP/mDMDa86/lTrZ/Z6KJMzzYr9xTcE8VcA7bAw5FTFfxjVJQrG3L3/SBW9B3Oq PkoX5yLYedxuv3HBtxQqRWKRCCeOKAv7YzWMYdyLy7gE9jhsM7HGpS2+rvHhowFf8mSo 58Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=t9YijkQMLNu9Rt0qR7YJE5UYKGwPRq7edE9L7FnFO2s=; fh=BioDEcnUiWybOwhSpx4SK32/3iOjIsXWhUpHDcyDUY4=; b=s/9N3z24PXgPivY17gTksxq9jsUFrfbVc4Hv4neXITf7Ffh2soBxDbgfIYtiLexw+T 4eGbuazJC35hHExG3qeTb2CB/zCCe1wJmKIVHKvJ3GfLRge5zJbUhXEqxAIMC1nTL4pq 4evkoDEKZ7FjNIB+YhmdR9D1ke53pjOKXPuIKsbk//TfRu0DhPDJNdUdGZI6HvoIs43M 1NPBelZP04HM6OujhqBlG6X+XrbM3S8nCfTNqyTclTHFQE6HPwh1oQyCoiaJqrHVvs/m TgFcIeFJVJUpoM4cndfjg8FW7uRIQfDWiAIWM4JrkQZNs9zjgYA9Hg4NCa5cVLbdp7+I rsgg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a170902d4c500b001b9e8ebe5a0si320441plg.613.2023.08.03.11.15.46; Thu, 03 Aug 2023 11:16:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234425AbjHCR4N (ORCPT + 99 others); Thu, 3 Aug 2023 13:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235184AbjHCR4I (ORCPT ); Thu, 3 Aug 2023 13:56:08 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 25F0730E2 for ; Thu, 3 Aug 2023 10:56:04 -0700 (PDT) Received: (qmail 3079 invoked by uid 1000); 3 Aug 2023 13:56:03 -0400 Date: Thu, 3 Aug 2023 13:56:03 -0400 From: Alan Stern To: Dingyan Li <18500469033@163.com> Cc: Hans de Goede , Greg KH , Xiaofan Chen , Oliver Neukum , Tormod Volden , sebastian.reichel@collabora.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH] USB: add usbfs ioctl to get specific superspeedplus rates Message-ID: References: <781b3f95-96e7-af83-e089-887ec7f2d255@suse.com> <2023072546-denture-half-5ceb@gregkh> <2a82ba01-38dd-fad9-98b9-ac8591107921@redhat.com> <151a5748.3e99.189ba07b110.Coremail.18500469033@163.com> <51926ee6-ee81-4543-a1f7-338e65a26670@rowland.harvard.edu> <67b68375.80b5.189bc2653e9.Coremail.18500469033@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67b68375.80b5.189bc2653e9.Coremail.18500469033@163.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, Aug 04, 2023 at 12:06:15AM +0800, Dingyan Li wrote: > So after usb_device_speed is extended with Gen2x1, Gen1x2 and Gen2x2, > it feels that enum usb_ssp_rate becomes useless. Is it okay to just delete it? > I'm asking this since it is also used in several other source files so the fix may > not be as trivial as it looks. As long as the file is being used by other source files, don't delete it. If you want to fix up all those other places and then delete the file, that's fine. But of course, it would have to be a separate set of patches. It will also be necessary to audit the places in the kernel that currently use usb_device_speed. Some of them may need to be extended to handle the new entries properly. (Including, obviously, the parts of the code that store the device's speed in the first place.) Alan Stern