From: Dimitri Fedrau <dima.fedrau@gmail.com>
To: Simon Horman <horms@kernel.org>
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Stefan Eichenberger <eichest@gmail.com>,
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
Date: Mon, 8 Jan 2024 12:16:48 +0100 [thread overview]
Message-ID: <20240108111648.GA28777@debian> (raw)
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 <dima.fedrau@gmail.com>
> > ---
> > 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
next prev parent reply other threads:[~2024-01-08 11:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-08 9:36 [PATCH v4 net-next 0/5] net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2220 PHY Dimitri Fedrau
2024-01-08 9:36 ` [PATCH v4 net-next 1/5] net: phy: Add BaseT1 auto-negotiation constants Dimitri Fedrau
2024-01-08 13:49 ` Andrew Lunn
2024-01-08 14:25 ` Dimitri Fedrau
2024-01-08 9:36 ` [PATCH v4 net-next 2/5] net: phy: Support 100/1000BT1 linkmode advertisements Dimitri Fedrau
2024-01-08 9:36 ` [PATCH v4 net-next 3/5] net: phy: c45: detect 100/1000BASE-T1 " Dimitri Fedrau
2024-01-08 9:36 ` [PATCH v4 net-next 4/5] net: phy: marvell-88q2xxx: fix typos Dimitri Fedrau
2024-01-08 14:02 ` Andrew Lunn
2024-01-08 14:31 ` Dimitri Fedrau
2024-01-08 14:05 ` Andrew Lunn
2024-01-08 9:37 ` [PATCH v4 net-next 5/5] net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2220 PHY Dimitri Fedrau
2024-01-08 11:08 ` Simon Horman
2024-01-08 11:16 ` Dimitri Fedrau [this message]
2024-01-11 13:49 ` kernel test robot
2024-01-08 11:18 ` [PATCH v4 net-next 0/5] " Heiner Kallweit
2024-01-08 11:24 ` Dimitri Fedrau
2024-01-08 11:28 ` Heiner Kallweit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240108111648.GA28777@debian \
--to=dima.fedrau@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eichest@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.