Re: [PATCH v3 3/3] soc: fsl: add RCPM driver

From
Pavel Machek <hidden>
Date
2019-05-20 07:26:34
Also in
linux-arm-kernel, linux-devicetree, linux-pm, lkml
Reply to
Ran Wang, 2019-05-20
Hi!
The NXP's QorIQ Processors based on ARM Core have RCPM module
(Run Control and Power Management), which performs all device-level
tasks associated with power management such as wakeup source control.

This driver depends on PM wakeup source framework which help to
collect wake information.

Signed-off-by: Ran Wang <redacted>
quoted hunk ↗ jump to hunk
+// Copyright 2019 NXP
+//
+// Author: Ran Wang <ran.wang_1@nxp.com>,
extra ,
quoted hunk ↗ jump to hunk
+	rcpm = dev_get_drvdata(dev);
+	if (!rcpm)
+		return -EINVAL;
+
+	/* Begin with first registered wakeup source */
+	ws = wakeup_source_get_next(NULL);
+	while (ws) {
while (ws = wakeup_source_get_next(NULL))

?

								Pavel
								
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachments

Thread (5 messages) 5 messages, 2 authors, last reply 2019-05-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help