Files
twx-linux/drivers
Heiko Thiery 7a7c9ced4c net: fec: ptp: avoid register access when ipg clock is disabled
[ Upstream commit 6a4d7234ae ]

When accessing the timecounter register on an i.MX8MQ the kernel hangs.
This is only the case when the interface is down. This can be reproduced
by reading with 'phc_ctrl eth0 get'.

Like described in the change in 91c0d987a9
the igp clock is disabled when the interface is down and leads to a
system hang.

So we check if the ptp clock status before reading the timecounter
register.

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Link: https://lore.kernel.org/r/20210225211514.9115-1-heiko.thiery@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-30 14:40:07 +02:00
..
…
…
…
…
…
…
…
…
2021-03-17 16:34:30 +01:00
…
2021-01-23 15:48:42 +01:00
…
…
…
…
2020-12-29 13:47:02 +01:00
…
…
2021-03-03 18:22:45 +01:00
…
…
…
…
…
…
…
…
2021-03-07 11:27:44 +01:00
…
…
…
…