Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2611338rdb; Mon, 5 Feb 2024 11:45:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7TQWd5QJHQLzZldbB9Uilx1zRLRtnKIPDlRGA9vK9k8OjLyBwxK8fSdgnpI1PbpuRA9WF X-Received: by 2002:a05:6358:719:b0:178:c712:b123 with SMTP id e25-20020a056358071900b00178c712b123mr817496rwj.5.1707162349858; Mon, 05 Feb 2024 11:45:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707162349; cv=pass; d=google.com; s=arc-20160816; b=WUpxsEk91bNpZqrjLWWNiXf5R/J16Gel73krAtiXlRNQ3s+lM0bSFsS5hP5lP0AHOs YroAAYiuKYy9BlK1cdoKMD/FM29kAs2s6Dm4bfAT0Issn8FBM9QUVATEfsqrTQCAP1Gf SXQlm9D2IG6nCgETnpRBfL5CojjHveAkc4jxI1l0JXw0YVE3u6I+HQ2yjKqdJurr9XRo Z3mjavG6x/NEco6YSkPjMzpckCfKcg56+mEXEFlzOCTYb8Nsk/hfIE9vc3gPYgrBODpI a881sxqNwSg8nHjijzFDkSZRyWQf3Xs0urGl90eEaaE8NLymCPr2BEY2va5Rcgmmipka rQSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=T9hBFBJxGOqEN46Rzq3IDVzYp56XQV1MU7sVARX8R3k=; fh=rfCeScxdnhPocPL82mf2fr//TQPkaBbUBDiNxdhdCow=; b=a4v/X9Hguu9Q2qNbpzySR+a7JKvWFKLrXIxVfEmfOoxPdl3j1lxgAfC5IrpzEMKSbJ cvNKsNCWutqmnBdMN/sgkT6VJmCw2pmcNWSKY5zNxYh+7hj0FKcRltv62RWx4Chp2gHu CXaikyG7Z+0XfzsuaHW7Fl2gTsT98UwVRPIi8bRIRUhF8PI3Q9b6aFwKaXZMRa9s9z4Z P/rGzKB7Yz8FisOb/GpC08WJRCurgzrLV+ETLMveh3qbzhc+q5dft8pc6RzXtR88dx5C tFSzTFAbGYvFohnJ4T+3s+oGhduX1LO9AwmLaNVxJNvjQnpQ/L+KPSW6BM594LzQfCfO GGFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Xc02vhhA; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-52776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=1; AJvYcCXgc+QPfdajy+02FPbo8GVcvhF9DuD/Hs8X+7YHorxHZr5zTowQ6M1NOX/twEf+Sa2wSxCuia8rAZ9VmH6gIXFMPO+QxA6OfztctbEL7A== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t1-20020a632241000000b005d9b919b94asi336897pgm.311.2024.02.05.11.45.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 11:45:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Xc02vhhA; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-52776-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A3CD8B28ACE for ; Mon, 5 Feb 2024 14:04:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 805F124B35; Mon, 5 Feb 2024 14:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="Xc02vhhA" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9118D23753; Mon, 5 Feb 2024 14:03:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707141838; cv=none; b=TOwLcgwLWB36JwLhOjPWa5dlRF4pa/CSn0tf9JW5MPgSJT+Pvl23HXaNF2l5FOx8crM6MvENTO8qtejTHa+cRjE13nshv398Wxayv0Mfy5lbWuP+HNVsbzRJzkYNguRZAX9QVkJLIGtyOWT92VDzNNMPvkie7/NVW1FzgBMCk88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707141838; c=relaxed/simple; bh=R9m0seibPqVjuMRXRCtFH8OBXcYn9UV3bCtWarP4u4U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cmfNUKpIO3eTy0zCFqO1bFzrkoHGgA8loee0jROtI11SSfDbapNoBkMJbanGyL0GhdGtIaA3B4cOnfttQ0zBto3vuGXSrxsrfLeOTAYv48z/Xe9GviIMOm1SxpH2DR1khP9he4LFZsbW9IUL82KNdbpLAaT68fLszTw9cxMa/ac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=Xc02vhhA; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=T9hBFBJxGOqEN46Rzq3IDVzYp56XQV1MU7sVARX8R3k=; b=Xc02vhhAaIX2iWZ94yDZOmR6CY Uu5VlriWFu85b//G2mCV1xXSsllr8YEVdKyh5S+ym+eBG3c4j4u9aiSo4zuiRYjQ6zLxHBOt3d+U3 0HS69k/gU8sE5I5u9Xa5kCKG/xxCMy8KsqP9ZEkB4O2esPT5lFonAnzdKTMmAfA98U6g=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rWzZZ-0072Jq-Ms; Mon, 05 Feb 2024 15:03:45 +0100 Date: Mon, 5 Feb 2024 15:03:45 +0100 From: Andrew Lunn 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 Subject: Re: [PATCH 1/2] net: asix: add 0b95:1790 to AX88179A device list Message-ID: References: <20240205104049.48900-1-christianshewitt@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240205104049.48900-1-christianshewitt@gmail.com> On Mon, Feb 05, 2024 at 10:40:48AM +0000, Christian Hewitt wrote: > Add a generic AX88179A entry for the 0b95:1790 device id: > > kernel: usb 2-1: New USB device found, idVendor=0b95, idProduct=1790, bcdDevice= 2.00 > kernel: usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > 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: -32" errors > suggest ax88178_info might not be the correct choice. I'm not a serious coder so I > need to "ask the audience" for suggestions on what more might be needed? I would probably start by determining what ax88179_read_cmd() is causing that print. Maybe print in addition cmd, and value. Or add a WARN() so you get a stack trace. It might be possible to figure it out by just looking at the code. How many places actually pass index=0? Andrew