[U-Boot] [PATCH 3/5] pmic: dm: Provide *trans_len() callback for pmic-uclass

Simon Glass sjg at chromium.org
Mon Apr 30 23:13:03 UTC 2018


Hi Lucasz,

On 26 April 2018 at 06:19, Lukasz Majewski <lukma at denx.de> wrote:
> This callback provides information of number of bytes to be sent/read
> during single transfer, as some PMICs transfer more bytes at once (e.g.
> MC34708 from NXP/Freescale).
>
> At present the PMIC DM supports only transfers with one byte. The old PMIC
> framework was able to transfer up till 3 bytes at once.
>
> Let's provide the same capability to new PMIC framework.

Can we instead make this a property of uclass-private data for each device?

I don't see a lot of point in adding a new method, since the value is
presumably set once and does not change through the life of the
device.

Regards,
Simon


More information about the U-Boot mailing list