[PATCH v5 2/5] sandbox: phy: add driver_data for bind test cmd
Simon Glass
sjg at chromium.org
Sun Aug 23 01:18:10 CEST 2020
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 at st.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
drivers/phy/sandbox-phy.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list