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

- From: Pavel Machek \<hidden\>
- Date: 2019-05-20 07:26:34 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2019/05/5600923
- Thread: https://ratatoskr.run/linuxppc-dev/2019/05/5600900/t.md

```text
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>

> +// Copyright 2019 NXP
> +//
> +// Author: Ran Wang [ref],

extra ,

> +	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

- [signature.asc](https://ratatoskr.run/linuxppc-dev/2019/05/5600923/attachment/0) (application/pgp-signature, 181 bytes)
