]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mvneta: Fix hang when loading the mvneta driver
authorArnaud Patard \(Rtp\) <arnaud.patard@rtp-net.org>
Mon, 29 Jul 2013 19:56:47 +0000 (21:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2013 02:32:36 +0000 (19:32 -0700)
commitaded09555b7a0748a692d0d644ac54c10c1c0757
tree134b748250bc346617d81efc83038a1f54bc6ef5
parent7b70176421993866e616f1cbc4d0dd4054f1bf78
mvneta: Fix hang when loading the mvneta driver

When the mvneta driver is compiled, it'll be loaded with clocks disabled.
This implies that the clocks should be enabled again before any register
access or it'll hang.

To fix it:
- enable clock earlier
- move timer callback after setting timer.data

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c