Commit da82f95f authored by Conor Dooley's avatar Conor Dooley
Browse files

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: default avatarJassi Brar <jaswinder.singh@linaro.org>
Tested-by: default avatarValentina Fernandez <valentina.fernandezalanis@microchip.com>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
parent b5984a98
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -170,13 +170,11 @@ 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);
	}
	}

	mbox_chan_received_data(chan, response);
}