Message ID | 1493241920-13310-8-git-send-email-leitao@debian.org |
---|---|
State | New |
Headers | show |
diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index b9c12425e6db..4a1b407ca514 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -1667,6 +1667,9 @@ static void cxl_pci_remove_adapter(struct cxl *adapter) cxl_sysfs_adapter_remove(adapter); cxl_debugfs_adapter_remove(adapter); + /* Flush adapter datacache as its about to be removed */ + cxl_data_cache_flush(adapter); + cxl_deconfigure_adapter(adapter); device_unregister(&adapter->dev);