[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c10dd3c1-efab-47d6-904f-3b211965be44@rowland.harvard.edu>
Date: Thu, 3 Aug 2023 13:56:03 -0400
From: Alan Stern <stern@...land.harvard.edu>
To: Dingyan Li <18500469033@....com>
Cc: Hans de Goede <hdegoede@...hat.com>,
Greg KH <gregkh@...uxfoundation.org>,
Xiaofan Chen <xiaofanc@...il.com>,
Oliver Neukum <oneukum@...e.com>,
Tormod Volden <lists.tormod@...il.com>,
sebastian.reichel@...labora.com, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: Re: [PATCH] USB: add usbfs ioctl to get specific superspeedplus
rates
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
Powered by blists - more mailing lists