Commit 7f0bc8f
net: dsa: microchip: Do not execute PTP driver code for unsupported switches
[ Upstream commit 6ed3472 ]
The PTP driver code only works for certain KSZ switches like KSZ9477,
KSZ9567, LAN937X and their varieties. This code is enabled by kernel
configuration CONFIG_NET_DSA_MICROCHIP_KSZ_PTP. As the DSA driver is
common to work with all KSZ switches this PTP code is not appropriate
for other unsupported switches. The ptp_capable indication is added to
the chip data structure to signal whether to execute those code.
Signed-off-by: Tristram Ha <tristram.ha@microchip.com>
Link: https://patch.msgid.link/20241218020240.70601-1-Tristram.Ha@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 0f80e21 ("net: dsa: microchip: Free previously initialized ports on init failures")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 482330f commit 7f0bc8f
2 files changed
Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1342 | 1342 | | |
1343 | 1343 | | |
1344 | 1344 | | |
| 1345 | + | |
1345 | 1346 | | |
1346 | 1347 | | |
1347 | 1348 | | |
| |||
1553 | 1554 | | |
1554 | 1555 | | |
1555 | 1556 | | |
| 1557 | + | |
1556 | 1558 | | |
1557 | 1559 | | |
1558 | 1560 | | |
| |||
1680 | 1682 | | |
1681 | 1683 | | |
1682 | 1684 | | |
| 1685 | + | |
1683 | 1686 | | |
1684 | 1687 | | |
1685 | 1688 | | |
| |||
1715 | 1718 | | |
1716 | 1719 | | |
1717 | 1720 | | |
| 1721 | + | |
1718 | 1722 | | |
1719 | 1723 | | |
1720 | 1724 | | |
| |||
1747 | 1751 | | |
1748 | 1752 | | |
1749 | 1753 | | |
| 1754 | + | |
1750 | 1755 | | |
1751 | 1756 | | |
1752 | 1757 | | |
| |||
1775 | 1780 | | |
1776 | 1781 | | |
1777 | 1782 | | |
| 1783 | + | |
1778 | 1784 | | |
1779 | 1785 | | |
1780 | 1786 | | |
| |||
1803 | 1809 | | |
1804 | 1810 | | |
1805 | 1811 | | |
| 1812 | + | |
1806 | 1813 | | |
1807 | 1814 | | |
1808 | 1815 | | |
| |||
1835 | 1842 | | |
1836 | 1843 | | |
1837 | 1844 | | |
| 1845 | + | |
1838 | 1846 | | |
1839 | 1847 | | |
1840 | 1848 | | |
| |||
1867 | 1875 | | |
1868 | 1876 | | |
1869 | 1877 | | |
| 1878 | + | |
1870 | 1879 | | |
1871 | 1880 | | |
1872 | 1881 | | |
| |||
1899 | 1908 | | |
1900 | 1909 | | |
1901 | 1910 | | |
| 1911 | + | |
1902 | 1912 | | |
1903 | 1913 | | |
1904 | 1914 | | |
| |||
2556 | 2566 | | |
2557 | 2567 | | |
2558 | 2568 | | |
2559 | | - | |
2560 | | - | |
2561 | | - | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
2562 | 2574 | | |
2563 | 2575 | | |
2564 | 2576 | | |
2565 | | - | |
2566 | | - | |
2567 | | - | |
2568 | | - | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
2569 | 2584 | | |
2570 | 2585 | | |
2571 | 2586 | | |
| |||
2585 | 2600 | | |
2586 | 2601 | | |
2587 | 2602 | | |
2588 | | - | |
| 2603 | + | |
| 2604 | + | |
2589 | 2605 | | |
2590 | | - | |
| 2606 | + | |
2591 | 2607 | | |
2592 | 2608 | | |
2593 | 2609 | | |
| |||
2606 | 2622 | | |
2607 | 2623 | | |
2608 | 2624 | | |
2609 | | - | |
| 2625 | + | |
| 2626 | + | |
2610 | 2627 | | |
2611 | 2628 | | |
2612 | 2629 | | |
2613 | | - | |
| 2630 | + | |
| 2631 | + | |
2614 | 2632 | | |
2615 | 2633 | | |
2616 | 2634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
0 commit comments