lib: utils: Drop notifications from MPXY RPMI mailbox client

Currently, the common MPXY RPMI mailbox client does not support
notifications so no need for dummy notifications support.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
This commit is contained in:
Anup Patel
2025-01-12 10:40:01 +05:30
committed by Anup Patel
parent a4876e6c6c
commit 879ee6859c
3 changed files with 0 additions and 14 deletions

View File

@@ -62,7 +62,6 @@ struct mpxy_rpmi_service_data {
struct mpxy_rpmi_mbox_data { struct mpxy_rpmi_mbox_data {
u32 servicegrp_id; u32 servicegrp_id;
u32 num_services; u32 num_services;
u32 notifications_support;
struct mpxy_rpmi_service_data *service_data; struct mpxy_rpmi_service_data *service_data;
/** Transfer RPMI service group message */ /** Transfer RPMI service group message */

View File

@@ -72,7 +72,6 @@ static struct mpxy_rpmi_service_data clock_services[] = {
static const struct mpxy_rpmi_mbox_data clock_data = { static const struct mpxy_rpmi_mbox_data clock_data = {
.servicegrp_id = RPMI_SRVGRP_CLOCK, .servicegrp_id = RPMI_SRVGRP_CLOCK,
.num_services = RPMI_CLOCK_SRV_MAX_COUNT, .num_services = RPMI_CLOCK_SRV_MAX_COUNT,
.notifications_support = 1,
.service_data = clock_services, .service_data = clock_services,
}; };

View File

@@ -213,13 +213,6 @@ static int mpxy_mbox_send_message_withoutresp(struct sbi_mpxy_channel *channel,
NULL, 0, NULL); NULL, 0, NULL);
} }
static int mpxy_mbox_get_notifications(struct sbi_mpxy_channel *channel,
void *eventsbuf, u32 bufsize,
unsigned long *events_len)
{
return SBI_ENOTSUPP;
}
int mpxy_rpmi_mbox_init(const void *fdt, int nodeoff, const struct fdt_match *match) int mpxy_rpmi_mbox_init(const void *fdt, int nodeoff, const struct fdt_match *match)
{ {
int rc, len; int rc, len;
@@ -277,11 +270,6 @@ int mpxy_rpmi_mbox_init(const void *fdt, int nodeoff, const struct fdt_match *ma
mpxy_mbox_send_message_withresp; mpxy_mbox_send_message_withresp;
rmb->channel.send_message_without_response = rmb->channel.send_message_without_response =
mpxy_mbox_send_message_withoutresp; mpxy_mbox_send_message_withoutresp;
/* Callback to get RPMI notifications */
rmb->channel.get_notification_events = mpxy_mbox_get_notifications;
/* No callback to switch events state data */
rmb->channel.switch_eventsstate = NULL;
/* RPMI Message Protocol ID */ /* RPMI Message Protocol ID */
rmb->channel.attrs.msg_proto_id = SBI_MPXY_MSGPROTO_RPMI_ID; rmb->channel.attrs.msg_proto_id = SBI_MPXY_MSGPROTO_RPMI_ID;