]> git.baikalelectronics.ru Git - kernel.git/commit
NET: mdio-octeon: Enable the hardware before using it.
authorDavid Daney <ddaney@caviumnetworks.com>
Fri, 2 Apr 2010 01:17:54 +0000 (18:17 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 30 Apr 2010 19:52:52 +0000 (20:52 +0100)
commit46dd7b198862e624ba1bfaf167db1f46e9dee7be
tree19577e2567bf4886257bd4190de6d77b275d49e6
parentb544641f5dcaa53d719dbe4dbe6c0ebbc6562a6e
NET: mdio-octeon: Enable the hardware before using it.

In some cases the mdio bus is not enabled at the time of probing.
This prevents anything from working, so we will enable it before
trying to use it, and disable it when the driver is removed.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
To: netdev@vger.kernel.org
To: gregkh@suse.de
Patchwork: http://patchwork.linux-mips.org/patch/1090/
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/net/phy/mdio-octeon.c