]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drivers: net: cpsw: fix for cpsw crash when build as modules
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 12 Dec 2013 04:09:05 +0000 (22:09 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Dec 2013 18:46:57 +0000 (13:46 -0500)
commitf280e89ad6a29d9969cb6b216123c798e1689bc4
tree484f1d67dffdf05e99663930f634160ce7b98f5d
parentd9601a36ffdb5c142697bef1228afb5ba4ee4003
drivers: net: cpsw: fix for cpsw crash when build as modules

When CPSW and Davinci MDIO are build as modules, CPSW crashes when
accessing CPSW registers in CPSW probe. The same is working in built-in
as the CPSW clocks are enabled in Davindi MDIO probe, SO Enabling the
clocks before accessing the version register and moving out the other
register access to cpsw device open.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c