mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00
fix(ufs): performs unsigned shift for doorbell
slot ranges from 0 to 31, left shifting 1 by slot is undefined when slot is 31 Change-Id: I0c2e6d278ff593cee07736627cd87692f45e2da9 Signed-off-by: Anand Saminathan <anans@google.com>
This commit is contained in:
parent
cc933e1d12
commit
e47d8a58b0
1 changed files with 1 additions and 1 deletions
|
@ -609,7 +609,7 @@ static void ufs_send_request(int task_tag)
|
|||
UTRIACR_IATOVAL(0xFF);
|
||||
mmio_write_32(ufs_params.reg_base + UTRIACR, data);
|
||||
/* send request */
|
||||
mmio_setbits_32(ufs_params.reg_base + UTRLDBR, 1 << slot);
|
||||
mmio_setbits_32(ufs_params.reg_base + UTRLDBR, 1U << slot);
|
||||
}
|
||||
|
||||
static int ufs_check_resp(utp_utrd_t *utrd, int trans_type, unsigned int timeout_ms)
|
||||
|
|
Loading…
Add table
Reference in a new issue