Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1641655rdb; Sat, 10 Feb 2024 10:21:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU3DaRzxJNcxty7yWlGNL+HVQu2mOxMP6EmfAuqDHaYgI56lf0mgBdt5bD2GuRwts4E/OqaZZIzCbVzSHGA+Q/SJJlE5xqUJ6P+WOEG1Q== X-Google-Smtp-Source: AGHT+IGt9uEJs+9ut0dERuc4mEQfTC6x4t4zpN5HEasOJk70I2d8F2NblnIHhUEuAIImB/Mezr1t X-Received: by 2002:a81:6956:0:b0:604:3ea:8b5a with SMTP id e83-20020a816956000000b0060403ea8b5amr2358844ywc.30.1707589272590; Sat, 10 Feb 2024 10:21:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707589272; cv=pass; d=google.com; s=arc-20160816; b=jw+Gig10XScdjv41mxmG6ZnnADbYuyMzLyWVOFYPShlL8JbY4bMQEhYDZnZqeEswT8 T8PhT/zVxR53h+Okl0zLORSZzbMr6JRCKLXOmCj/ParxMCNeGM7/skLHFd/WrXb8Y3hF WDQSja4XjZs6lJ1o3Dc8Il7YTHTQefbsf3RhsS0Ga6z8qBu3SwF1JeEOeAYM38ZAhO5L m62a+KWX5JZuaOcPzsro+uJC/dzbjXMJA2g0lT9OyQYS85YDu2K2WLzDCFJCz7pt+N7p QxGtTHtVFllxwUX7fmr3/PiWTSITWaDwdLUkd68E94MBjQPnNuFb92SwGGwjx6hT78NE uvnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=eM006jnqNS27XuEOTjcgkm/RwDZ/M1MwHFHZhtbdXGU=; fh=RRRicUMuf6emeg2O7at/z7OrcOw19Clc4ddABQfKhIE=; b=W2M5qomEeMimMl0ngzXg7ZtzPi1+Xvs+AGOLEpwqpFjjvU49AtNedKC/bMJJS5e5pi t1NYmGzI0x37gWtDiC5zoivCUkrhaDn10vFxXSDUdxoes8Fn2T4NA9gPhPAoC2cW2m9h MXYN1RvmpjCbU+E8aHMJFk2XBZ4UZLGe6de4hRm4A6Xf+TxUzP04KammLMYfaOAX7ekX hkPHyuAVgEO9RWVgCD3+odomgLwHCjNcjTdavQbix0kdxKtn78In2bGsrPBtLQDML2WI dLKJnQ/oOlAaE5AdjhFcMS9Sj9HiOnyTpIJav7aLgFvDsM6qbzCrsSF3y3gNWt00JodL aH/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LzovAZFL; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-60516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCVandM+mTTTZSOGrLLa5jQb4COslNIUuG8KXEuDNvpstp6qzxNZ2m6/Epc5NynZfJvWaTnXWjWtpKWyMVhwh3kT2cTX6A67kiKikhS7tg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m21-20020ae9e015000000b0078407a02ce8si2293820qkk.178.2024.02.10.10.21.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 10:21:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LzovAZFL; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-60516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 57CA21C23DD4 for ; Sat, 10 Feb 2024 18:21:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 052945EE60; Sat, 10 Feb 2024 18:20:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="LzovAZFL" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B82505EE67 for ; Sat, 10 Feb 2024 18:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707589256; cv=none; b=kQqqMRdSj6uGTuuTVWNdQlwjXp5OsN8JvR0YOQeN6Sl2pGTLypYJlBtTLVxnVO1xot6pO56Dg4fl80OGwoBmI9u4xlvo1qvDjVeiUiNgbLuVcZCmlzfrn3yCgtHGC/r7fQajqHTI3QDies+Ew3OWx7rpM45SgdIN4myJlutw3sY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707589256; c=relaxed/simple; bh=8GZzRk5xeM6x3+8tNiKdRlaycacYhtiviwWTOkYi98A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EuFPTBlIQt6ioxms8PMZwjHqzz6uYln1VTOK+g26kz+o9P2U6W4xg0zkLsVffKIGRxUtlYt0kC2YLEdzrwaUusM37lc76AuCnSSAQnu7dnX35tSJVIxoZDd+0cJO0xKn8czYjzmm+NQSuwqdz9sq4+xI3yaa2b2qEWfIFzH59Dg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=LzovAZFL; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1d5ce88b51cso631505ad.0 for ; Sat, 10 Feb 2024 10:20:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707589254; x=1708194054; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eM006jnqNS27XuEOTjcgkm/RwDZ/M1MwHFHZhtbdXGU=; b=LzovAZFLOhg4Kfxc8Mu4rNketxYLOaiTEZNFOeA/7QqzkzKldPuyFVLwQYpgJzSVvq 916FiCSNbv1BKPXv6V30aUR039HurXNN4TYNzfI2CG8+DhmPpjf5GwfutZgKR6lW8epL 1ohbeUSTvLz3uds4k5hR9VDJziftHbnF18DOXoAro/pG14YJZPAX+2oacJcabK17EXub sBp2i0HXeLpKcep4XbkMePDLqrZfOI4Z5ttRIs156qV7w7reuMK1+rKBRYilGaWFXk4x OMzVc3doukrf3BHSfTzsAlAD9icKL7unhdnHpcNfG5cNgkrdwpPEe0khPMCsF3CbQVD6 9f6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707589254; x=1708194054; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eM006jnqNS27XuEOTjcgkm/RwDZ/M1MwHFHZhtbdXGU=; b=WMRfEclQWU0HiMbYeh7mC2xKUMklyURYTTPMzbOi06WvzIOzVVMnxvgjsQnmixHgyA 6wUzKJVSMjUqKJT+8ZSKTxpiIcigdZ1zZATCEWIWZS8TpCecdNsIrDXIfCn0PQUSfODc fD1QPPhTplzOEMHiwm0GM9IkOT5C7AaU/PYFo91Q2sTfQoM5cR2Nqt1JorBj927FQf2l FyqBD5uS2ZrmbHH3y3rjt2Ot7IN/RgidS9LjcAISWEPc6FKjED4iQVMtgO7roQ5UqkjW QhWHQSd9yyGGBsjdI9FVA5lJ3pS86PN/wEu+ZojCcY3njH4ZGstnXMYCmVFvrGLlKy/M QRjA== X-Forwarded-Encrypted: i=1; AJvYcCXxO0DwY0kzfP+eBIg4WTDf++vPL2x4zUXINd2FVmTxfVAlzMmZHtfesMP4id6Hf60sHGXbGPx30jW6hdf1lGq7x99vjScG4/lQPlg5 X-Gm-Message-State: AOJu0Ywsxx/sDWBCcb5nprVmqxJxq47dhAVC3AZUp/dj5lBM6YmQnPQ2 5hNIC8Gif3XDUvFgOv6Q6P3EA/VS1wEcglJT9tHPd86WCYAMecY8UDnJtKM5gOxJUFRfaSoJ3No pc2tdjoNrQJS3tiBRJCMdCVl+47OBg8/QusRp X-Received: by 2002:a17:903:6cd:b0:1d8:ffbe:82d0 with SMTP id kj13-20020a17090306cd00b001d8ffbe82d0mr97706plb.12.1707589253533; Sat, 10 Feb 2024 10:20:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240205104049.48900-1-christianshewitt@gmail.com> In-Reply-To: <20240205104049.48900-1-christianshewitt@gmail.com> From: Grant Grundler Date: Sat, 10 Feb 2024 10:20:39 -0800 Message-ID: Subject: Re: [PATCH 1/2] net: asix: add 0b95:1790 to AX88179A device list To: Christian Hewitt Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Grant Grundler , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 5, 2024 at 2:40=E2=80=AFAM Christian Hewitt wrote: > > Add a generic AX88179A entry for the 0b95:1790 device id: > > kernel: usb 2-1: New USB device found, idVendor=3D0b95, idProduct=3D1790,= bcdDevice=3D 2.00 > kernel: usb 2-1: New USB device strings: Mfr=3D1, Product=3D2, SerialNumb= er=3D3 > kernel: usb 2-1: Product: AX88179A > kernel: usb 2-1: Manufacturer: ASIX > kernel: usb 2-1: SerialNumber: 00D24DC0 > kernel: asix 2-1:1.0 (unnamed net_device) (uninitialized): Failed to read= reg index 0x0000: -32 > kernel: asix: probe of 2-1:1.0 failed with error -32 > kernel: ax88179_178a 2-1:1.0 (unnamed net_device) (uninitialized): Failed= to read reg index 0x0040: -32 > kernel: ax88179_178a 2-1:1.0 eth1: register 'ax88179_178a' at usb-0000:01= :00.0-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 20:7b:d2:d2:4d:c0 > > Signed-off-by: Christian Hewitt > --- > The change is tested by a LibreELEC (distro) user who reports the NIC to = be working > fine (and logs support this) but the "Failed to read reg index 0x0000: -3= 2" errors > suggest ax88178_info might not be the correct choice. I'm not a serious c= oder so I > need to "ask the audience" for suggestions on what more might be needed? > > drivers/net/usb/asix_devices.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_device= s.c > index f7cff58fe044..9a7b1136cd98 100644 > --- a/drivers/net/usb/asix_devices.c > +++ b/drivers/net/usb/asix_devices.c > @@ -1506,6 +1506,10 @@ static const struct usb_device_id products = [] =3D { > // ASIX AX88178 10/100/1000 > USB_DEVICE (0x0b95, 0x1780), > .driver_info =3D (unsigned long) &ax88178_info, > +}, { > + // ASIX AX88179A 10/100/1000 > + USB_DEVICE(0x0b95, 0x1790), > + .driver_info =3D (unsigned long)&ax88178_info, > }, { Hi Christian! Seems like there are two problems here: 1) The USB output is telling you this device is a AX88179A : the changes most likely should be in ax88179_178a.c using the ax881798_info: https://elixir.bootlin.com/linux/latest/source/drivers/net/usb/ax88179_1= 78a.c#L1690 2) What Andrew Lunn said. I'll add the asix driver should not be probing (or claiming) this device - or at least be quiet about it when it does. Thanks for looking into this! cheers, grant > // Logitec LAN-GTJ/U2A > USB_DEVICE (0x0789, 0x0160), > -- > 2.34.1 >