diff options
-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 | /** |