]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: phy: add driver_data for bind test cmd
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 28 Jul 2020 07:13:32 +0000 (09:13 +0200)
committerSimon Glass <sjg@chromium.org>
Sat, 22 Aug 2020 13:58:39 +0000 (07:58 -0600)
commitcfa3ed4390c158b527bdb2ceceacf7eabae1b01e
treed79a2933bf00b9698e90ecb2676b21c85448334e
parent84f8e36f03fafa7e2e2ff822db90fefa6bd5f350
sandbox: phy: add driver_data for bind test cmd

Add driver data to existing compatible string "sandbox,phy".
Add an additional compatible string without driver_data

This will verify that bind command parses, finds and passes the
correct driver data to device_bind_with_driver_data() by using
driver_data in the second sandbox_phy_ids table entry.
In sandbox_phy_bind() a check is added to validate driver_data
content.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/phy/sandbox-phy.c