Re: [PATCH v3 1/5] regulator: Allow regulators to verify enabled during enable()
From: Mark Brown
Date: Fri May 29 2020 - 06:54:17 EST
On Thu, May 28, 2020 at 09:16:21PM +0530, Sumit Semwal wrote:
> + while (time_remaining > 0) {
> + /* We've already waited for enable_time above;
> + * so we can start with immediate check of the
> + * status of the regulator.
> + */
> + if (rdev->desc->ops->is_enabled(rdev))
> + break;
I'd expect to prefer to get_status() if it's available.
Attachment:
signature.asc
Description: PGP signature