Attention is currently required from: Name of user not set #1002003, Paul Menzel, Tim Wawrzynczak, John Zhao, Rajmohan Mani. John Zhao has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/63848 )
Change subject: drivers/intel/usb4: Add Type-C port device attachment check ......................................................................
Patch Set 8:
(1 comment)
Patchset:
PS8:
Maybe also reference the fwupd source code.
Yes, Chromium OS/CB supports Retimer FW update using fwupd which is different from Windows/UEFI platform. UEFI capsule has its more rich functions than the thin CB. CB exposes offine/online methods to OS through DSM. When invoked offline, CB enforces Retimer RT_PWR on and interacts with EC to query the devices attachment status. If DA, CB turns the RT_PWR off and returns -1 to OS. Otherwise if NDA, CB drivers EC to transit MUX states sequentially. If no errors encountered, OS/fwupd is supposed to start the Retimer FW update. Once the update is finished, OS/fwupd calls the online method, CB then resumes MUX states through its interaction with EC and turn the RT_PWR off.
This patch simply adds and handles DA scenario. Not sure whether there is need to refer fwupd source code here.