Re: [PATCH v2 1/3] soc: qcom: cmd-db: export RPMh accelerator type string helper
Dmitry Baryshkov <[email protected]> Thu, 6 Aug 2026 12:50:05 +0300
| Newsgroups | org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <l2oyzsztfjmv3wdc4x4siq2ny7zrzwbus5d3l6od54ccdtksw3@4d43ms6c24fl> |
On Fri, Jul 17, 2026 at 01:19:42PM +0530, Maulik Shah wrote: > RPMh resource addresses encode the accelerator type (ARC, VRM, BCM) > in bits [19:16], matching the cmd_db_hw_type enum values. Add > cmd_db_hw_type_str() to map an RPMh address to its accelerator type > name string using the existing SLAVE_ID() macro, and export it so > drivers that handle raw RPMh addresses can produce human-readable > diagnostic output without duplicating the address encoding knowledge. > > Assisted-by: Claude:claude-sonnet-4-5 > Signed-off-by: Maulik Shah <[email protected]> > --- > drivers/soc/qcom/cmd-db.c | 20 ++++++++++++++++++++ > include/soc/qcom/cmd-db.h | 5 +++++ > 2 files changed, 25 insertions(+) > Reviewed-by: Dmitry Baryshkov <[email protected]> -- With best wishes Dmitry