summaryrefslogtreecommitdiffstats
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorNimrod Andy2014-08-21 11:09:38 +0200
committerDavid S. Miller2014-08-22 19:45:56 +0200
commit91c0d987a9788dcc5fe26baafd73bf9242b68900 (patch)
tree82ccf2f5b675f2a65a362772b8875817d15ce13a /crypto/internal.h
parentcxgb4: Free completed tx skbs promptly (diff)
downloadkernel-qcow2-linux-91c0d987a9788dcc5fe26baafd73bf9242b68900.tar.gz
kernel-qcow2-linux-91c0d987a9788dcc5fe26baafd73bf9242b68900.tar.xz
kernel-qcow2-linux-91c0d987a9788dcc5fe26baafd73bf9242b68900.zip
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 'crypto/internal.h')
0 files changed, 0 insertions, 0 deletions