From: Uma Krishnan Date: Mon, 26 Mar 2018 16:33:28 +0000 (-0500) Subject: scsi: cxlflash: Setup OCXL transaction layer X-Git-Tag: v4.19~824^2~246 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c52bf5b384532ebc49deea16daf65c5cd1afbab2;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Matthew R. Ochs Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/cxlflash/ocxl_hw.c b/drivers/scsi/cxlflash/ocxl_hw.c index 67517f8..db612bd 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) __func__, rc); 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: return rc; +err: + ocxl_link_release(pdev, afu->link_token); + goto out; } /**