scsi: cxlflash: Remove port configuration assumptions
At present, the cxlflash driver only supports hardware with two FC ports. The code was initially designed with this assumption and is dependent on having two FC ports - adding more ports will break logic within the driver. To mitigate this issue, remove the existing port assumptions and transition the code to support more than two ports. As a side effect, clarify the interpretation of the DK_CXLFLASH_ALL_PORTS_ACTIVE flag. 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>
This commit is contained in:

committed by
Martin K. Petersen

vanhempi
78ae028e82
commit
8fa4f1770d
@@ -1933,7 +1933,7 @@ static int cxlflash_disk_direct_open(struct scsi_device *sdev, void *arg)
|
||||
u64 lun_size = 0;
|
||||
u64 last_lba = 0;
|
||||
u64 rsrc_handle = -1;
|
||||
u32 port = CHAN2PORT(sdev->channel);
|
||||
u32 port = CHAN2PORTMASK(sdev->channel);
|
||||
|
||||
int rc = 0;
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user