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..
...
Cheers, Mikko. -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html