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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 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 D27E5C2D0DB for ; Mon, 20 Jan 2020 12:36:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B09DE22314 for ; Mon, 20 Jan 2020 12:36:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727114AbgATMgf (ORCPT ); Mon, 20 Jan 2020 07:36:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:59838 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbgATMge (ORCPT ); Mon, 20 Jan 2020 07:36:34 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8D50AAF22; Mon, 20 Jan 2020 12:36:33 +0000 (UTC) Message-ID: <1579523791.17973.31.camel@suse.com> Subject: Can't we have stricter matching for vendor specific devices? From: Oliver Neukum To: Johan Hovold Cc: gregkh@linuxfoundation.org, stern@rowland.harvard.edu, linux-usb@vger.kernel.org Date: Mon, 20 Jan 2020 13:36:31 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hi Johan, I have looked at your heroic efforts at sanity checking and I cannot help myself wondering whether this is a winning strategy. Shall we really specify for each device how many endpoints it is suposed to have in the probe() method? Could we extend the matching by a minimum and maximum number of endpoints and masks for permissible endpoint types? For class devices this is impossible, but the majority of drivers are for vendor specific devices. Regards Oliver