]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: typec: wcove: Remove dependency on HW FSM
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 24 May 2018 10:49:52 +0000 (13:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 May 2018 16:17:00 +0000 (18:17 +0200)
commit05826ff135ee083d28c006fbde6e810f17437166
treed23df820b6b1b08419d652f18c7211b395ec83df
parentcb296846860531defe93ebf75221e280970907f0
usb: typec: wcove: Remove dependency on HW FSM

The USB Type-C PHY in Intel WhiskeyCove PMIC has build-in
USB Type-C state machine which we were relying on to
configure the CC lines correctly. This patch removes that
dependency and configures the CC line according to commands
from the port manager (tcpm.c) in wcove_set_cc().

This fixes an issue where USB devices attached to the USB
Type-C port do not get enumerated. When acting as
source/host, the HW FSM sometimes fails to configure the PHY
correctly.

Fixes: 3c4fb9f16921 ("usb: typec: wcove: start using tcpm for USB PD support")
Cc: stable@vger.kernel.org
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/typec_wcove.c