lib: utils/mpxy: Introduce get_attribute_group() for MPXY RPMI data

Fully emulated MPXY channels need a custom way to provide RPMI attributes
so introduce optional get_attribute_group() callback in MPXY RPMI data
for this purpose.

Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com>
Reviewed-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com>
Tested-by: Pawandeep Oza <pawandeep.oza@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260923032359.4041876-4-anup.patel@oss.qualcomm.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Anup Patel authored and Anup Patel committed 2026-10-25 14:30:46 +05:30
1 parent fa2bbaf349
commit db877c0908
2 files changed
+29 -10

No files matched your search

+5
View File
@@ -67,6 +67,11 @@ struct mpxy_rpmi_data {
u32 num_services;
struct mpxy_rpmi_service_data *service_data;
/** Get RPMI service group attribute */
int (*get_attribute_group)(void *context, struct mbox_chan *chan,
enum rpmi_channel_attribute_id attr_id,
u32 *out_value);
/** Transfer RPMI service group message */
int (*xfer_group)(void *context, struct mbox_chan *chan,
struct mbox_xfer *xfer);