Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4674520rwo; Tue, 25 Jul 2023 09:17:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlFY6g9qPdTBVWHF346kFoFtXLQ34Wrz+eym7O5u+PVIJYAuvg6wNtZg9JQH1hpF4KOBZ40F X-Received: by 2002:a17:907:780e:b0:997:e7ce:1e88 with SMTP id la14-20020a170907780e00b00997e7ce1e88mr11775153ejc.52.1690301842905; Tue, 25 Jul 2023 09:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690301842; cv=none; d=google.com; s=arc-20160816; b=qRcZK8N1WgOjLuZ9BCbx1JWlbH/abKRi8sOEsDLBCfmpVP1YgU9YBOutX08OXt4N1h iNTflTU0YYh3upcCaPbIbR4Hf+u2bef+HtI7Mdg9RhJ3m7LnfGFW6tjZ/CBrsqkuthjP eOsoeqtp0GJBa4UTIkctlLwgzBP/cinGsNMWBmEW9STXWlMB4CL76qRTh5zqSGrUJTO6 X+Oku2mA5WySNpFfg0/KapXTq8vrYaY7rZQQopWNib86NSiO4KX25Hz0wKHWVPUiT0jr VDp6fmqiINtw5VlOiOnEcjStfXF7ktWXh5mhEiqlmNANX/er7hgHGCiD6D9QdITXm96V +cNA== 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:dkim-signature; bh=W0y4NnA2FiEW0MewXV58ljdlC9Wr+GMR9na1a+RmzMI=; fh=qiZU5Bv/uhwEg64cirbam3ip/QAHC9B5f3X4XibtwNg=; b=AUGAr9TnoIC7OTaVz+lKFq+pZHAo0V3sQ39S+UGi3O1PKq8JsnqQGoLkCgFwf2Efj1 uYDp4gA+I8+n2fLw0pl8Zff/rU4H9lbOR9g7vVS/jUjrY7vtDlthlirIGN7KLJAen+po ujCtDbx9ZnsJ1rdTYBbU2a0Rvmd5qCa1tqnTkpJWLh9IMbOeT/Bfy3//fbnzU0/C/JPS pqj4cd6U0pQCXUARHKLYLAwc3qM5CNcmAc0dAzXP/Dqfm9ISSlExiNOhcnUDn7gR/vGI zTj42IREjy3aVvO0X/5Qj08QCbQFlmY7So79mFQWlWu5Av0Svaatx4bm+RLCOf7yQl4C BmYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2kT7TXzW; 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 ch1-20020a170906c2c100b0099325282809si8249556ejb.572.2023.07.25.09.16.58; Tue, 25 Jul 2023 09:17:22 -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=2kT7TXzW; 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 S232554AbjGYPMI (ORCPT + 99 others); Tue, 25 Jul 2023 11:12:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbjGYPMG (ORCPT ); Tue, 25 Jul 2023 11:12:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A24D1BD8; Tue, 25 Jul 2023 08:12:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 09A5861796; Tue, 25 Jul 2023 15:12:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 190B3C433C8; Tue, 25 Jul 2023 15:12:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1690297923; bh=8THp3K8VuswJyA6ZQXnYnjyJbhS9jvJpXnNYRT9oTbY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2kT7TXzWg5z4DsF7ST/eGZz62RXegu3XcV33Ukca4bw/tzemlkmbWOpjHfRnKfHry oUmqfPBF2pZdibId+QxwSoVpWcN35WI/0szz66+xFMsS9VDRd3zjdmvplOR7Vsls5z MtbVij7rryRX4PV1vtlQT2y1VzCF164N+fD0KrOY= Date: Tue, 25 Jul 2023 17:12:01 +0200 From: Greg KH To: Dingyan Li <18500469033@163.com> Cc: Oliver Neukum , stern@rowland.harvard.edu, 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: <2023072526-reissue-uplifting-5674@gregkh> References: <20230721084039.9728-1-18500469033@163.com> <2023072105-lethargic-saddling-ad97@gregkh> <130b453c.5c8f.1897872ce54.Coremail.18500469033@163.com> <2023072159-carol-underfeed-43eb@gregkh> <781b3f95-96e7-af83-e089-887ec7f2d255@suse.com> <2023072546-denture-half-5ceb@gregkh> <4edabcb3.7e65.1898d54679e.Coremail.18500469033@163.com> <3018cd33.7ee4.1898d7e4798.Coremail.18500469033@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3018cd33.7ee4.1898d7e4798.Coremail.18500469033@163.com> 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, Jul 25, 2023 at 10:40:10PM +0800, Dingyan Li wrote: > > At 2023-07-25 22:08:44, "Oliver Neukum" wrote: > >On 25.07.23 15:54, Dingyan Li wrote: > > > >> If we can't "deprecate" ioctls, can we change the returned contents of existing ones? > > > >No. Absolutely not. That is totally unacceptable. It would be much > >worse than just removing the support. > > > > Regards > > Oliver > > Got it, I guess this is for backward-compatibility. > > I also have another thought. USBDEVFS_CONNINFO_EX is kind of special and > used to retrieve contents of variable length. If you check proc_conninfo_ex(), > I think maybe we can append a new member to "struct usbdevfs_conninfo_ex" > without breaking backward-compatibility. How exactly would that work? Remember, new kernels still need to work with old userspace code. > By this way, we can avoid adding a new ioctl. Or even more aggressively, > drop USBDEVFS_GET_SPEED and force everyone to use USBDEVFS_CONNINFO_EX > since it can also return device speed. We can not "force" anyone to change, that's not how the kernel works, sorry. greg k-h