scsi: ufshcd: Add a wmb before sending uic cmd

Adds a wmb

Change-Id: Iaf69210a2451227db040ec6dea57aeb09c284635
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
This commit is contained in:
Asutosh Das 2020-05-04 19:15:55 -07:00
commit a546e4ea24

View file

@ -2062,6 +2062,8 @@ ufshcd_dispatch_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd)
/* Write UIC Cmd */
ufshcd_writel(hba, uic_cmd->command & COMMAND_OPCODE_MASK,
REG_UIC_COMMAND);
/* Ensure that the command is written */
wmb();
}
/**