Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4612908iob; Sun, 8 May 2022 19:13:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVaut6uQD6j7tV6Svz4CblVuNwJkdOmkzgqeUR3YGIi4qM+4DMrqz5JN9GAtSxnQAC0phM X-Received: by 2002:a17:90a:9ea:b0:1dc:1c48:eda with SMTP id 97-20020a17090a09ea00b001dc1c480edamr23709799pjo.38.1652062408183; Sun, 08 May 2022 19:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652062408; cv=none; d=google.com; s=arc-20160816; b=wDejoru4qcU52Pl0QU55Owyb3oeftusXXYWQ4VvOH1F4bNJAlV4Ii8sdBmHHCdXdIk CsR536p5YLjQUR0b3ps0nPSMwyPWbwRkRwaCt4Irbz7ZsCBZg6cRa22U0Bu4cz7/X3j1 alodhTmn3oZ4RnWbBrQ1f2Q9OC49QpygLoD/JZn3bYKIUhpAPFmqPJZ2dnaFifq9SE9q qYjeaTN5jlQkIS0HFY0rtLKZZPqjYEYO7aV5DiStLR8RYW8EFdVfUd2M2DQKlZHnI0ol 4BilggLfyruM2cfZpplSyt+dOwQkImSwMi48rjvOQtK1Ruy/YNq0DRoz067PytFx1Low 2YWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=gQ/aC73T+osqnt/Vx7Q9nv9J+3ba7hX9h68ATgRocHE=; b=Lscr1EkyJH01IZtmAe3t8SRmEsXVzKuGTGF3DXLKqetTsTPwyrJ3kFs+2hQJglWGdv O6NiftATncMtPZ1m1LySuYhZI68Wnl021CchWDMz/rs6iP96fIQHy0n6X0z/jSyLu3ez fJ/z2Yx5Yvlu0wVXybw6oHIJii6+QSlG2+qV/CBh8x1q8oXFrrzNXa0h8n33vrBFmdAs /wCTZdb8vBe1H29GeXPuyuyly7Spr5x30xTPK4EZ/5S7GXK/254L9UFOlu287CqoK0EX krybJ2agH35auwW35E6S7zgtw6pzA7ijdzz6rPlta9SXkTnx6WJRnBx4qtmLyZRvdBu2 N5vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GglEoXZV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d3-20020a170903230300b0015e8509c44dsi11292326plh.171.2022.05.08.19.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:13:28 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GglEoXZV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8171A527CE; Sun, 8 May 2022 19:13:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381874AbiEEQVc (ORCPT + 99 others); Thu, 5 May 2022 12:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbiEEQVa (ORCPT ); Thu, 5 May 2022 12:21:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 252325BD10; Thu, 5 May 2022 09:17:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DD5CDB82DEE; Thu, 5 May 2022 16:17:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B2F0C385A8; Thu, 5 May 2022 16:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651767468; bh=cftKQTOky6kP7tiOK2aeqmNnAiIpRYZNpA5v8oIziIQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GglEoXZVEtbj4wnF89crfhormUiWPjSP5PItlBXQyYU+al+qq2ad+oLesXbvbis9S lQXNskSnv06uS/o1Yg9UsEygsfTnjTUHlQTfoMSWjiIRLkU7+TVIXkrI7u0yfMZkE9 mxBCsIKU6jnwTRIfncE5zd2zb97JVcg4J6AO1zNMYsvKbBBz8t1+DsnZHR8ms+amoE nFEY2+uxMrO1gb+CTBj4rvbhO+UjgOF0ErBLJSw4vZNfmtb58w179W2S+ZQbPUwRic AJjjdS+AAL/tdhLg3gFFD14RXQWwKeYVGGxBvxJ9xHybKlm1bGt7E0QXhnaUz2fI7G Mu4KNxfbiMNhw== Date: Thu, 5 May 2022 09:17:47 -0700 From: Jakub Kicinski To: Hector Martin Cc: Jacky Chou , "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: usb: ax88179_178a: Bind only to vendor-specific interface Message-ID: <20220505091747.71f3cb3f@kernel.org> In-Reply-To: <1e04603d-5fb2-9c39-4c68-7bcb7428f667@marcan.st> References: <20220502110644.167179-1-marcan@marcan.st> <20220504193047.1e4b97b7@kernel.org> <1e04603d-5fb2-9c39-4c68-7bcb7428f667@marcan.st> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, 5 May 2022 21:05:29 +0900 Hector Martin wrote: > On 05/05/2022 11.30, Jakub Kicinski wrote: > > On Mon, 2 May 2022 20:06:44 +0900 Hector Martin wrote: > >> The Anker PowerExpand USB-C to Gigabit Ethernet adapter uses this > >> chipset, but exposes CDC Ethernet configurations as well as the > >> vendor specific one. > > > > And we have reasons to believe all dongle vendors may have a similar > > problem? > > Given this is a vendor-specific driver it seems correct to have it only > bind to vendor-specific interfaces. That shouldn't break anything as > long as nobody is implementing this interface with the wrong protocol > IDs (which seems like quite a weird thing to do and fairly unlikely). > > FWIW, the one I have has the generic VID/PID, not a custom vendor one. > If you prefer I can change just that one or both of the generic ones. I have no strong preference, maybe folks more familiar with USB in general do and will chime in. Seems like a USB question more than a networking one. I know we have sort of the opposite problem with Realtek devices where they bind to the generic driver instead of the vendor one resulting in loss of functionality and higher power draw. But that's not 1:1 the problem you're solving. Let's just make sure the commit message is more explicit about which IDs are required to fix your system and which are just changed for a good measure, in case of regressions.