summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorNimrod Andy <B38611@freescale.com>2014-08-21 13:09:38 +0400
committerDavid S. Miller <davem@davemloft.net>2014-08-22 21:45:56 +0400
commit91c0d987a9788dcc5fe26baafd73bf9242b68900 (patch)
tree82ccf2f5b675f2a65a362772b8875817d15ce13a /net
parent08f1a1b9d1a9902498f7c4bd93b14899dda18708 (diff)
downloadlinux-91c0d987a9788dcc5fe26baafd73bf9242b68900.tar.xz
net: fec: ptp: avoid register access when ipg clock is disabled
The current kernel hang on i.MX6SX with rootfs mount from MMC. The root cause is that ptp uses a periodic timer to access enet register even if ipg clock is disabled. FEC ptp driver start one period timer to read 1588 counter register in the ptp init function that is called after FEC driver is probed. To save power, after FEC probe finish, FEC driver disable all clocks including ipg clock that is needed for register access. i.MX5x, i.MX6q/dl/sl FEC register access don't cause system hang when ipg clock is disabled, just return zero value. But for i.MX6sx SOC, it cause system hang. To avoid the issue, we need to check ptp clock status before ptp timer count access. Signed-off-by: Fugang Duan <B38611@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions