]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: fdomain: use BSTAT_{MSG|CMD|IO} in fdomain_work()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 16 Jul 2019 20:40:47 +0000 (23:40 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 30 Jul 2019 16:17:28 +0000 (12:17 -0400)
commitbc1f743210a2e3eda01f766cf2d9eaf6c54dc5ca
treea7a63fe4406e09e820bbc2d58af6f552f86650c9
parent0cd7ff6bff356c56dacc340fd1c2dd57ff4521b9
scsi: fdomain: use BSTAT_{MSG|CMD|IO} in fdomain_work()

Commit 22d88275dc55 ("scsi: fdomain: Add register definitions") somehow
missed the masking of the 'status' variable with the SCSI phase mask in
fdomain_work(), leaving the magic number intact. Fix this issue; while at
it, change the order of BSTAT_{MSG|CMD|IO} bits in the MESSAGE IN
phase *case* (with no change in the generated object file).

Fixes: 22d88275dc55 ("scsi: fdomain: Add register definitions")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fdomain.c