Browse Source

drivers: mbox: secureproxy: Pass userdata in isr

This change modifies the secure proxy mailbox driver to pass user data
to the interrupt service routine (ISR) callback. This allows the ISR
to access the specific context or data associated with the mailbox
message being processed.

Signed-off-by: Dave Joseph <d-joseph@ti.com>
pull/91613/merge
Dave Joseph 3 weeks ago committed by Fabio Baltieri
parent
commit
04d12bc8b2
  1. 2
      drivers/mbox/mbox_ti_secproxy.c

2
drivers/mbox/mbox_ti_secproxy.c

@ -201,7 +201,7 @@ static void secproxy_mailbox_isr(const struct device *dev) @@ -201,7 +201,7 @@ static void secproxy_mailbox_isr(const struct device *dev)
rx_data->size = msg_len;
rx_data->seq = GET_MSG_SEQ(buf);
if (data->cb[i_channel]) {
data->cb[i_channel](dev, i_channel, NULL, NULL);
data->cb[i_channel](dev, i_channel, data->user_data[i_channel], NULL);
}
}
}

Loading…
Cancel
Save