lkml.org 
[lkml]   [2020]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 1/5] regulator: Allow regulators to verify enabled during enable()
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-05-29 12:54    [W:0.094 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site