Commit 840c9d1
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: 97248ad ("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>1 parent 87c2302 commit 840c9d1
2 files changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
1354 | | - | |
| 1354 | + | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | 1357 | | |
| |||
1811 | 1811 | | |
1812 | 1812 | | |
1813 | 1813 | | |
1814 | | - | |
| 1814 | + | |
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
1818 | 1818 | | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
1819 | 1822 | | |
1820 | 1823 | | |
1821 | 1824 | | |
| |||
1825 | 1828 | | |
1826 | 1829 | | |
1827 | 1830 | | |
1828 | | - | |
1829 | | - | |
| 1831 | + | |
| 1832 | + | |
1830 | 1833 | | |
1831 | 1834 | | |
1832 | 1835 | | |
| |||
1863 | 1866 | | |
1864 | 1867 | | |
1865 | 1868 | | |
1866 | | - | |
| 1869 | + | |
1867 | 1870 | | |
1868 | 1871 | | |
1869 | 1872 | | |
| |||
1888 | 1891 | | |
1889 | 1892 | | |
1890 | 1893 | | |
1891 | | - | |
1892 | | - | |
| 1894 | + | |
1893 | 1895 | | |
1894 | 1896 | | |
1895 | 1897 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments