]> git.baikalelectronics.ru Git - 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)
commita9239d8b6586e29abb8925d0d7ca094c100097f8
tree484f1d67dffdf05e99663930f634160ce7b98f5d
parentccbdd3f7e411ce54fade426bbc527f7a0f316045
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