Re: [PATCH net-next] net: dsa: microchip: Add suspend/resume support to KSZ DSA driver

From: Andrew Lunn
Date: Thu Dec 19 2024 - 12:24:56 EST


On Tue, Dec 17, 2024 at 06:03:11PM -0800, Tristram.Ha@xxxxxxxxxxxxx wrote:
> From: Tristram Ha <tristram.ha@xxxxxxxxxxxxx>
>
> The KSZ DSA driver starts a timer to read MIB counters periodically to
> avoid count overrun. During system suspend this will give an error for
> not able to write to register as the SPI system returns an error when
> it is in suspend state. This implementation stops the timer when the
> system goes into suspend and restarts it when resumed.
>
> Signed-off-by: Tristram Ha <tristram.ha@xxxxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew