Commit 1227fc1559e039c92bb3264897549e53e8d9fe5a
Committed by
Tero Kristo
1 parent
578efa367e
Exists in
ti-linux-3.14.y
and in
2 other branches
remoteproc: wkup_m3_rproc: Modify wkup_m3_ping to not use interrupts
The wkup_m3 needs the ability to receive messages in noirq context during cpuidle transition. Change wkup_m3_ping to not use any mailbox interrupts during ping now that the mailbox driver can handle sending the message in noirq context. Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Showing 1 changed file with 2 additions and 7 deletions Side-by-side Diff
drivers/remoteproc/wkup_m3_rproc.c
... | ... | @@ -150,11 +150,6 @@ |
150 | 150 | wkup_m3_ctrl_ipc_write(m3_rproc_static, val, 2); |
151 | 151 | } |
152 | 152 | |
153 | -static void wkup_m3_mbox_callback(struct mbox_client *client, void *data) | |
154 | -{ | |
155 | - omap_mbox_disable_irq(m3_rproc_static->mbox, IRQ_RX); | |
156 | -} | |
157 | - | |
158 | 153 | void wkup_m3_set_rtc_only_mode(void) |
159 | 154 | { |
160 | 155 | m3_rproc_static->is_rtc_only = true; |
... | ... | @@ -179,7 +174,7 @@ |
179 | 174 | |
180 | 175 | m3_rproc->mbox_client.dev = dev; |
181 | 176 | m3_rproc->mbox_client.tx_done = NULL; |
182 | - m3_rproc->mbox_client.rx_callback = wkup_m3_mbox_callback; | |
177 | + m3_rproc->mbox_client.rx_callback = NULL; | |
183 | 178 | m3_rproc->mbox_client.tx_block = false; |
184 | 179 | m3_rproc->mbox_client.knows_txdone = false; |
185 | 180 | |
186 | 181 | |
... | ... | @@ -283,13 +278,13 @@ |
283 | 278 | * the RX callback to avoid multiple interrupts being received |
284 | 279 | * by the CM3. |
285 | 280 | */ |
286 | - omap_mbox_enable_irq(m3_rproc_static->mbox, IRQ_RX); | |
287 | 281 | ret = mbox_send_message(m3_rproc_static->mbox, (void *)dummy_msg); |
288 | 282 | if (ret < 0) { |
289 | 283 | pr_err("%s: mbox_send_message() failed: %d\n", __func__, ret); |
290 | 284 | return ret; |
291 | 285 | } |
292 | 286 | |
287 | + mbox_client_txdone(m3_rproc_static->mbox, 0); | |
293 | 288 | return 0; |
294 | 289 | } |
295 | 290 |