diff options
| author | Tristram Ha <[email protected]> | 2024-12-18 02:02:40 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-12-20 21:28:42 +0000 |
| commit | 6ed3472173c575cd8aaed6c62eb74f7728404ee6 (patch) | |
| tree | 9ce2e1e96518ca4110de86a7b5e6cab874603ccd /drivers/net/dsa/microchip/ksz_common.h | |
| parent | qlcnic: use const 'struct bin_attribute' callbacks (diff) | |
| download | kernel-6ed3472173c575cd8aaed6c62eb74f7728404ee6.tar.gz kernel-6ed3472173c575cd8aaed6c62eb74f7728404ee6.zip | |
net: dsa: microchip: Do not execute PTP driver code for unsupported switches
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.h')
| -rw-r--r-- | drivers/net/dsa/microchip/ksz_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index 2bc96127a447..af17a9c030d4 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -92,6 +92,7 @@ struct ksz_chip_data { bool supports_rgmii[KSZ_MAX_NUM_PORTS]; bool internal_phy[KSZ_MAX_NUM_PORTS]; bool gbit_capable[KSZ_MAX_NUM_PORTS]; + bool ptp_capable; const struct regmap_access_table *wr_table; const struct regmap_access_table *rd_table; }; |
