Re: [2/4] powerpc/rcpm: add RCPM driver

From: Scott Wood
Date: Thu Apr 02 2015 - 11:51:07 EST


On Thu, 2015-04-02 at 05:33 -0500, Zhao Chenhui-B35336 wrote:
> > +static int rcpm_v2_plat_enter_state(int state)
> > +{
> > + u32 *pmcsr_reg = &rcpm_v2_regs->powmgtcsr;
> > + int ret = 0;
> > + int result;
> > +
> > + switch (state) {
> > + case PLAT_PM_LPM20:
> > + /* clear previous LPM20 status */
> > + setbits32(pmcsr_reg, RCPM_POWMGTCSR_P_LPM20_ST);
>
> How would the bit be set when you enter here, given that you wait for it
> to clear when leaving?
>
> [chenhui] Actually, the bit is not used by software. Just follow the instruction in RM.

Sorry, I missed the "_P_" and thought it was RCPM_POWMGTCSR_LPM20_ST.

-Scott


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/