)]}'
{
  "commit": "fbcd13df1e78eb2ba83a3c160eefe2d6f574beaf",
  "tree": "980f9e2197bac8ea23b93a289bc537e1b784855e",
  "parents": [
    "d2a004037c3c6afd36d40c384d2905f47cd51c57"
  ],
  "author": {
    "name": "Badhri Jagan Sridharan",
    "email": "badhri@google.com",
    "time": "Mon Nov 29 16:18:25 2021 -0800"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@linuxfoundation.org",
    "time": "Fri Dec 03 13:57:10 2021 +0100"
  },
  "message": "usb: typec: tcpm: Wait in SNK_DEBOUNCED until disconnect\n\nStub from the spec:\n\"4.5.2.2.4.2 Exiting from AttachWait.SNK State\nA Sink shall transition to Unattached.SNK when the state of both\nthe CC1 and CC2 pins is SNK.Open for at least tPDDebounce.\nA DRP shall transition to Unattached.SRC when the state of both\nthe CC1 and CC2 pins is SNK.Open for at least tPDDebounce.\"\n\nThis change makes TCPM to wait in SNK_DEBOUNCED state until\nCC1 and CC2 pins is SNK.Open for at least tPDDebounce. Previously,\nTCPM resets the port if vbus is not present in PD_T_PS_SOURCE_ON.\nThis causes TCPM to loop continuously when connected to a\nfaulty power source that does not present vbus. Waiting in\nSNK_DEBOUNCED also ensures that TCPM is adherant to\n\"4.5.2.2.4.2 Exiting from AttachWait.SNK State\" requirements.\n\n[ 6169.280751] CC1: 0 -\u003e 0, CC2: 0 -\u003e 5 [state TOGGLING, polarity 0, connected]\n[ 6169.280759] state change TOGGLING -\u003e SNK_ATTACH_WAIT [rev2 NONE_AMS]\n[ 6169.280771] pending state change SNK_ATTACH_WAIT -\u003e SNK_DEBOUNCED @ 170 ms [rev2 NONE_AMS]\n[ 6169.282427] CC1: 0 -\u003e 0, CC2: 5 -\u003e 5 [state SNK_ATTACH_WAIT, polarity 0, connected]\n[ 6169.450825] state change SNK_ATTACH_WAIT -\u003e SNK_DEBOUNCED [delayed 170 ms]\n[ 6169.450834] pending state change SNK_DEBOUNCED -\u003e PORT_RESET @ 480 ms [rev2 NONE_AMS]\n[ 6169.930892] state change SNK_DEBOUNCED -\u003e PORT_RESET [delayed 480 ms]\n[ 6169.931296] disable vbus discharge ret:0\n[ 6169.931301] Setting usb_comm capable false\n[ 6169.932783] Setting voltage/current limit 0 mV 0 mA\n[ 6169.932802] polarity 0\n[ 6169.933706] Requesting mux state 0, usb-role 0, orientation 0\n[ 6169.936689] cc:\u003d0\n[ 6169.936812] pending state change PORT_RESET -\u003e PORT_RESET_WAIT_OFF @ 100 ms [rev2 NONE_AMS]\n[ 6169.937157] CC1: 0 -\u003e 0, CC2: 5 -\u003e 0 [state PORT_RESET, polarity 0, disconnected]\n[ 6170.036880] state change PORT_RESET -\u003e PORT_RESET_WAIT_OFF [delayed 100 ms]\n[ 6170.036890] state change PORT_RESET_WAIT_OFF -\u003e SNK_UNATTACHED [rev2 NONE_AMS]\n[ 6170.036896] Start toggling\n[ 6170.041412] CC1: 0 -\u003e 0, CC2: 0 -\u003e 0 [state TOGGLING, polarity 0, disconnected]\n[ 6170.042973] CC1: 0 -\u003e 0, CC2: 0 -\u003e 5 [state TOGGLING, polarity 0, connected]\n[ 6170.042976] state change TOGGLING -\u003e SNK_ATTACH_WAIT [rev2 NONE_AMS]\n[ 6170.042981] pending state change SNK_ATTACH_WAIT -\u003e SNK_DEBOUNCED @ 170 ms [rev2 NONE_AMS]\n[ 6170.213014] state change SNK_ATTACH_WAIT -\u003e SNK_DEBOUNCED [delayed 170 ms]\n[ 6170.213019] pending state change SNK_DEBOUNCED -\u003e PORT_RESET @ 480 ms [rev2 NONE_AMS]\n[ 6170.693068] state change SNK_DEBOUNCED -\u003e PORT_RESET [delayed 480 ms]\n[ 6170.693304] disable vbus discharge ret:0\n[ 6170.693308] Setting usb_comm capable false\n[ 6170.695193] Setting voltage/current limit 0 mV 0 mA\n[ 6170.695210] polarity 0\n[ 6170.695990] Requesting mux state 0, usb-role 0, orientation 0\n[ 6170.701896] cc:\u003d0\n[ 6170.702181] pending state change PORT_RESET -\u003e PORT_RESET_WAIT_OFF @ 100 ms [rev2 NONE_AMS]\n[ 6170.703343] CC1: 0 -\u003e 0, CC2: 5 -\u003e 0 [state PORT_RESET, polarity 0, disconnected]\n\nFixes: f0690a25a140b8 (\"staging: typec: USB Type-C Port Manager (tcpm)\")\nCc: stable@vger.kernel.org\nAcked-by: Heikki Krogerus \u003cheikki.krogerus@linux.intel.com\u003e\nSigned-off-by: Badhri Jagan Sridharan \u003cbadhri@google.com\u003e\nLink: https://lore.kernel.org/r/20211130001825.3142830-1-badhri@google.com\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7f2f3ff1b39112e72b683873c2a031fdb155c644",
      "old_mode": 33188,
      "old_path": "drivers/usb/typec/tcpm/tcpm.c",
      "new_id": "6010b99011261b5127c76bec8f959997dd08a00b",
      "new_mode": 33188,
      "new_path": "drivers/usb/typec/tcpm/tcpm.c"
    }
  ]
}
