On 2026-10-16T07:25:19, Mehmet Fide <[email protected]> wrote:
> usb: ehci-vf: take the controller index from the device tree
>
> "usb start" on a Colibri VF50 or VF61 ends in a data abort and a
> watchdog reset.
>
> vf_usb_of_to_plat() takes the controller index from dev_seq(), but the
> usbphy0 and usbphy1 aliases count as "usb" aliases when the uclass
> numbers its devices, so the two controllers get 2 and 3 and index past
> the two entries of phy_bases[] and nc_reg_bases[]. usb_oc_config() then
> writes through an address read from beyond the table.
>
> Follow the fsl,usbphy phandle, as ehci-mx6 does, and map the PHY node to
> the index of the table instead of trusting the sequence number.
>
> Signed-off-by: Mehmet Fide <[email protected]>
> Reviewed-by: Marek Vasut <[email protected]>
>
>  drivers/usb/host/ehci-vf.c | 17 ++++++++++++++++-
>  1 file changed, 16 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to