Documentation ¶
Overview ¶
Package typec contains tests which exercise USB Type-C connector related functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Basic ¶
Basic does the following: - Simulate a servo disconnect. - Reconfigure the servo as DP device supporting pin assignment C. - Reconnect the servo. - Verify that the kernel recognizes the servo partner and can parse its DP VDO data.
It then repeats the process with the servo configured as a pin assignment D DP device.
Since it's not possible to verify that the DUT detected a disconnect (since the DUT loses its network connection during servo disconnect), we check the DUT uptime before and after the test. If the end time is greater than the start time, we can infer that the partner detected was due to a hotplug and not at reboot (since the partner PD data gets parsed only once on each connect).
func HpdWake ¶
HpdWake does the following: - Simulate a servo disconnect. - Reconfigure the servo as a DP device with HPD "low". - Reconnect the servo. - Verify that the kernel recognizes the servo partner and DP alt mode. - Measure the EC device wake event count. - Suspend the DUT. - Make the servo's HPD state to "high". - Check that the DUT woke, count the EC wake events and confirm that the wake count increased.
func ModeReboot ¶
ModeReboot does the following: - Log in on a DUT. - Validate TBT alt mode is working correctly. - Reboot the system. - Validate that we are *not* in TBT alt mode and that USB+DP mode is working correctly.
This test requires the following H/W topology to run.
DUT ------> Thunderbolt3 (>= Titan Ridge) dock -----> DP monitor. (USB4)
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package typecutils contains constants & helper functions used by the tests in the typec directory.
|
Package typecutils contains constants & helper functions used by the tests in the typec directory. |