]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ethernet: ti: am65-cpsw-nuss: Fix rx_filter value for PTP support
authorChintan Vankar <c-vankar@ti.com>
Tue, 10 Mar 2026 16:09:40 +0000 (21:39 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Mar 2026 03:28:37 +0000 (20:28 -0700)
commit840c9d13cb1ca96683a5307ee8e221be163a2c1e
treea438b7e70304bae22660e12776c5d7d0c32f6739
parent87c2302813abc55c46485711a678e3c312b00666
net: ethernet: ti: am65-cpsw-nuss: Fix rx_filter value for PTP support

The "rx_filter" member of "hwtstamp_config" structure is an enum field and
does not support bitwise OR combination of multiple filter values. It
causes error while linuxptp application tries to match rx filter version.
Fix this by storing the requested filter type in a new port field.

Fixes: 97248adb5a3b ("net: ti: am65-cpsw: Update hw timestamping filter for PTPv1 RX packets")
Signed-off-by: Chintan Vankar <c-vankar@ti.com>
Link: https://patch.msgid.link/20260310160940.109822-1-c-vankar@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c
drivers/net/ethernet/ti/am65-cpsw-nuss.h