
18 Jul
2017
18 Jul
'17
4:02 p.m.
Hi Mario,
On 14 July 2017 at 05:55, Mario Six mario.six@gdsys.cc wrote:
For debug purposes it is sometimes useful to have the ability to interact with the driver functionality of a phy from the command line (e.g. to manually issue startup, configuration, or shutdown commands to the phy device).
This patch adds such a command, which allows issuing the following commands to a phy:
- getting the driver's name
- running the phy's configuration procedure (via calling phy_config)
- running the phy's startup procedure (via calling phy_startup)
- running the phy's shutdown procedure (via calling phy_shutdown)
Signed-off-by: Mario Six mario.six@gdsys.cc
cmd/Kconfig | 6 ++++++ cmd/mdio.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+)
This seems reasonable, but we need to figure out how to use driver model.
Regards, Simon