[U-Boot] [PATCH 18/51] cmd: mdio: Add 'driver' subcommand

Simon Glass sjg at chromium.org
Tue Jul 18 14:02:20 UTC 2017


Hi Mario,

On 14 July 2017 at 05:55, Mario Six <mario.six at 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 at 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


More information about the U-Boot mailing list