On Tue, Oct 27, 2020 at 6:25 PM Bastien Nocera hadess@hadess.net wrote:
On Thu, 2020-10-22 at 09:55 -0400, M. Vefa Bicakci wrote:
From: Bastien Nocera hadess@hadess.net
From: Bastien Nocera hadess@hadess.net
When a USB device driver has both an id_table and a match() function, make sure to check both to find a match, first matching the id_table, then checking the match() function.
This makes it possible to have module autoloading done through the id_table when devices are plugged in, before checking for further device eligibility in the match() function.
Signed-off-by: Bastien Nocera hadess@hadess.net Cc: stable@vger.kernel.org # 5.8 Cc: Greg Kroah-Hartman gregkh@linuxfoundation.org Cc: Alan Stern stern@rowland.harvard.edu Co-developed-by: M. Vefa Bicakci m.v.b@runbox.com Signed-off-by: M. Vefa Bicakci m.v.b@runbox.com
You can also add my: Tested-by: Bastien Nocera hadess@hadess.net
This patch works well for me. Tested-by: Pan (Pany) YUAN pany@fedoraproject.org