Re: [PATCH net-next v2 06/11] net: dsa: microchip: ksz9477: basic interrupt support

2020-11-13 Thread Christian Eggers
On Friday, 13 November 2020, 00:26:17 CET, Vladimir Oltean wrote: > On Thu, Nov 12, 2020 at 04:35:32PM +0100, Christian Eggers wrote: > > Interrupts are required for TX time stamping. Probably they could also > > be used for PHY connection status. > > Do the KSZ switches have an internal PHY? And

Re: [PATCH net-next v2 06/11] net: dsa: microchip: ksz9477: basic interrupt support

2020-11-12 Thread Vladimir Oltean
On Thu, Nov 12, 2020 at 04:35:32PM +0100, Christian Eggers wrote: > Interrupts are required for TX time stamping. Probably they could also > be used for PHY connection status. Do the KSZ switches have an internal PHY? And there's a single interrupt line, shared between the PTP timestamping engine,

[PATCH net-next v2 06/11] net: dsa: microchip: ksz9477: basic interrupt support

2020-11-12 Thread Christian Eggers
Interrupts are required for TX time stamping. Probably they could also be used for PHY connection status. This patch only adds the basic infrastructure for interrupts, no interrupts are actually enabled nor handled. ksz9477_reset_switch() must be called before requesting the IRQ (in ksz9477_init(