On 2026-10-16T07:25:19, Mehmet Fide <[email protected]> wrote:
> usb: ehci-vf: use usb_get_dr_mode()
>
> The driver parses the dr_mode property itself, through the flat tree,
> into an enum of its own that mirrors enum usb_dr_mode. Use
> usb_get_dr_mode() and USB_DR_MODE_* instead, as ehci-mx6 does, and take
> the ID detect GPIO through the device rather than its flat node. A
> dr_mode value the driver does not know now means host, as a missing
> property already did.
>
> Signed-off-by: Mehmet Fide <[email protected]>
>
>  drivers/usb/host/ehci-vf.c | 65 
> ++++++++++------------------------------------
>  1 file changed, 14 insertions(+), 51 deletions(-)

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

Reply via email to