On 26.08.2014 13:37, Javier Martinez Canillas wrote:
> +             /*
> +              * If the regulator is disabled and the system warm rebooted,
> +              * the hardware reports OFF as the regulator operating mode.
> +              * Default to operating mode NORMAL in that case.
> +              */
> +             if (val == MAX77802_OPMODE_OFF)
> +                     max77802->opmode[id] = MAX77802_OPMODE_NORMAL;
> +             else
> +                     max77802->opmode[id] = val;

I might be missing something, but I believe I see a flaw here. If after
a cold boot opmode is something else than OFF or NORMAL, the kernel
starts, turns the regulator off and does warm reboot, the setting is
lost and the regulator is switched to NORMAL mode.

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

Reply via email to