summaryrefslogtreecommitdiffstats
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorConor Dooley <conor.dooley@microchip.com>2023-03-07 20:22:53 +0000
committerConor Dooley <conor.dooley@microchip.com>2023-04-03 19:25:52 +0100
commitda82f95f7c0752f36cdb8ff99d543004e4e3acdf (patch)
tree4c4cb08b304942ff78d2214e123396f981820ac1 /drivers/mailbox
parentb5984a9844fc45cd301a28fb56f3de95f7e20f3c (diff)
downloadlinux-stable-da82f95f7c0752f36cdb8ff99d543004e4e3acdf.tar.gz
linux-stable-da82f95f7c0752f36cdb8ff99d543004e4e3acdf.tar.bz2
linux-stable-da82f95f7c0752f36cdb8ff99d543004e4e3acdf.zip
mailbox: mpfs: ditch a useless busy check
mpfs_mbox_rx_data() already checks if the system controller is busy before attempting to do anything, so drop the second check before reading any data. No functional change intended. Acked-by: Jassi Brar <jaswinder.singh@linaro.org> Tested-by: Valentina Fernandez <valentina.fernandezalanis@microchip.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r--drivers/mailbox/mailbox-mpfs.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/mailbox/mailbox-mpfs.c b/drivers/mailbox/mailbox-mpfs.c
index e0e825bdbad9..0d176aba3462 100644
--- a/drivers/mailbox/mailbox-mpfs.c
+++ b/drivers/mailbox/mailbox-mpfs.c
@@ -170,12 +170,10 @@ static void mpfs_mbox_rx_data(struct mbox_chan *chan)
if (response->resp_status)
return;
- if (!mpfs_mbox_busy(mbox)) {
- for (i = 0; i < num_words; i++) {
- response->resp_msg[i] =
- readl_relaxed(mbox->mbox_base
- + mbox->resp_offset + i * 0x4);
- }
+ for (i = 0; i < num_words; i++) {
+ response->resp_msg[i] =
+ readl_relaxed(mbox->mbox_base
+ + mbox->resp_offset + i * 0x4);
}
mbox_chan_received_data(chan, response);