Skip to content
Commit 801f1fa4 authored by Jean-Jacques Hiblot's avatar Jean-Jacques Hiblot Committed by Marek Vasut
Browse files

dm: usb: udc: Use SEQ_ALIAS to index the USB gadget ports



dfu, fastbot and other usb gadget commands take the USB port index as a
parameter. Currently this index is assigned in the order of the driver
bindings.
Changing this behavior using the SEQ_ALIAS feature. This option assign to
the device a SEQ number based on its alias (if it exists)

To use it we must set the DM_UC_FLAG_SEQ_ALIAS flag and follow the existing
naming convention: use "usb" for the name of the gadget UCLASS_DRIVER
(same as for the UCLASS_USB).

If no alias is provided, then the index falls back to the order in which
the bindings took place.

Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Reported-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Tested-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
parent 8c6cc71b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment