Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: ti: wkup_m3_ipc: Send NULL dummy message instead of pointer message

mbox_send_message() sends a u32 bit message, not a pointer to a message.
We only convert to a pointer type as a generic type. If we want to send
a dummy message of 0, then simply send 0 (NULL).

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240325165507.30323-1-afd@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>

authored by

Andrew Davis and committed by
Nishanth Menon
ddbf3204 8c8ff398

+2 -5
+2 -5
drivers/soc/ti/wkup_m3_ipc.c
··· 16 16 #include <linux/irq.h> 17 17 #include <linux/module.h> 18 18 #include <linux/of.h> 19 - #include <linux/omap-mailbox.h> 20 19 #include <linux/platform_device.h> 21 20 #include <linux/remoteproc.h> 22 21 #include <linux/suspend.h> ··· 313 314 static int wkup_m3_ping(struct wkup_m3_ipc *m3_ipc) 314 315 { 315 316 struct device *dev = m3_ipc->dev; 316 - mbox_msg_t dummy_msg = 0; 317 317 int ret; 318 318 319 319 if (!m3_ipc->mbox) { ··· 328 330 * the RX callback to avoid multiple interrupts being received 329 331 * by the CM3. 330 332 */ 331 - ret = mbox_send_message(m3_ipc->mbox, &dummy_msg); 333 + ret = mbox_send_message(m3_ipc->mbox, NULL); 332 334 if (ret < 0) { 333 335 dev_err(dev, "%s: mbox_send_message() failed: %d\n", 334 336 __func__, ret); ··· 350 352 static int wkup_m3_ping_noirq(struct wkup_m3_ipc *m3_ipc) 351 353 { 352 354 struct device *dev = m3_ipc->dev; 353 - mbox_msg_t dummy_msg = 0; 354 355 int ret; 355 356 356 357 if (!m3_ipc->mbox) { ··· 358 361 return -EIO; 359 362 } 360 363 361 - ret = mbox_send_message(m3_ipc->mbox, &dummy_msg); 364 + ret = mbox_send_message(m3_ipc->mbox, NULL); 362 365 if (ret < 0) { 363 366 dev_err(dev, "%s: mbox_send_message() failed: %d\n", 364 367 __func__, ret);