Re: [PATCH v3 10/14] extcon: intel-int3496: Add support for controlling the USB-role mux

From: Hans de Goede
Date: Wed Oct 18 2017 - 05:14:33 EST


Hi,

On 18-10-17 04:33, Chanwoo Choi wrote:
Hi Hans,

On 2017ë 09ì 23ì 03:37, Hans de Goede wrote:
Cherry Trail SoCs have a built-in USB-role mux for switching between
the host and device controllers, rather then using an external mux
controller by a GPIO.

There is a driver using the mux-subsys to control this mux, this
commit adds support to the intel-int3496 driver to get a mux_controller
handle for the mux and set the mux through the mux-subsys rather then
through a GPIO.

Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
---
Changes in v2:
-Drop || COMPILE_TEST from Kconfig depends on, as we will now fail to
compile on !X86
-Minor code style tweaks
---
drivers/extcon/Kconfig | 3 +-
drivers/extcon/extcon-intel-int3496.c | 59 +++++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+), 1 deletion(-)

Acked-by: Chanwoo Choi <cw00.choi@xxxxxxxxxxx>

Note that there have been some comments on this series, and it
is not sure yet how we are going to end up handling this. So
please do not merge this yet, as we may end up with another
solution.

Regards,

Hans