]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Improve context_reset() logic
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>
Tue, 29 Nov 2016 00:41:36 +0000 (18:41 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 30 Nov 2016 16:34:01 +0000 (11:34 -0500)
commit11c5aeaa652ee0fee9f12d47ecf50695b62eab26
treefb23f5b24064181dadf3c47f31282e31ba4f0d7a
parent23625422da2cbe1a9de09764080510ebc55bd796
scsi: cxlflash: Improve context_reset() logic

Currently, the context reset routine waits for command room to
be available before sending the reset request. Per review of the
SISLite specification and clarifications from the CXL Flash AFU
designers, this wait is unnecessary. The reset request can be
sent anytime regardless of command room, so long as only a single
reset request is active at any one point in time.

This commit simplifies the reset routine by removing the wait for
command room. Additionally it adds a debug trace to help pinpoint
hardware errors when a context reset does not complete.

Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/main.c