Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3112841rdb; Tue, 13 Feb 2024 07:15:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX/buI+onIC4pRVtQvlnY+U0Isuvao3wJ6BZbdNMIAeGMYerbD2Gfin9hCBMNkhkF+s/wvm42FTYnjaBvQGyKRdPAGT5vPYtOMx0wHrtg== X-Google-Smtp-Source: AGHT+IEeHoIYtqg3TonElVQ4lfW/o3tcJ24thVLYk+f150LaL8cNx+qQRA/7H6UfR3P+iQAu9frb X-Received: by 2002:a17:903:41cc:b0:1db:4941:f703 with SMTP id u12-20020a17090341cc00b001db4941f703mr1007200ple.15.1707837345814; Tue, 13 Feb 2024 07:15:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707837345; cv=pass; d=google.com; s=arc-20160816; b=Kz5OSNxOqVTRivGdGUiOLlr5QzFrx3Jqql78BNyqrLCRJNlm1eEtPcAJnS6Kly0RzW 35WRH3VDe/ce4VS9rhynjsqGHumuQX+11COG+fXm7PPzbE2KJjdimF3CX7RstnJoDEIk TAKAvd6bwB2ceR1ckybfcGn2rb2JEOqUmoGdO4PNxr/HCJyQSb3sIO3PLLibJTHw+lCF wRzEKkv13xJg1ACQB5A6xO+80oodNrMiIwuPDhqiYucgmAiUQQC6Ka7iBeJomFd90ooQ UipOuOlc7TfWqVPBpFSagdO4CEOfosMKna+8xGWqhVPe+eKjQUgMW6yEBdtFdv7CLGA9 Rtrw== 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=EW2Z4z4tbC8mVYcPOsOEQqRS2TMEj+6BsqWaI1ui/fo=; fh=feVukWQnCEe5E8oN9dFrNz/4VUmf4MqLOa0YWx+PzIo=; b=KzGajGiKY02OMxfQWYlWmKpRbnZZK4klnB6d/isTGdOiYu7W+AkJ/dQtDogxubQEJg ykcbsPETpKKxW14FBDe04IiclGOOTlS8pRROuN082gT0BJ2SU1jwtkXGf3A7bhze7b4J DbNFoenYoDoUIWDJxh5K7vzUAlzruK81Lg5SDd6wTcX2yOtOSfdRjc27vEPWKoOfpyq3 QShEiEjANHorY/yW56Psc+yjMP5rUPKON28ZvuGKOmEz4fjDTg+lQUONkU98cE2+82no ybUri6hc4nElzxJdHvihQn2IN0QmYSj2ONekLcOcJL6cOrHwdlwuhDKrg0Bnp+vFiu8M i6wQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WMEMpsba; 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-63784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=2; AJvYcCXcM4VGUQQDZKreJBOWILVF5DPcqgR1QU8jpVmPTbg4dL+P9M2TdjzAMbCWrG9bWTGS7OTd5TAs4bSCO+za7JwxWye7odkuDdMT+R/S6g== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h8-20020a170902748800b001d9a61d7bf0si2055969pll.186.2024.02.13.07.15.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 07:15:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WMEMpsba; 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-63784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63784-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E70328A8F4 for ; Tue, 13 Feb 2024 15:12:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAB225EE97; Tue, 13 Feb 2024 15:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="WMEMpsba" 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 CD0A95DF37; Tue, 13 Feb 2024 15:10:10 +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=1707837013; cv=none; b=N47HkaRrWKeZSZQNwUaaYG/c8e9BjmflqrZLFVm/Gzn0HGLBHvu9jg6X93yqx94i/8uqUJZCOPRMQwuUWn9StltbUPC+mfC9JJVUCD9q5+w+2F6UrZ26l3PpkOzRkJGVavFiL1AdZGeOmWQ5ZnuNu5zaVGutVyA8OHe4wPoW+5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707837013; c=relaxed/simple; bh=8JpYlpRZ/YtjwUK9dUoDXdjuuE48fRgeitE+8LL6FL4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ekr0m78F/UY3/7AHCzxUF5/wmXUayd/jFMogP7keJ37NlP9IqBBeHJsmWkiBYhQfKF1AOKrAMY898k0wJUNFPUF7f4HEW6hcHIeyhaBNfz2VJEKUh5wf6XecHBJhe96Lhb8JCPdjQOgcV6ySMYVmXkrwqMg0sQpqLzom7LMxYtw= 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=WMEMpsba; 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=EW2Z4z4tbC8mVYcPOsOEQqRS2TMEj+6BsqWaI1ui/fo=; b=WMEMpsbaiVbZvDHWgS+CI5/scn LOgxpQb6behfWkHoVBhMwiy32VWB7upCR7JI8TXUhic+m8pheSvjTvslYP5QKpWn3H17iu6gEfPok oz/pGjsKXyV0lcXEv3vCJS1GF88h0jcyHKuYuOWuKvGVMBHNK79BFTh04uo4WIJbYhbU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rZuQ5-007h0O-9x; Tue, 13 Feb 2024 16:10:01 +0100 Date: Tue, 13 Feb 2024 16:10:01 +0100 From: Andrew Lunn To: Christian Marangi Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Russell King (Oracle)" , Robert Marko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH] net: phy: aquantia: add AQR111 and AQR111B0 PHY ID Message-ID: References: <20240213133558.1836-1-ansuelsmth@gmail.com> <233cd45b-28d5-477d-a193-8273684953aa@lunn.ch> <65cb7a25.5d0a0220.de7b7.a1f3@mx.google.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: <65cb7a25.5d0a0220.de7b7.a1f3@mx.google.com> On Tue, Feb 13, 2024 at 03:18:09PM +0100, Christian Marangi wrote: > On Tue, Feb 13, 2024 at 03:09:57PM +0100, Andrew Lunn wrote: > > On Tue, Feb 13, 2024 at 02:35:51PM +0100, Christian Marangi wrote: > > > Add Aquantia AQR111 and AQR111B0 PHY ID. These PHY advertise 10G speed > > > but actually supports up to 5G speed, hence some manual fixup is needed. > > > > Any chance this is a "golden screwdriver" situation? The chip really > > can do 10G, but the firmware is supposed to limit it to 5G? This is > > just a firmware "bug"? > > > > >From [1] the PHY can support up to 5G so yes it is a firmware bug. I can > try searching for some regs to fix the wrong provision values if really > needed. > > [1] https://www.marvell.com/content/dam/marvell/en/public-collateral/transceivers/marvell-phys-transceivers-aqrate-gen3-product-brief-2019-09.pdf I think you missed the meaning of golden screwdriver. https://www.urbandictionary.com/define.php?term=Golden%20Screwdriver It could be that the silicon can do 10G, but marvell are selling it as a 5G device, with firmware limiting it to 5G. And that firmware limitation has a bug, so some of the 10G functionality is leaking through. Anyway, you change looks O.K. Reviewed-by: Andrew Lunn Andrew