Skip to content

Instantly share code, notes, and snippets.

@flto
Created September 4, 2020 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flto/62f352dbff3601abe05013bfebe7c0ab to your computer and use it in GitHub Desktop.
Save flto/62f352dbff3601abe05013bfebe7c0ab to your computer and use it in GitHub Desktop.
~# cat /sys/kernel/debug/usb/tcpm-c440000.spmi\:pmic\@2\:qcom\,usb-pdphy\@1500
[ 2.035273] Setting voltage/current limit 0 mV 0 mA
[ 2.035273] polarity 0
[ 2.035274] Requesting mux state 0, usb-role 0, orientation 0
[ 2.035308] state change INVALID_STATE -> SNK_UNATTACHED
[ 2.035333] CC1: 0 -> 0, CC2: 0 -> 3 [state SNK_UNATTACHED, polarity 0, connected]
[ 2.035335] state change SNK_UNATTACHED -> SNK_ATTACH_WAIT
[ 2.035336] state change SNK_ATTACH_WAIT -> PORT_RESET
[ 2.035337] c440000.spmi:pmic@2:qcom,usb-pdphy@1500: registered
[ 2.035406] Setting voltage/current limit 0 mV 0 mA
[ 2.035409] polarity 0
[ 2.035411] Requesting mux state 0, usb-role 0, orientation 0
[ 2.035456] cc:=0
[ 2.048708] pending state change PORT_RESET -> PORT_RESET_WAIT_OFF @ 100 ms
[ 2.152575] state change PORT_RESET -> PORT_RESET_WAIT_OFF [delayed 100 ms]
[ 2.152578] pending state change PORT_RESET_WAIT_OFF -> SNK_UNATTACHED @ 920 ms
[ 3.104579] state change PORT_RESET_WAIT_OFF -> SNK_UNATTACHED [delayed 920 ms]
[ 3.104581] Start toggling
[ 3.104595] state change SNK_UNATTACHED -> TOGGLING
[ 11.839151] VBUS on
[ 11.839175] CC1: 0 -> 0, CC2: 3 -> 3 [state TOGGLING, polarity 0, connected]
[ 11.839178] state change TOGGLING -> SNK_ATTACH_WAIT
[ 11.839181] pending state change SNK_ATTACH_WAIT -> SNK_DEBOUNCED @ 200 ms
[ 11.850016] VBUS off
[ 11.850017] state change SNK_ATTACH_WAIT -> SNK_UNATTACHED
[ 11.850039] CC1: 0 -> 0, CC2: 3 -> 0 [state SNK_UNATTACHED, polarity 0, disconnected]
[ 11.850063] VBUS off
[ 11.850076] CC1: 0 -> 0, CC2: 0 -> 0 [state SNK_UNATTACHED, polarity 0, disconnected]
[ 11.850098] VBUS off
[ 11.850109] CC1: 0 -> 0, CC2: 0 -> 0 [state SNK_UNATTACHED, polarity 0, disconnected]
[ 11.850121] VBUS off
[ 11.850132] CC1: 0 -> 0, CC2: 0 -> 0 [state SNK_UNATTACHED, polarity 0, disconnected]
[ 11.850134] Start toggling
[ 17.026108] VBUS off
[ 17.026141] CC1: 0 -> 1, CC2: 0 -> 2 [state TOGGLING, polarity 0, connected]
[ 17.026142] state change TOGGLING -> SRC_ATTACH_WAIT
[ 17.026154] VBUS off
[ 17.026176] CC1: 1 -> 1, CC2: 2 -> 2 [state SRC_ATTACH_WAIT, polarity 0, connected]
[ 17.026179] pending state change SRC_ATTACH_WAIT -> SNK_TRY @ 200 ms
[ 17.232573] state change SRC_ATTACH_WAIT -> SNK_TRY [delayed 200 ms]
[ 17.232574] cc:=2
[ 17.232587] pending state change SNK_TRY -> SNK_TRY_WAIT @ 400 ms
[ 17.232655] VBUS off
[ 17.232665] CC1: 1 -> 0, CC2: 2 -> 0 [state SNK_TRY, polarity 0, disconnected]
[ 17.232677] VBUS off
[ 17.232688] CC1: 0 -> 0, CC2: 0 -> 0 [state SNK_TRY, polarity 0, disconnected]
[ 17.640573] state change SNK_TRY -> SNK_TRY_WAIT [delayed 400 ms]
[ 17.640573] state change SNK_TRY_WAIT -> SRC_TRYWAIT
[ 17.640574] cc:=4
[ 17.640598] pending state change SRC_TRYWAIT -> SRC_TRYWAIT_UNATTACHED @ 400 ms
[ 17.768053] VBUS off
[ 17.768075] CC1: 0 -> 1, CC2: 0 -> 2 [state SRC_TRYWAIT, polarity 0, connected]
[ 17.771051] state change SRC_TRYWAIT -> SRC_TRYWAIT_DEBOUNCE
[ 17.771063] VBUS off
[ 17.771085] CC1: 1 -> 1, CC2: 2 -> 2 [state SRC_TRYWAIT_DEBOUNCE, polarity 0, connected]
[ 17.771086] pending state change SRC_TRYWAIT_DEBOUNCE -> SRC_ATTACHED @ 200 ms
[ 17.976572] state change SRC_TRYWAIT_DEBOUNCE -> SRC_ATTACHED [delayed 200 ms]
[ 17.976573] polarity 1
[ 17.976574] Requesting mux state 1, usb-role 1, orientation 2
[ 17.976631] vconn:=1
[ 17.976666] vbus:=1 charge=0
[ 17.976706] pending state change SRC_ATTACHED -> SRC_UNATTACHED @ 480 ms
[ 17.976718] VBUS on
[ 17.976718] state change SRC_ATTACHED -> SRC_STARTUP
[ 17.976722] state change SRC_STARTUP -> SRC_SEND_CAPABILITIES
[ 17.976723] PD TX, header: 0x11a1
[ 17.981735] PD TX complete, status: 2
[ 17.981742] pending state change SRC_SEND_CAPABILITIES -> SRC_SEND_CAPABILITIES @ 150 ms
[ 18.136572] state change SRC_SEND_CAPABILITIES -> SRC_SEND_CAPABILITIES [delayed 150 ms]
[ 18.136573] PD TX, header: 0x11a1
[ 18.141573] PD TX complete, status: 2
[ 18.141579] pending state change SRC_SEND_CAPABILITIES -> SRC_SEND_CAPABILITIES @ 150 ms
[ 18.296572] state change SRC_SEND_CAPABILITIES -> SRC_SEND_CAPABILITIES [delayed 150 ms]
[ 18.296573] PD TX, header: 0x11a1
[ 18.297953] PD TX complete, status: 0
[ 18.297958] pending state change SRC_SEND_CAPABILITIES -> SRC_SEND_CAPABILITIES_TIMEOUT @ 150 ms
[ 18.299778] PD RX, header: 0x1082 [1]
[ 18.299779] state change SRC_SEND_CAPABILITIES -> SRC_NEGOTIATE_CAPABILITIES
[ 18.299781] Requested 5000 mV, 1500 mA for 500 / 500 mA
[ 18.299781] PD TX, header: 0x3a3
[ 18.301018] PD TX complete, status: 0
[ 18.301023] pending state change SRC_NEGOTIATE_CAPABILITIES -> SRC_TRANSITION_SUPPLY @ 35 ms
[ 18.336571] state change SRC_NEGOTIATE_CAPABILITIES -> SRC_TRANSITION_SUPPLY [delayed 35 ms]
[ 18.336572] PD TX, header: 0x5a6
[ 18.337807] PD TX complete, status: 0
[ 18.337814] state change SRC_TRANSITION_SUPPLY -> SRC_READY
[ 18.337836] PD TX, header: 0x17af
[ 18.339208] PD TX complete, status: 0
[ 18.341635] PD RX, header: 0x528f [1]
[ 18.341637] Rx VDM cmd 0xff008041 type 1 cmd 1 len 5
[ 18.341638] Identity: 04b4:f649.0222
[ 18.341640] PD TX, header: 0x19af
[ 18.343014] PD TX complete, status: 0
[ 18.344983] PD RX, header: 0x248f [1]
[ 18.344983] Rx VDM cmd 0xff008042 type 1 cmd 2 len 2
[ 18.344984] SVID 1: 0xff01
[ 18.344986] PD TX, header: 0x1baf
[ 18.346359] PD TX complete, status: 0
[ 18.348310] PD RX, header: 0x268f [1]
[ 18.348310] Rx VDM cmd 0xff018043 type 1 cmd 3 len 2
[ 18.348311] Alternate mode 0: SVID 0xff01, VDO 1: 0x00000405
[ 18.352493] PD TX, header: 0x1daf
[ 18.353866] PD TX complete, status: 0
[ 18.355847] PD RX, header: 0x188f [1]
[ 18.355847] Rx VDM cmd 0xff018144 type 1 cmd 4 len 1
[ 18.355853] PD TX, header: 0x2faf
[ 18.357368] PD TX complete, status: 0
[ 18.359410] PD RX, header: 0x2a8f [1]
[ 18.359410] Rx VDM cmd 0xff018150 type 1 cmd 16 len 2
[ 18.363533] PD TX, header: 0x21af
[ 18.365054] PD TX complete, status: 0
[ 18.366904] PD RX, header: 0x1c8f [1]
[ 18.366904] Rx VDM cmd 0xff018151 type 1 cmd 17 len 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment