Re: [PATCH v2] usb: dwc3: Don't switch OTG -> peripheral if extcon is present

From: Greg KH
Date: Tue Feb 22 2022 - 01:01:21 EST


On Mon, Feb 21, 2022 at 11:20:20AM -0800, Andrey Smirnov wrote:
> If the extcon device exists, get the mode from the extcon device. If
> the controller is DRD and the driver is unable to determine the mode,
> only then default the dr_mode to USB_DR_MODE_PERIPHERAL.
>
> Cc: Felipe Balbi <balbi@xxxxxxxxxx>
> Cc: Thinh Nguyen <thinhn@xxxxxxxxxxxx>
> Cc: linux-usb@xxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Reviewed-by: Thinh Nguyen <Thinh.Nguyen@xxxxxxxxxxxx>
> Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx>
> ---
>
> v1 of the patch:
>
> https://lore.kernel.org/linux-usb/20220206014532.372109-1-andrew.smirnov@xxxxxxxxx/T/#u
>
> previons discussion:
>
> https://lore.kernel.org/linux-usb/20220131192102.4115473-1-andrew.smirnov@xxxxxxxxx/
>

You forgot to say what changed in this version.

thanks,

greg k-h