Skip to content

Refine wait functions - #411

Merged
lgirdwood merged 2 commits into
thesofproject:masterfrom
RanderWang:byt-master
Sep 26, 2018
Merged

lgirdwood merged 2 commits into
thesofproject:masterfrom
RanderWang:byt-master

Conversation

@RanderWang

Copy link
Copy Markdown
Collaborator

(1) use correct clock source in wait function
(2) use wait function to wait register idle

@FocusLuo

Copy link
Copy Markdown

Can one of the admins verify this patch?

Comment thread src/include/sof/wait.h Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of explicitly setting clock to SSP, maybe you should define new PLATFORM_DEFAULT_CLOCK.
PLATFORM_SCHED_CLOCK and PLATFORM_WORKQ_CLOCK can also be set to this new PLATFORM_DEFAULT_CLOCK.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RanderWang and we should also have some doxygen comments for each new PLATFORM_ macro so users know what it does...

@RanderWang

Copy link
Copy Markdown
Collaborator Author

update my patch, thanks for review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choice*

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, updated

ssp clock is used in wait_delay, so ssp clock should be used
in the caller function

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants