public inbox for linux-phy@lists.infradead.org
 help / color / mirror / Atom feed
From: Vladimir Oltean <vladimir.oltean@nxp.com>
To: Tanjeff Moos <Tanjeff.Moos@westermo.com>
Cc: Sean Anderson <sean.anderson@seco.com>,
	"linux-phy@lists.infradead.org" <linux-phy@lists.infradead.org>
Subject: Re: Lynx 10G SerDes Driver on my kernel
Date: Tue, 2 Dec 2025 18:29:19 +0200	[thread overview]
Message-ID: <20251202162919.ow53dn7c3x2lguqr@skbuf> (raw)
In-Reply-To: <a95dcad3-c684-4c2d-834c-07e92132eb85@westermo.com>

Hi Tanjeff,

On Tue, Dec 02, 2025 at 12:12:26PM +0100, Tanjeff Moos wrote:
> Hello Vladimir,
> 
> I want to use your Lynx 10G SerDes driver (plus fman and fsl_guts) on
> our OpenWRT kernel (6.6.110) and don't know how to integrate it properly.
> 
> I only found the driver in the NXP kernel[1]. Did you send patch to a
> linux kernel mailing list that I may apply?
> 
> Kind regards, Tanjeff
> 
> 
> [1] https://github.com/nxp-imx/linux-imx.git
>

(I'm unsure why you CCed linux-phy, but OK)

Picking the right base kernel seems to be of utmost importance. From
what I know, OpenWRT maintain their own kernel version and don't use
vendor kernels (they import patches from vendor kernels as .patch files,
however).

I see this commit in OpenWRT:

commit 6942ca412124a1f322e19e2289a59ed8e27b9c24
Author: Pawel Dembicki <paweldembicki@gmail.com>
Date:   Sat Nov 1 23:36:36 2025 +0100

    layerscape: switch to Linux 6.12

    Linux 6.12 has been validated on Layerscape platforms, including NXP
    reference boards and multiple custom designs. Tests covered system
    boot, networking, storage, and common peripherals, with no regressions
    observed.

    Enable 6.12 as the default to continue broader testing and integration.

    Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/20614
    Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

To integrate the Lynx 10G driver, you'll need to do that on your own as
patches. The correct git tree used by Layerscape boards in Linux Factory is:
https://github.com/nxp-qoriq/linux/tree/lf-6.12.34-2.1.0

My strong recommendation, assuming you want something stable, is to
integrate the NXP Linux Factory patches, which you'll receive some
official NXP support for.

The rest of the email is just for the sake of full transparency. I will
be talking about my development work, which I strongly recommend that
you do not integrate into OpenWrt at this stage.

The SerDes patches (both for the 10G and the 28G Lynx) are being
constantly reworked in an attempt to get as much upstream as possible.
Since the 10G and the 28G Lynx SerDes blocks are very similar, they
should share a lot of code. For that reason, adding a new driver for the
10G Lynx depends on some changes being made in the 28G Lynx.

I am keeping a personal development branch on top of linux-next here:
https://github.com/vladimiroltean/linux/commits/net-phy-upstreaming
*However* I modify it frequently, *and* I only retest those
modifications rigorously when I need to (i.e. when I need to submit some
patches upstream). I am doing this because any time I am making a change
as a result of a review comment, it has to propagate during rebase like
a shock wave through a huge stack of dishes.

So if you pick up the patches from this branch today, there is no
guarantee you will find them in the same state next week.

The bottleneck is on the patches being accepted into linux-phy.
Currently a group of 15 patches from this development branch have been
submitted to the mailing list a week ago:
https://lore.kernel.org/linux-phy/20251125114847.804961-1-vladimir.oltean@nxp.com/
and that's about it. There are 22 more linux-phy patches on top of that
to be accepted until mainline gains some support for the 10G Lynx. And
that isn't considering:
- device trees, which are also waiting for the acceptance of the driver
- networking consumer driver changes (I'm moving SerDes handling into
  the Lynx PCS driver, in order for not just dpaa-eth to benefit from
  it, but also enetc, felix, dpaa2)

Out of curiosity, for what platform and what use case do you need the patches?

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2025-12-02 16:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-02 11:12 Lynx 10G SerDes Driver on my kernel Tanjeff Moos
2025-12-02 16:29 ` Vladimir Oltean [this message]
2025-12-03 11:41   ` Tanjeff Moos
2025-12-03 12:26     ` Vladimir Oltean
2025-12-03 16:25       ` Tanjeff Moos
2025-12-03 18:00         ` Vladimir Oltean
2025-12-04 19:01           ` Tanjeff Moos
2025-12-04 19:34             ` Vladimir Oltean
2025-12-05 11:38               ` Tanjeff Moos
2025-12-05 12:44                 ` Vladimir Oltean
2025-12-08 16:50                   ` Tanjeff Moos
2026-02-05 16:47                   ` Tanjeff Moos
2026-02-08 13:42                     ` Vladimir Oltean
2026-02-12  8:30                       ` Tanjeff Moos

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=20251202162919.ow53dn7c3x2lguqr@skbuf \
    --to=vladimir.oltean@nxp.com \
    --cc=Tanjeff.Moos@westermo.com \
    --cc=linux-phy@lists.infradead.org \
    --cc=sean.anderson@seco.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox