]> 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)
commite642ee624353032254650d0c86c217e2fa95985b
tree484f1d67dffdf05e99663930f634160ce7b98f5d
parent246811279fb8c7827378f916f414cebb39db42a5
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