-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource: ucmd-module: refine handling of sid_ucmd_dev_{set,get}_ready
Changes: - Consolidate dev_ready_t state names. - Also store the ready state as 'scan.dev_ready' member of the 'struct sid_ucmd_ctx' for quick access. - Do not set/get the KV record about the ready state directly, but always use sid_ucmd_dev_{set,get}_ready fn. - When changing the state, check current state and also check if the transition to new state is allowed with respect to current state. - At the end of scan cmd processing (in _cmd_exec_scan_exit), mark the device as DEV_RDY_PUBLIC if not already set by any of the module so far (that is, if we're still in DEV_RDY_UNPROCESSED state at this stage).
- Loading branch information
Showing
2 changed files
with
75 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters