android_kernel_motorola_sm6375/drivers/misc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yu Chen df2bbf3f35 ANDROID: misc: hisi_hikey_usb: Driver to support usb functionality of Hikey960
The HiKey960 has a fairly complex USB configuration due to it
needing to support a USB-C port for host/device mode and multiple
USB-A ports in host mode using a single USB controller.

See schematics here:
  https://github.com/96boards/documentation/raw/master/consumer/hikey/hikey960/hardware-docs/HiKey960_Schematics.pdf

This driver acts as a usb-role-switch intermediary, intercepting
the role switch notifications from the tcpm code, and passing
them on to the dwc3 core.

In doing so, it also controls the onboard hub and power gpios in
order to properly route the data lines between the USB-C port
and the onboard hub to the USB-A ports.

NOTE: It was noted that controlling the TYPEC_VBUS_POWER_OFF and
TYPEC_VBUS_POWER_ON values here is not reccomended. I'm looking
for a way to remove that bit from the logic here, but wanted to
still get feedback on this approach.

Cc: Greg Kroah-Hartman <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mark Rutland <[email protected]>
CC: ShuFan Lee <[email protected]>
Cc: Heikki Krogerus <[email protected]>
Cc: Suzuki K Poulose <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: Yu Chen <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Jun Li <[email protected]>
Cc: Valentin Schneider <[email protected]>
Cc: Jack Pham <[email protected]>
Cc: [email protected]
Cc: [email protected]
Bug: 146450171
Link: https://lore.kernel.org/lkml/[email protected]/
Signed-off-by: Yu Chen <[email protected]>
[jstultz: Major rework to make the driver a usb-role-switch
          intermediary]
Signed-off-by: John Stultz <[email protected]>
Change-Id: Icf381520abd46d083750d01f91e478321560fbf9
2020-03-23 22:55:17 +00:00
..
altera-stapl
c2port
cardreader
cb710
cxl
echo
eeprom Merge branch 'i2c/for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2019-09-24 16:48:02 -07:00
genwqe
habanalabs habanalabs: patched cb equals user cb in device memset 2020-03-12 13:00:11 +01:00
ibmasm
lis3lv02d
lkdtm This is the 5.4.18 stable release 2020-02-05 22:19:48 +00:00
mei mei: me: add comet point (lake) H device ids 2020-02-01 09:34:36 +00:00
mic
ocxl ocxl: Fix potential memory leak on context creation 2020-01-12 12:21:31 +01:00
sgi-gru
sgi-xp
ti-st
vmw_vmci
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c
atmel_tclib.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c scsi: enclosure: Fix stale device oops with hot replug 2020-01-17 19:48:42 +01:00
fastrpc.c misc: fastrpc: fix memory leak from miscdev->name 2019-12-31 16:43:58 +01:00
hisi_hikey_usb.c ANDROID: misc: hisi_hikey_usb: Driver to support usb functionality of Hikey960 2020-03-23 22:55:17 +00:00
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
Kconfig ANDROID: misc: hisi_hikey_usb: Driver to support usb functionality of Hikey960 2020-03-23 22:55:17 +00:00
kgdbts.c
lattice-ecp3-config.c
Makefile ANDROID: misc: hisi_hikey_usb: Driver to support usb functionality of Hikey960 2020-03-23 22:55:17 +00:00
pch_phub.c
pci_endpoint_test.c
phantom.c
pti.c
pvpanic.c
qcom-coincell.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c
tifm_core.c
tsl2550.c
uid_sys_stats.c ANDROID: cpufreq: times: Remove per-UID time in state tracking 2020-03-06 20:23:16 +00:00
vexpress-syscfg.c
vmw_balloon.c
xilinx_sdfec.c misc: xilinx_sdfec: fix xsdfec_poll()'s return type 2020-02-24 08:36:47 +01:00