usb: typec: tcpm: Support bist test data mode for compliance
authorBadhri Jagan Sridharan <badhri@google.com>
Thu, 16 Jul 2020 03:41:26 +0000 (20:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 11:38:21 +0000 (13:38 +0200)
commitb2dcfefc43f783c4462f30507f78b7bb093ee8df
tree4db04e487561c2861009cb56aeabd4cea82e2dd0
parentd25d61be6bed44d3a5b7050836e6df602bf3d6ba
usb: typec: tcpm: Support bist test data mode for compliance

TCPM supports BIST carried mode. PD compliance tests require
BIST Test Data to be supported as well.

Introducing set_bist_data callback to signal tcpc driver for
configuring the port controller hardware to enable/disable
BIST Test Data mode.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200716034128.1251728-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c
include/linux/usb/tcpm.h