Re: [Patch v3 01/11] firmware: tegra: add function to get BPMP data

From: Sumit Gupta
Date: Thu Mar 23 2023 - 09:00:11 EST




On 23/03/23 15:38, Thierry Reding wrote:
On Mon, Mar 20, 2023 at 11:54:31PM +0530, Sumit Gupta wrote:
Add new function 'of_tegra_bpmp_get()' which can be
used by other drivers like MC to get BPMP data without
adding any property in respective drivers DT node.

Signed-off-by: Sumit Gupta <sumitg@xxxxxxxxxx>
---
drivers/firmware/tegra/bpmp.c | 38 +++++++++++++++++++++++++++++++++++
include/soc/tegra/bpmp.h | 5 +++++
2 files changed, 43 insertions(+)

Sorry for not noticing this earlier, but can we not resolve the BPMP
using the existing tegra_bpmp_get()? That requires the presence of the
nvidia,bpmp property, but since we're adding new functionality here
that's not a problem.

Thierry

Ok, will add "nvidia,bpmp" property within mc node and cache the result to use later instead of doing the lookup every time. Also, will drop this patch in v4.

Thank you for suggesting.


Thank,
Sumit