Message ID | da2f9471-4b54-c4cd-c3c2-de09fca52ab6@arm.com |
---|---|
State | New |
Headers | show |
diff --git i/drivers/firmware/arm_scpi.c w/drivers/firmware/arm_scpi.c index edf1a3327041..165f2fc3b627 100644 --- i/drivers/firmware/arm_scpi.c +++ w/drivers/firmware/arm_scpi.c @@ -419,7 +419,12 @@ static void scpi_handle_remote_msg(struct mbox_client *c, void *msg) { struct scpi_chan *ch = container_of(c, struct scpi_chan, cl); struct scpi_shared_mem *mem = ch->rx_payload; - u32 cmd = le32_to_cpu(mem->command); + u32 cmd; + + if (ch->is_legacy) + cmd = *(u32 *)msg; + else + cmd = le32_to_cpu(mem->command); scpi_process_cmd(ch, cmd);