mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
hisi_sas: Fix typo in setup_itct_v1_hw()
We were doing a arithmetic comparison instead of logical shift by
accident. Mis-programming the itct did not seem to make a difference to
operation.
Fixes: abda97c2fe ("hisi_sas: Add dev_found")
Signed-off-by: John Garry <[email protected]>
Reviewed-by: Matthew R. Ochs <[email protected]>
Reviewed-by: Shane Seymour <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
8ceec33223
commit
8fb88201b4
1 changed files with 4 additions and 4 deletions
|
|
@ -528,10 +528,10 @@ static void setup_itct_v1_hw(struct hisi_hba *hisi_hba,
|
|||
itct->sas_addr = __swab64(itct->sas_addr);
|
||||
|
||||
/* qw2 */
|
||||
itct->qw2 = cpu_to_le64((500 < ITCT_HDR_IT_NEXUS_LOSS_TL_OFF) |
|
||||
(0xff00 < ITCT_HDR_BUS_INACTIVE_TL_OFF) |
|
||||
(0xff00 < ITCT_HDR_MAX_CONN_TL_OFF) |
|
||||
(0xff00 < ITCT_HDR_REJ_OPEN_TL_OFF));
|
||||
itct->qw2 = cpu_to_le64((500ULL << ITCT_HDR_IT_NEXUS_LOSS_TL_OFF) |
|
||||
(0xff00ULL << ITCT_HDR_BUS_INACTIVE_TL_OFF) |
|
||||
(0xff00ULL << ITCT_HDR_MAX_CONN_TL_OFF) |
|
||||
(0xff00ULL << ITCT_HDR_REJ_OPEN_TL_OFF));
|
||||
}
|
||||
|
||||
static void free_device_v1_hw(struct hisi_hba *hisi_hba,
|
||||
|
|
|
|||
Loading…
Reference in a new issue