Skip to content

Commit d6fbfdb

Browse files
Sibi SankarJassiBrar
authored andcommitted
mailbox: qcom-ipcc: Fix IPCC mbox channel exhaustion
Fix IPCC (Inter-Processor Communication Controller) channel exhaustion by setting the channel private data to NULL on mbox shutdown. Err Logs: remoteproc: MBA booted without debug policy, loading mpss remoteproc: glink-edge: failed to acquire IPC channel remoteproc: failed to probe subdevices for remoteproc: -16 Fixes: fa74a02 ("mailbox: Add support for Qualcomm IPCC") Signed-off-by: Sibi Sankar <[email protected]> Cc: [email protected] Reviewed-by: Bjorn Andersson <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 8ebc3b5 commit d6fbfdb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/mailbox/qcom-ipcc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ static int qcom_ipcc_mbox_send_data(struct mbox_chan *chan, void *data)
155155
return 0;
156156
}
157157

158+
static void qcom_ipcc_mbox_shutdown(struct mbox_chan *chan)
159+
{
160+
chan->con_priv = NULL;
161+
}
162+
158163
static struct mbox_chan *qcom_ipcc_mbox_xlate(struct mbox_controller *mbox,
159164
const struct of_phandle_args *ph)
160165
{
@@ -184,6 +189,7 @@ static struct mbox_chan *qcom_ipcc_mbox_xlate(struct mbox_controller *mbox,
184189

185190
static const struct mbox_chan_ops ipcc_mbox_chan_ops = {
186191
.send_data = qcom_ipcc_mbox_send_data,
192+
.shutdown = qcom_ipcc_mbox_shutdown,
187193
};
188194

189195
static int qcom_ipcc_setup_mbox(struct qcom_ipcc *ipcc)

0 commit comments

Comments
 (0)