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

Mario Six mario.six at gdsys.cc
Tue Jul 25 08:25:47 UTC 2017


Hi Simon,

On Tue, Jul 18, 2017 at 4:02 PM, Simon Glass <sjg at chromium.org> wrote:
> 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

Probably with a MDIO/MII uclass, see my comment on patch 9 ("phy: Support
Marvell 88X2242").

Best regards,

Mario


More information about the U-Boot mailing list