Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/board/rtl8730e: Prepare PM for GPIO #6175

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

edwakuwaku
Copy link
Contributor

  • Prepare PM for GPIO

@edwakuwaku edwakuwaku changed the title os/board/rtl8730e: Prepare PM for GPIO [Under Verification] os/board/rtl8730e: Prepare PM for GPIO May 7, 2024
@edwakuwaku edwakuwaku force-pushed the gpio_pm branch 2 times, most recently from ba9611a to 7c6b0b1 Compare May 7, 2024 12:05
@@ -55,7 +55,7 @@ void pm_wakehandler(clock_t missing_tick)
{
irqstate_t flags = enter_critical_section();

pmllvdbg("missing_tick: %d\n", missing_tick);
pmllvdbg("missing_tick: %lld\n", missing_tick);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @ewoodev , the clock_t is using u64, %d is printing wrong value, thus I changed to %lld here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for change edwakuwaku
this value is usinged long long, so Could you please apply %llu ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi EunWoo님, thanks for reminding, changed accordingly~

@edwakuwaku
Copy link
Contributor Author

Hello @ewoodev , @ritesh55555 , other than enabling GPIO as wakeup src, this PR also added informational log to show the wakeup src. For wifi-keepalive, it will also show the packet type received that triggers wakeup.
Please help to try it out~

@edwakuwaku edwakuwaku changed the title [Under Verification] os/board/rtl8730e: Prepare PM for GPIO os/board/rtl8730e: Prepare PM for GPIO May 14, 2024
- Enable GPIO channel A as wakeup interrupt src
- Remove some logs, change tick printing to %llu because we are using u64 for clock_t
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.

None yet

2 participants