On Wed, Mar 15, 2017 at 12:49:47PM +0200, Mikko Perttunen wrote: > On 14.03.2017 21:15, Thierry Reding wrote: > > ... > > + > > +static inline bool tegra_bpmp_powergate_is_powered(struct tegra_bpmp *bpmp, > > + unsigned int id) > > +{ > > + return tegra_bpmp_powergate_get_state(bpmp, id) == PG_STATE_ON; > > +} > > This should also check for PG_STATE_RUNNING and consider that to be on. > There's this tristate thing for legacy reasons.. Okay, I've made this check for != PG_STATE_OFF to avoid multiple cases. Thierry
Attachment:
signature.asc
Description: PGP signature