From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A0D5C63697 for ; Tue, 27 Oct 2020 18:25:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1AAA222202 for ; Tue, 27 Oct 2020 18:25:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1827117AbgJ0SVi (ORCPT ); Tue, 27 Oct 2020 14:21:38 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:41333 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753820AbgJ0OC3 (ORCPT ); Tue, 27 Oct 2020 10:02:29 -0400 X-Originating-IP: 82.255.60.242 Received: from [192.168.0.28] (lns-bzn-39-82-255-60-242.adsl.proxad.net [82.255.60.242]) (Authenticated sender: hadess@hadess.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 76F292000A; Tue, 27 Oct 2020 14:02:23 +0000 (UTC) Message-ID: <4f367aba2f43b5e3807e0b01a5375e4a024ce765.camel@hadess.net> Subject: Re: [PATCH 1/2] usbcore: Check both id_table and match() when both available From: Bastien Nocera To: "M. Vefa Bicakci" , linux-usb@vger.kernel.org Cc: stable@vger.kernel.org, Greg Kroah-Hartman , Alan Stern Date: Tue, 27 Oct 2020 15:02:22 +0100 In-Reply-To: <20201022135521.375211-2-m.v.b@runbox.com> References: <4cc0e162-c607-3fdf-30c9-1b3a77f6cf20@runbox.com> <20201022135521.375211-1-m.v.b@runbox.com> <20201022135521.375211-2-m.v.b@runbox.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.1 (3.38.1-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Thu, 2020-10-22 at 09:55 -0400, M. Vefa Bicakci wrote: > From: Bastien Nocera > > From: Bastien Nocera > > 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 > Cc: # 5.8 > Cc: Greg Kroah-Hartman > Cc: Alan Stern > Co-developed-by: M. Vefa Bicakci > Signed-off-by: M. Vefa Bicakci You can also add my: Tested-by: Bastien Nocera