Commit c52bf5b3 authored by Uma Krishnan's avatar Uma Krishnan Committed by Martin K. Petersen

scsi: cxlflash: Setup OCXL transaction layer

The first function of the link needs to configure the transaction layer
between the host and device. This is accomplished by a call to the OCXL
provider services.
Signed-off-by: default avatarUma Krishnan <ukrishn@linux.vnet.ibm.com>
Acked-by: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 73904823
...@@ -422,8 +422,18 @@ static int ocxlflash_config_fn(struct pci_dev *pdev, struct ocxl_hw_afu *afu) ...@@ -422,8 +422,18 @@ static int ocxlflash_config_fn(struct pci_dev *pdev, struct ocxl_hw_afu *afu)
__func__, rc); __func__, rc);
goto out; goto out;
} }
rc = ocxl_config_set_TL(pdev, fcfg->dvsec_tl_pos);
if (unlikely(rc)) {
dev_err(dev, "%s: ocxl_config_set_TL failed rc=%d\n",
__func__, rc);
goto err;
}
out: out:
return rc; return rc;
err:
ocxl_link_release(pdev, afu->link_token);
goto out;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment