Re: [RFC 08/10] misc: hisi_hikey_usb: Driver to support onboard USB gpio hub on Hikey960

From: Randy Dunlap
Date: Fri Sep 04 2020 - 08:53:46 EST


On 9/4/20 3:23 AM, Mauro Carvalho Chehab wrote:
> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> index e1b1ba5e2b92..8ceba6153ecc 100644
> --- a/drivers/misc/Kconfig
> +++ b/drivers/misc/Kconfig
> @@ -456,6 +456,15 @@ config PVPANIC
> a paravirtualized device provided by QEMU; it lets a virtual machine
> (guest) communicate panic events to the host.
>
> +config HISI_HIKEY_USB
> + tristate "USB GPIO Hub on HiSilicon Hikey960 Platform"
> + depends on OF && GPIOLIB

depends on (OF && GPIOLIB) || COMPILE_TEST
?
Both of those have stubs if they are not enabled IIRC.

> + help
> + If you say yes here this adds support for the on-board USB gpio hub

GPIO

> + found on the HiKey960, which is necssary to support switching between

necessary

> + the dual-role USB-C port and the USB-A host ports using only one USB
> + controller.
> +
> source "drivers/misc/c2port/Kconfig"
> source "drivers/misc/eeprom/Kconfig"
> source "drivers/misc/cb710/Kconfig"


thanks.
--
~Randy