Skip to content

Commit c249681

Browse files
xinyulinqiluo-msft
authored andcommitted
[Y-Cable][Credo] add theading locker to support thread-safe calling, add SKU check for download_firmware API. (#222)
* [Y-Cable][Credo] fix racing issue of VSC releated APIs The VSC protocol didn't allow user to send two or more vsc command to the module simultaneously, otherwise unexpected error might occurred. To avoid this issue, we can simply to update the download_firmware_status in the the following functions. This could help the helper to know vsc is in progress or not. * get_firmware_version() * download_firmware() * activate_firmware() * rollback_firmware() This PR also does add SKU check for download_firmware API. * [Y-Cable][Credo] add firmware ID checker to avoid update the wrong firmware Signed-off-by: xinyu <[email protected]>
1 parent 93eedd0 commit c249681

File tree

1 file changed

+964
-688
lines changed

1 file changed

+964
-688
lines changed

0 commit comments

Comments
 (0)