From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 30 Apr 2018 17:13:03 -0600 Subject: [U-Boot] [PATCH 3/5] pmic: dm: Provide *trans_len() callback for pmic-uclass In-Reply-To: <20180426121908.5014-3-lukma@denx.de> References: <20180426121908.5014-1-lukma@denx.de> <20180426121908.5014-3-lukma@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Lucasz, On 26 April 2018 at 06:19, Lukasz Majewski 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