
On Tue, Jun 4, 2019 at 12:12 AM Alex Marginean alexm.osslist@gmail.com wrote:
A very simple test for DM_MDIO, mimicks a register write/read through the sandbox bus to a dummy PHY.
Signed-off-by: Alex Marginean alexm.osslist@gmail.com
Changes in v2: - new patch, v1 didn't have a test included Changes in v3: - DM_MDIO and PHYLIB are now implied in arc/Kconfig - added basic test for mdio reset op - simplified compatible, static probe function
arch/Kconfig | 2 + arch/sandbox/dts/test.dts | 4 ++ drivers/net/Kconfig | 10 +++++ drivers/net/Makefile | 1 + drivers/net/mdio_sandbox.c | 92 ++++++++++++++++++++++++++++++++++++++ test/dm/Makefile | 1 + test/dm/mdio.c | 53 ++++++++++++++++++++++ 7 files changed, 163 insertions(+) create mode 100644 drivers/net/mdio_sandbox.c create mode 100644 test/dm/mdio.c
Reviewed-by: Bin Meng bmeng.cn@gmail.com Tested-by: Bin Meng bmeng.cn@gmail.com