Re: [PATCH] regulator: core: resolve supply voltage deferral silently
From: Mark Brown
Date: Wed Sep 01 2021 - 11:09:18 EST
On Thu, Aug 26, 2021 at 12:40:17PM -0700, Brian Norris wrote:
> if (current_uV < 0) {
> - rdev_err(rdev,
> - "failed to get the current voltage: %pe\n",
> - ERR_PTR(current_uV));
> + if (current_uV != -EPROBE_DEFER)
> + rdev_err(rdev,
> + "failed to get the current voltage: %pe\n",
> + ERR_PTR(current_uV));
This doesn't make sense to me. Why are we getting as far as trying to
read the voltage if we've been told to defer probe? This suggests that
we ought to be doing this earlier on. I see that the logic is already
there to handle a deferral being generated here but it looks off.
Attachment:
signature.asc
Description: PGP signature