From: Mikhail Zhilkin <csharper2005@gmail.com>
To: David Lechner <dlechner@baylibre.com>, u-boot@lists.u-boot-project.org
Cc: jerome.forissier@arm.com, ryder.lee@mediatek.com,
weijie.gao@mediatek.com, chunfeng.yun@mediatek.com,
igor.belwon@mentallysanemainliners.org, jstephan@baylibre.com,
GSS_MTK_Uboot_upstream@mediatek.com, trini@konsulko.com
Subject: Re: [PATCH v1 3/3] net: mtk_eth: an8855: sync SerDes analog tuning with Linux driver
Date: Sat, 14 Nov 2026 12:03:35 +0300 [thread overview]
Message-ID: <f9c329a8-3dcd-4c66-aa49-de8fe912dee3@gmail.com> (raw)
In-Reply-To: <95e43ff4-7f8b-42d4-9a09-c4c15cf01247@baylibre.com>
Hi David,
On 11/10/26 00:25, David Lechner wrote:
>> + /* TX FIR - improve TX EYE */
>
> Probably should mention in this comment that these are 2500BASE-X values.
Agreed, I'll update the comment to clarify this.
>> + an8855_reg_read(priv, AN8855_INTF_CTRL_10, &val);
>> + val &= ~(0x1f << 24);
>> + val |= (0x04 << 24);
>> + val &= ~(0x1f << 16);
>> + val |= (0x00 << 16);
>
> nit: don't really need this line - unless we are going to follow up later
> with macros to give all of these names. And using GENMAK/FIELD_PREP/etc
> in a followup would be nice too. Don't combine that with fixes patches
> though.
Good point. I'll drop the redundant bitwise OR line in v2. I agree that
migrating to GENMASK/FIELD_PREP would be great for readability.
>> + /* RX CDR - improve RX Jitter Tolerance */
>> + an8855_reg_read(priv, AN8855_RG_QP_CDR_LPF_BOT_LIM, &val);
>> + val &= ~(0x7 << 24);
>> + val |= (0x5 << 24);
>> + val &= ~(0x7 << 20);
>> + val |= (0x5 << 20);
>> + an8855_reg_write(priv, AN8855_RG_QP_CDR_LPF_BOT_LIM, val);
>> +
>
> I don't know if order matters here, but it looks like the proposed Linux
> driver does this at the beginning of the init sequence rather than at the
> end.
You're right, the Linux driver applies these tuning parameters earlier.
I will move this block to the beginning of the init sequence in v2 to
mirror the behavior.
Thanks!
Mikhail
next prev parent reply other threads:[~2026-11-14 9:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-07 14:24 [PATCH v1 0/3] net: mtk_eth: an8855: fix packet loss and sync with Linux Mikhail Zhilkin
2026-11-07 14:24 ` [PATCH v1 1/3] net: mtk_eth: an8855: fix bitwise collision in RX_CTRL_8 register Mikhail Zhilkin
2026-11-09 21:23 ` David Lechner
2026-11-14 8:57 ` Mikhail Zhilkin
2026-11-07 14:24 ` [PATCH v1 2/3] net: mtk_eth: an8855: enable link error recovery Mikhail Zhilkin
2026-11-09 21:23 ` David Lechner
2026-11-14 8:58 ` Mikhail Zhilkin
2026-11-07 14:24 ` [PATCH v1 3/3] net: mtk_eth: an8855: sync SerDes analog tuning with Linux driver Mikhail Zhilkin
2026-11-09 21:25 ` David Lechner
2026-11-14 9:03 ` Mikhail Zhilkin [this message]
2026-11-09 21:23 ` [PATCH v1 0/3] net: mtk_eth: an8855: fix packet loss and sync with Linux David Lechner
2026-11-14 8:54 ` Mikhail Zhilkin
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=f9c329a8-3dcd-4c66-aa49-de8fe912dee3@gmail.com \
--to=csharper2005@gmail.com \
--cc=GSS_MTK_Uboot_upstream@mediatek.com \
--cc=chunfeng.yun@mediatek.com \
--cc=dlechner@baylibre.com \
--cc=igor.belwon@mentallysanemainliners.org \
--cc=jerome.forissier@arm.com \
--cc=jstephan@baylibre.com \
--cc=ryder.lee@mediatek.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=weijie.gao@mediatek.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.