From 1602cba5f3758663278828a14958b5fcd2bbabdd Mon Sep 17 00:00:00 2001 From: Pan Xiuli Date: Tue, 26 Jan 2021 08:24:20 +0000 Subject: [PATCH] drivers: cavs: ipc: change hard code value to defined macro change 0x80000000 value to IPC_DIPCIDR_BUSY to increase the code readablity Signed-off-by: Pan Xiuli --- src/drivers/intel/cavs/ipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/intel/cavs/ipc.c b/src/drivers/intel/cavs/ipc.c index 7d335fce6..57b8acd19 100644 --- a/src/drivers/intel/cavs/ipc.c +++ b/src/drivers/intel/cavs/ipc.c @@ -278,7 +278,7 @@ int ipc_platform_send_msg(struct ipc_msg *msg) ipc_write(IPC_DIPCI, IPC_DIPCI_BUSY | msg->header); #else ipc_write(IPC_DIPCIDD, 0); - ipc_write(IPC_DIPCIDR, 0x80000000 | msg->header); + ipc_write(IPC_DIPCIDR, IPC_DIPCIDR_BUSY | msg->header); #endif platform_shared_commit(msg, sizeof(*msg)); @@ -446,7 +446,7 @@ int ipc_platform_poll_tx_host_msg(struct ipc_msg *msg) ipc_write(IPC_DIPCI, IPC_DIPCI_BUSY | msg->header); #else ipc_write(IPC_DIPCIDD, 0); - ipc_write(IPC_DIPCIDR, 0x80000000 | msg->header); + ipc_write(IPC_DIPCIDR, IPC_DIPCIDR_BUSY | msg->header); #endif /* message sent */