From: Florian Fainelli Date: Thu, 26 Jun 2014 17:26:20 +0000 (-0700) Subject: net: bcmgenet: disable clock before register_netdev X-Git-Tag: omap-for-v3.17/fixes-against-rc2~289^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f50ce96b7c0488cffe64255694a2451b4347d09;p=pandora-kernel.git net: bcmgenet: disable clock before register_netdev As soon as register_netdev() is called, the network device notifiers are running which means that other parts of the kernel, or user-space programs can call the network device ndo_open() callback and use the interface. Disable the Ethernet device clock before we register the network device such that we do not create the following situation: CPU0 CPU1 register_netdev() bcmgenet_open() clk_prepare_enable() clk_disable_unprepare() and leave the hardware block gated off, while we think it should be gated on. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed