OSDN Git Service

net: phy: microchip_t1: add lan87xx_phy_init to initialize the lan87xx phy.
authorYuiko Oshino <yuiko.oshino@microchip.com>
Mon, 20 Apr 2020 15:51:41 +0000 (11:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Apr 2020 18:38:58 +0000 (11:38 -0700)
commit63edbcceef612bdd95fa28ce100460c7b79008a4
treeec9e727f2cd6dd0dde6623974a442cfa88f11d47
parentb9663b7ca6ff780555108394c9c1b409f63b99a7
net: phy: microchip_t1: add lan87xx_phy_init to initialize the lan87xx phy.

lan87xx_phy_init() initializes the lan87xx phy hardware
including its TC10 Wake-up and Sleep features.

Fixes: 3e50d2da5850 ("Add driver for Microchip LAN87XX T1 PHYs")
Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com>
v0->v1:
    - Add more details in the commit message and source comments.
    - Update to the latest initialization sequences.
    - Add access_ereg_modify_changed().
    - Fix access_ereg() to access SMI bank correctly.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/microchip_t1.c