diff options
Diffstat (limited to 'drivers/misc/cxl/native.c')
-rw-r--r-- | drivers/misc/cxl/native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c index b37f2e8004f5..d2e75c88f4d2 100644 --- a/drivers/misc/cxl/native.c +++ b/drivers/misc/cxl/native.c | |||
@@ -457,6 +457,7 @@ static int activate_afu_directed(struct cxl_afu *afu) | |||
457 | 457 | ||
458 | dev_info(&afu->dev, "Activating AFU directed mode\n"); | 458 | dev_info(&afu->dev, "Activating AFU directed mode\n"); |
459 | 459 | ||
460 | afu->num_procs = afu->max_procs_virtualised; | ||
460 | if (afu->spa == NULL) { | 461 | if (afu->spa == NULL) { |
461 | if (cxl_alloc_spa(afu)) | 462 | if (cxl_alloc_spa(afu)) |
462 | return -ENOMEM; | 463 | return -ENOMEM; |
@@ -468,7 +469,6 @@ static int activate_afu_directed(struct cxl_afu *afu) | |||
468 | cxl_p1n_write(afu, CXL_PSL_ID_An, CXL_PSL_ID_An_F | CXL_PSL_ID_An_L); | 469 | cxl_p1n_write(afu, CXL_PSL_ID_An, CXL_PSL_ID_An_F | CXL_PSL_ID_An_L); |
469 | 470 | ||
470 | afu->current_mode = CXL_MODE_DIRECTED; | 471 | afu->current_mode = CXL_MODE_DIRECTED; |
471 | afu->num_procs = afu->max_procs_virtualised; | ||
472 | 472 | ||
473 | if ((rc = cxl_chardev_m_afu_add(afu))) | 473 | if ((rc = cxl_chardev_m_afu_add(afu))) |
474 | return rc; | 474 | return rc; |