Merge pull request #1520 from robertovargas-arm/cci-dsb

cci: Use dsb to wait before reading status register
This commit is contained in:
Dimitris Papastamos 2018-08-13 15:29:22 +01:00 committed by GitHub
commit 09895d42b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ void cci_enable_snoop_dvm_reqs(unsigned int master_id)
* Wait for the completion of the write to the Snoop Control Register
* before testing the change_pending bit
*/
dmbish();
dsbish();
/* Wait for the dust to settle down */
while (mmio_read_32(cci_base + STATUS_REG) & CHANGE_PENDING_BIT)
@ -174,7 +174,7 @@ void cci_disable_snoop_dvm_reqs(unsigned int master_id)
* Wait for the completion of the write to the Snoop Control Register
* before testing the change_pending bit
*/
dmbish();
dsbish();
/* Wait for the dust to settle down */
while (mmio_read_32(cci_base + STATUS_REG) & CHANGE_PENDING_BIT)