Re: [PATCH 10/18] usb: dwc2: Add functions to check the HW OTG config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John,

On Wed, Dec 2, 2015 at 11:13 AM, John Youn <John.Youn@xxxxxxxxxxxx> wrote:
> Added functions to query the GHWCFG2.OTG_MODE. This tells us whether the
> controller hardware is configured for OTG, device-only, or host-only.
>
> Signed-off-by: John Youn <johnyoun@xxxxxxxxxxxx>
> ---
>  drivers/usb/dwc2/core.c | 37 +++++++++++++++++++++++++++++++++++++
>  drivers/usb/dwc2/core.h | 13 +++++++++++++
>  2 files changed, 50 insertions(+)

On a backport to 3.14 on rk3288, confirmed that one port is properly
identified as host only and the other as OTG.  Specifically:

dwc2_hw_is_device() = false on both ports
dwc2_hw_is_host() = true on host only port, false on otg port
dwc2_hw_is_otg() = true on otg port (didn't test on host only port,
but by code inspection should be right).

These functions also look sane according to the databook, so feel free to add:

Tested-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux