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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:20:03 +0000 (08:20 +0200)
commit7abefa3f9a4b3a43e861c8d8aefa986f874a0aa6
tree5ff534de25e99f24bddc1a54457a9f09548c0046
parenta12f3ad8d9525dc43b59a3ca0facb83997a60a67
net: phy: microchip_t1: add lan87xx_phy_init to initialize the lan87xx phy.

[ Upstream commit 63edbcceef612bdd95fa28ce100460c7b79008a4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/microchip_t1.c