Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1559436rdb; Mon, 8 Jan 2024 03:17:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IH34xj74w7pDXGnF0OLNE+4krv8Z7a4X3J71nRJMBGsmUFxoM0osY7bXza2qNqxv496s5Aq X-Received: by 2002:a25:b297:0:b0:dbd:bc92:f932 with SMTP id k23-20020a25b297000000b00dbdbc92f932mr968990ybj.64.1704712624763; Mon, 08 Jan 2024 03:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704712624; cv=none; d=google.com; s=arc-20160816; b=LsZzS1Ohd3RQ7Vzk2iLsFNQ97jlZsA3u1n9oQxvhy4gwgxcCcbZtuiQTAAwm0hvQT0 upImFSUfGcMVOjrccQQb+lm7jSC4dhVJ1vZlcrDhorwiMlnyRQbU92JorfG5kq9FUxFQ d3GgooeWFxGLC+iQ/xZeSDowsltgyTS0hTVCPla4mJHoES7Af1LiRBpc6fyTLsfOV+yT PlzzJZEjy3bKrgxeCGBnS6ZBUDSY/FLqLpq8q2ocjXKq1KiRnyzSWRT84SF71gnaO8yn XOC2882o0749cDAF863OZhTzLfip+DmktuLo5ywP7QmmWFqA7NhAP7/TA6v20VYLZEfK D1bA== 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=SezONTGW0o9omRljlmdl8+OgfSQw/IsfLT4LzpWIjaE=; fh=Bv0XVaYwB7JoYT98gQ4IbEUrCY0DLd8mnSOIIuLWToI=; b=k11+lpD/2eSXvnEBJ5vUdmob1Erli6XinrLEz/gkqIkDEBfltrd35MwD9qRELmiWUb yZA/yBFEVIxKS1t+JfnyMuSkpNqEk5dEZHaW/VpcvGhi2Z18plbCtBq0qutlFJwyKArV mkGCdtA+n7WS2HnZWsPCxlhUgW+mHBXgc3wJYdpUTpkldgbDpcvG9clpb0VPbow7SCah V8P+QNkDzqp1HZ7mYWDFajFzhpft/ZYrI8r8sbajmBrtc3bRlr4oomjHKHiOkPIWoGHU a2GkegusjM3ueVBQIxMKkY/359svBAwjneSKWTbqy6OCGZLnnl2F6U6OCbs8/hSCacpK BZoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="jJ8D/JVE"; spf=pass (google.com: domain of linux-kernel+bounces-19400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id cq10-20020a05622a424a00b0042991831666si2966989qtb.272.2024.01.08.03.17.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 03:17:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="jJ8D/JVE"; spf=pass (google.com: domain of linux-kernel+bounces-19400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 7CE7A1C221B2 for ; Mon, 8 Jan 2024 11:17:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE33014291; Mon, 8 Jan 2024 11:16:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jJ8D/JVE" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 655D714265; Mon, 8 Jan 2024 11:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a28bf46ea11so295229366b.1; Mon, 08 Jan 2024 03:16:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704712611; x=1705317411; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SezONTGW0o9omRljlmdl8+OgfSQw/IsfLT4LzpWIjaE=; b=jJ8D/JVEMsFQWie1icZ0gl+bJbVdvrkKOZqdRxhSk9drmojUk93EQJt/F6qxnlrV3f ocrwq1KbBLvMOL/XfWM4sUWqUnj3nchEbR2CKGGydUOKe/8miCjAnJyeWbtnup/6BG4n RO+RQ8756w9LNpyBOF/EcMqYYX0pEOBaE7XWfNvhu+KFzG55marcLcwaUyMBvY023w8O j388tfJtEwsJXjwlccFoe3dmmGBMCsfH4nyiTVWKPWthso7HBct+KgdLkKDbSf/NNz5I 2ZQq1pkQBMw74a/ai8IqXqTRlYBXb6WhWxUfi0F/dfJynyX+hYp2MbQHkEghJzvqnQLV h8ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704712611; x=1705317411; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SezONTGW0o9omRljlmdl8+OgfSQw/IsfLT4LzpWIjaE=; b=snT8Mvjs0replLfsW0DjsMJRIGY0lNbYCFbYstiH/aOfxXL2I+miLLecJ0Xcu5O6EQ plNsoz4bHs80N6++OAGS592Mxs/KTHeq9KuLXpCRnFdRLSZNOinZHbcO+GqFVrj6RX+d CI5YywuNQrZtwXfmyYNHvd9rtx9iFABqt2nrNJeNZZaXJXMpMXZ9mrV/d701QgNmThff UsoAOFbxvZKzFy3AstGavxbrYcngOBqSnU4s+zRiqTT4HAib61rFVBJMCSaalif2NnkP SUVFss4GOlQ5zhbAxa0QPhC4VvyFjSMzoQMEito5XaFn0rYO5nSwVixxr6s3/Ec72GJK ESmQ== X-Gm-Message-State: AOJu0YyzQNGjiSvhgeVPFYhhRxohsIBtkBaYmTiecMZSVK//KuRfdN79 6nQJKsoC1Ac8bhsrsQVhQdI= X-Received: by 2002:a17:907:2cd1:b0:a28:c148:d53d with SMTP id hg17-20020a1709072cd100b00a28c148d53dmr3301131ejc.66.1704712611430; Mon, 08 Jan 2024 03:16:51 -0800 (PST) Received: from debian ([93.184.186.109]) by smtp.gmail.com with ESMTPSA id d26-20020a170906175a00b00a27c463fbdesm3832568eje.211.2024.01.08.03.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 03:16:50 -0800 (PST) Date: Mon, 8 Jan 2024 12:16:48 +0100 From: Dimitri Fedrau To: Simon Horman Cc: Andrew Lunn , 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 v4 net-next 5/5] net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2220 PHY Message-ID: <20240108111648.GA28777@debian> References: <20240108093702.13476-1-dima.fedrau@gmail.com> <20240108093702.13476-6-dima.fedrau@gmail.com> <20240108110844.GH132648@kernel.org> 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: <20240108110844.GH132648@kernel.org> Am Mon, Jan 08, 2024 at 11:08:44AM +0000 schrieb Simon Horman: > On Mon, Jan 08, 2024 at 10:37:00AM +0100, Dimitri Fedrau wrote: > > Add a driver for the Marvell 88Q2220. This driver allows to detect the > > link, switch between 100BASE-T1 and 1000BASE-T1 and switch between > > master and slave mode. Autonegoation is supported. > > nit: Autonegotiation > Will fix it in V5. > > Signed-off-by: Dimitri Fedrau > > --- > > drivers/net/phy/marvell-88q2xxx.c | 206 +++++++++++++++++++++++++++++- > > include/linux/marvell_phy.h | 1 + > > 2 files changed, 201 insertions(+), 6 deletions(-) > > > > diff --git a/drivers/net/phy/marvell-88q2xxx.c b/drivers/net/phy/marvell-88q2xxx.c > > ... > > > @@ -29,6 +36,42 @@ > > > > #define MDIO_MMD_PCS_MV_RX_STAT 33328 > > > > +struct mmd_val { > > + int devad; > > + u32 regnum; > > + u16 val; > > +}; > > + > > +const struct mmd_val mv88q222x_revb0_init_seq0[] = { > > + { MDIO_MMD_PCS, 0x8033, 0x6801 }, > > + { MDIO_MMD_AN, MDIO_AN_T1_CTRL, 0x0 }, > > + { MDIO_MMD_PMAPMD, MDIO_CTRL1, > > + MDIO_CTRL1_LPOWER | MDIO_PMA_CTRL1_SPEED1000 }, > > + { MDIO_MMD_PCS, 0xfe1b, 0x48 }, > > + { MDIO_MMD_PCS, 0xffe4, 0x6b6 }, > > + { MDIO_MMD_PMAPMD, MDIO_CTRL1, 0x0 }, > > + { MDIO_MMD_PCS, MDIO_CTRL1, 0x0 }, > > +}; > > + > > +const struct mmd_val mv88q222x_revb0_init_seq1[] = { > > + { MDIO_MMD_PCS, 0xfe79, 0x0 }, > > + { MDIO_MMD_PCS, 0xfe07, 0x125a }, > > + { MDIO_MMD_PCS, 0xfe09, 0x1288 }, > > + { MDIO_MMD_PCS, 0xfe08, 0x2588 }, > > + { MDIO_MMD_PCS, 0xfe11, 0x1105 }, > > + { MDIO_MMD_PCS, 0xfe72, 0x042c }, > > + { MDIO_MMD_PCS, 0xfbba, 0xcb2 }, > > + { MDIO_MMD_PCS, 0xfbbb, 0xc4a }, > > + { MDIO_MMD_AN, 0x8032, 0x2020 }, > > + { MDIO_MMD_AN, 0x8031, 0xa28 }, > > + { MDIO_MMD_AN, 0x8031, 0xc28 }, > > + { MDIO_MMD_PCS, 0xffdb, 0xfc10 }, > > + { MDIO_MMD_PCS, 0xfe1b, 0x58 }, > > + { MDIO_MMD_PCS, 0xfe79, 0x4 }, > > + { MDIO_MMD_PCS, 0xfe5f, 0xe8 }, > > + { MDIO_MMD_PCS, 0xfe05, 0x755c }, > > +}; > > nit: mv88q222x_revb0_init_seq0 and mv88q222x_revb0_init_seq1 seem > to only be used in this file. Perhaps they should be static. > > ... You are right, will fix it in V5. Thanks. Best regards, Dimitri