scsi: ufs: commit descriptors before setting the doorbell
authorGilad Broner <gbroner@codeaurora.org>
Tue, 18 Oct 2016 00:09:36 +0000 (17:09 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:58 +0000 (17:29 -0500)
commitad1a1b9cd67a4b5bee8a62454336d94f9e816c1f
treeb77f14f5b7a9ea660e5685d78a5b207d93eff55c
parente3ce73d69aff44421d7899b235fec5ac2c306ff4
scsi: ufs: commit descriptors before setting the doorbell

Add a write memory barrier to make sure descriptors prepared are
actually written to memory before ringing the doorbell. We have also
added the write memory barrier after ringing the doorbell register so
that controller sees the new request immediately.

Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c