John,

On Wed, Dec 2, 2015 at 11:13 AM, John Youn <john.y...@synopsys.com> 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 <johny...@synopsys.com>
> ---
>  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 <diand...@chromium.org>
Reviewed-by: Douglas Anderson <diand...@chromium.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to