[U-Boot, 3/3] pmic: allow dump command for non contiguous register maps

Tom Rini trini at konsulko.com
Tue Jan 28 01:56:47 CET 2020


On Tue, Jan 14, 2020 at 03:56:18PM +0000, Ian Ray wrote:

> From: Martin Fuzzey <martin.fuzzey at flowbird.group>
> 
> Some PMICs (such as the DA9063) have non-contiguous register maps.
> Attempting to read the non implemented registers returns an error
> rather than a dummy value which causes 'pmic dump' to terminate
> prematurely.
> 
> Fix this by allowing the PMIC driver to return -ENODATA for such
> registers, which will then be displayed as '--' by pmic dump.
> 
> Use a single error code rather than any error code so that
> we can distinguish between a hardware failure reading the PMIC
> and a non implemented register known to the driver.
> 
> Signed-off-by: Martin Fuzzey <martin.fuzzey at flowbird.group>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200127/1cf9bd80/attachment.sig>


More information about the U-Boot mailing list