[PATCH] power: supply: cw2015: use dev_err_probe to allow deferred probe

Sebastian Reichel sebastian.reichel at collabora.com
Fri Jul 16 07:01:43 PDT 2021


Hi,

On Fri, Jul 02, 2021 at 12:14:40AM +0200, Javier Martinez Canillas wrote:
> On Fri, Jul 2, 2021 at 12:07 AM Peter Robinson <pbrobinson at gmail.com> wrote:
> >
> > Deal with deferred probe using dev_err_probe so the error is handled
> > and avoid logging lots probe defer information like the following:
> >
> > [    9.125121] cw2015 4-0062: Failed to register power supply
> > [    9.211131] cw2015 4-0062: Failed to register power supply
> >
> > Fixes: b4c7715c10c1 ("power: supply: add CellWise cw2015 fuel gauge driver")
> > Signed-off-by: Peter Robinson <pbrobinson at gmail.com>
> > ---
> 
> Right, I also found this error message annoying and agree that's too noisy.
> 
> Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>

Thanks, queued (but would have been nicer to just return
dev_err_probe() instead of doing another round of PTR_ERR
conversion).

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210716/de3d4c48/attachment.sig>


More information about the linux-arm-kernel mailing list