]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi/cxlflash: Deprecate driver
authorAndrew Donnellan <ajd@linux.ibm.com>
Tue, 10 Dec 2024 05:40:55 +0000 (16:40 +1100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Fri, 13 Dec 2024 03:45:29 +0000 (09:15 +0530)
We intend to remove the cxlflash driver in an upcoming release. It is
already marked as Obsolete in MAINTAINERS.

The cxlflash driver has received minimal maintenance for some time, and
the CAPI Flash hardware that uses it is no longer commercially available.

Add a warning message on probe and change Kconfig to label the driver as
deprecated and not build the driver by default.

Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241210054055.144813-3-ajd@linux.ibm.com
drivers/scsi/cxlflash/Kconfig
drivers/scsi/cxlflash/main.c

index 5533bdcb04580e504420ca6ec7f9c20ce9acceeb..c424d36e89a6e5d6ed15305a30e3b2efc692766d 100644 (file)
@@ -4,10 +4,12 @@
 #
 
 config CXLFLASH
-       tristate "Support for IBM CAPI Flash"
+       tristate "Support for IBM CAPI Flash (DEPRECATED)"
        depends on PCI && SCSI && (CXL || OCXL) && EEH
        select IRQ_POLL
-       default m
        help
+         The cxlflash driver is deprecated and will be removed in a future
+         kernel release.
+
          Allows CAPI Accelerated IO to Flash
          If unsure, say N.
index 60d62b93d62442fae156f8521276f2c4f55daa50..62806f5e32e6360094b24766a91ee5e64976db1c 100644 (file)
@@ -3651,6 +3651,8 @@ static int cxlflash_probe(struct pci_dev *pdev,
        int rc = 0;
        int k;
 
+       dev_err_once(&pdev->dev, "DEPRECATION: cxlflash is deprecated and will be removed in a future kernel release\n");
+
        dev_dbg(&pdev->dev, "%s: Found CXLFLASH with IRQ: %d\n",
                __func__, pdev->irq);