Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp40740rdb; Thu, 21 Dec 2023 02:07:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAe1wANL5hm0KPZ81gwqcC4aLYmUz3l08JEUBxDsvO6x26UIyS48WoWkPmM3n1ONVY0AM+ X-Received: by 2002:a05:6358:4404:b0:173:226:7e90 with SMTP id z4-20020a056358440400b0017302267e90mr1210719rwc.59.1703153227951; Thu, 21 Dec 2023 02:07:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703153227; cv=none; d=google.com; s=arc-20160816; b=M9H1HrjZlVrcLMEfRNqrV1vhdt2j2QrPGOjxE4wRS63qKf9g7O2gxkriZxZIWZFI7e TOb3J7JRBIuMgmflTa8U/COP7WqIE8HUSGZGgtWvFysNXwZhXQGYrlVjL1loNNVNk1yi mucZxZX4M3YSs80Oi08czFghtpZqc9NGouQx0t6bPqVP4aNxtjpvClpR1SNxMjv8aGvP H2pv0hA2px16APy+TimfoHtiEoQhpX+l6Jxyr2rg/xo9UGx+kbo+H6QUwg5Nx55UingG L96q3pCyq9HrEio6XWvTP+MTcSnEbfELY8pat+6tQfu5KKxmvTHoj6qekRspQ9fr2znb KyRA== ARC-Message-Signature: i=1; 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=nNHtlAW8aT/uWc6gxkoWAdVp1fHEqtpoZtfG2iX2QXk=; fh=oG7bweP8IWaFLtRAWiiDNwM/Uy9ksCy4A8hSxbvLJdk=; b=ujYgqlOHJYRumFcjlWSogGRTa2ZWzneTe1cqpoTSTRbe88lUbrMjXol21SSnltNj/c YX8FIdsNhwRIsJRgOr/729NB9dApUX+00pnUeC45R5uuQzxzPQZVIvNu9HMpRDtWFxis Z4A22Zh9sZuMHZsUTfl45TJyDxEOYv/RngQITKbgBW+9+4IC1D0VfesPPaEoxt9zYxjb d4s09qdkaZneKmT5rJQkcsHCvwx6zzl4XTFMkGiPBzkewSIA+/ni+uDgIUMW08pfBTsZ p1TZXig3PDj1Rrd9oDGKFwNsYS27/37rARbuSB8OYWvm0Uj7ghu//uZr/vQmajsaEuXH kMwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WHkXJP0Y; spf=pass (google.com: domain of linux-kernel+bounces-8165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l30-20020a63571e000000b005c6260b688esi1320091pgb.606.2023.12.21.02.07.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:07:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WHkXJP0Y; spf=pass (google.com: domain of linux-kernel+bounces-8165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8165-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 6B061B24406 for ; Thu, 21 Dec 2023 09:53:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FF1738DD3; Thu, 21 Dec 2023 09:53:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="WHkXJP0Y" X-Original-To: linux-kernel@vger.kernel.org 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 16A0446448; Thu, 21 Dec 2023 09:53:34 +0000 (UTC) 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=nNHtlAW8aT/uWc6gxkoWAdVp1fHEqtpoZtfG2iX2QXk=; b=WHkXJP0YBGJBO48/Q4+4us8COx j9bP8c1kWgG9CRL0fKYMmf3+t/vGfjc1yS4V/6sgu9RjNkF9ZKU5RiZcTNoLhTg9Ltl/2s/Q6MskI TOjLulxsKqOzanhBVSYW4WkWxkllAONBkpYRE7TjxFMgJvBbvAbtf+3xsIjZtxZuqqlo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rGFk7-003UwM-94; Thu, 21 Dec 2023 10:53:27 +0100 Date: Thu, 21 Dec 2023 10:53:27 +0100 From: Andrew Lunn To: Dimitri Fedrau Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Stefan Eichenberger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/4] net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2220 PHY Message-ID: References: <20231219093554.GA6393@debian> <20231221072853.107678-1-dima.fedrau@gmail.com> <20231221072853.107678-5-dima.fedrau@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: <20231221072853.107678-5-dima.fedrau@gmail.com> > -static int mv88q2xxxx_get_sqi(struct phy_device *phydev) > +static int mv88q2xxx_get_sqi(struct phy_device *phydev) > { > int ret; > > @@ -208,7 +283,8 @@ static int mv88q2xxxx_get_sqi(struct phy_device *phydev) > /* Read the SQI from the vendor specific receiver status > * register > */ > - ret = phy_read_mmd(phydev, MDIO_MMD_PCS, 0x8230); > + ret = phy_read_mmd(phydev, MDIO_MMD_PCS, > + MDIO_MMD_PCS_MV_RX_STAT); > if (ret < 0) > return ret; > > @@ -230,11 +306,208 @@ static int mv88q2xxxx_get_sqi(struct phy_device *phydev) > return ret & 0x0F; > } > > -static int mv88q2xxxx_get_sqi_max(struct phy_device *phydev) > +static int mv88q2xxx_get_sqi_max(struct phy_device *phydev) > { > return 15; > } This could be a patch of its own. Andrew