scsi: cxlflash: Refactor context reset to share reset logic
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Thu, 12 Jan 2017 01:19:08 +0000 (19:19 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2017 03:38:14 +0000 (22:38 -0500)
commit9c7d1ee5f13a7130f6d3df307ec010e9e003fa98
tree76748814948b630c0d184871c11be1cfccbe6d14
parent73eba2be9203c0eef37df6939ebba4d34227f284
scsi: cxlflash: Refactor context reset to share reset logic

As staging for supporting hardware with different context reset
registers but a similar reset procedure, refactor the existing context
reset routine to move the reset logic to a common routine. This will
allow hardware with a different reset register to leverage existing
code.

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