diff options
author | Uma Krishnan <ukrishn@linux.vnet.ibm.com> | 2018-03-26 12:33:28 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-04-18 19:32:49 -0400 |
commit | c52bf5b384532ebc49deea16daf65c5cd1afbab2 (patch) | |
tree | 563d8b8d3b59a3372901300011d877296365cc23 /drivers/scsi/cxlflash | |
parent | 73904823764d67da345dbe0d848c1a478c4c92ad (diff) |
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: 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>
Diffstat (limited to 'drivers/scsi/cxlflash')
-rw-r--r-- | drivers/scsi/cxlflash/ocxl_hw.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/cxlflash/ocxl_hw.c b/drivers/scsi/cxlflash/ocxl_hw.c index 67517f8322ec..db612bd8a434 100644 --- a/drivers/scsi/cxlflash/ocxl_hw.c +++ b/drivers/scsi/cxlflash/ocxl_hw.c | |||
@@ -422,8 +422,18 @@ static int ocxlflash_config_fn(struct pci_dev *pdev, struct ocxl_hw_afu *afu) | |||
422 | __func__, rc); | 422 | __func__, rc); |
423 | goto out; | 423 | goto out; |
424 | } | 424 | } |
425 | |||
426 | rc = ocxl_config_set_TL(pdev, fcfg->dvsec_tl_pos); | ||
427 | if (unlikely(rc)) { | ||
428 | dev_err(dev, "%s: ocxl_config_set_TL failed rc=%d\n", | ||
429 | __func__, rc); | ||
430 | goto err; | ||
431 | } | ||
425 | out: | 432 | out: |
426 | return rc; | 433 | return rc; |
434 | err: | ||
435 | ocxl_link_release(pdev, afu->link_token); | ||
436 | goto out; | ||
427 | } | 437 | } |
428 | 438 | ||
429 | /** | 439 | /** |