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)
commite2ffeaa16250ec6372412c0f268449803c321db6
treed47454b8dda54689225136c99125c968f9230680
parentf641a8ac93e0c0179fe6f73429812af228109ff2
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