usb: cdns3: delete role_override
authorPeter Chen <peter.chen@nxp.com>
Tue, 31 Mar 2020 08:10:03 +0000 (16:10 +0800)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:37 +0000 (11:09 +0300)
commit160c163482974f4608c735b6a9745dd5140608df
tree78af9438ae518ecfb842d1fab012081649d4a8e4
parent23d6dd6c2ab6e177bc9ac19cb2bad9b8d120353c
usb: cdns3: delete role_override

In short, we have three kinds of role switches:
- Based on SoC: ID and VBUS
- Based on external connnctor, eg, Type-C or GPIO Connector
- Based on user choices through sysfs

Since HW handling and usb-role-switch handling are at
different places, we do not need role_override any more,
and this flag could not judge external connector case well.

With role_override deleted, We use cdns3_hw_role_switch for
the 1st use case, and usb-role-switch for the 2nd and 3rd cases.

Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/cdns3/core.c
drivers/usb/cdns3/core.h