]> git.baikalelectronics.ru Git - uboot.git/commit
phy: Include NC-SI in phy setup
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 18 Jun 2019 01:37:18 +0000 (11:37 +1000)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Mar 2020 23:11:23 +0000 (18:11 -0500)
commit65512f5885df40f61a9b3e147ed27114f0433367
treed47454b8dda54689225136c99125c968f9230680
parent7c577579ffccc03e4fb0fe9c440f0ddefbf20083
phy: Include NC-SI in phy setup

Add NC-SI to the usual phy handling. This makes two notable changes:
- Somewhat similar to a fixed phy, phy_connect() will create an NC-SI
phy if CONFIG_PHY_NCSI is defined.
- An early return is added to phy_read() and phy_write() to handle a
case like the NC-SI phy which does not define a bus.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/phy.c
include/phy.h
include/phy_interface.h