From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752335AbcGSIaT (ORCPT ); Tue, 19 Jul 2016 04:30:19 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35242 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbcGSIaP (ORCPT ); Tue, 19 Jul 2016 04:30:15 -0400 Subject: Re: [PATCH net-next] cdc_ether: Improve ZTE MF823/831/910 handling To: Kristian Evensen , Oliver Neukum References: <1468844691-8222-1-git-send-email-kristian.evensen@gmail.com> <1468846886.2280.6.camel@suse.com> <1468849802.2280.11.camel@suse.com> <1468851242.2280.14.camel@suse.com> <1468909209.2178.0.camel@suse.com> Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Network Development From: Lars Melin Message-ID: <52d1cd85-8bdc-c8ed-7a2c-460cefe7f0d5@gmail.com> Date: Tue, 19 Jul 2016 15:30:07 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-07-19 13:40, Kristian Evensen wrote: > I guess I can match on the VID/PID in usbnet, but won't it be cleaner > to add a new bind() function (in cdc_ether) which matches the two PIDs > and leave usbnet as is? Or am I misunderstanding how to add this > functionality to usbnet? > Matching on the usb id is probably not a great idea, there is more id's than the two you have found and there is also more than two non-unique mac addresses. Example: 0200FFAAAAAA 19d2:1589/1592/1595 020CE70B0102 19d2:1040/1048/1405 You can easily find them by googling them, without colon separators you will find them in verbose lsusb listings, with colons you will find them in dmesg pastings. I would probably have found more dupes if users had refrained from using the stupid usbdevices cmd which removes almost all interesting info from device listings in internet foras. /Lars