[PATCH v2 5/5] test/py: Add usb gadget binding test

Simon Glass sjg at chromium.org
Thu Apr 29 18:10:06 CEST 2021


On Mon, 19 Apr 2021 at 02:58, Patrice Chotard
<patrice.chotard at foss.st.com> wrote:
>
> Add a specific usb gadget binding test which check that
> binding a driver without compatible string is working as expected.
>
> the command "bind /usb at 1 usb_ether" should give the following "dm tree"
> command output:
>
> [...]
>  usb           0  [   ]   usb_sandbox           |-- usb at 1
>  usb_hub       0  [   ]   usb_hub               |   |-- hub
>  usb_emul      0  [   ]   usb_sandbox_hub       |   |   `-- hub-emul
>  usb_emul      1  [   ]   usb_sandbox_flash     |   |       |-- flash-stick at 0
>  usb_emul      2  [   ]   usb_sandbox_flash     |   |       |-- flash-stick at 1
>  usb_emul      3  [   ]   usb_sandbox_flash     |   |       |-- flash-stick at 2
>  usb_emul      4  [   ]   usb_sandbox_keyb      |   |       `-- keyb at 3
>  eth           4  [   ]   usb_ether             |   `-- usb at 1
> [...]
>
> Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Herbert Poetzl <herbert at 13thfloor.at>
>
> ---
>
> Changes in v2:
>   - add bind test
>
>  test/py/tests/test_bind.py | 7 +++++++
>  1 file changed, 7 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list