Skip to content

Commit f117051

Browse files
ajdlinuxmaddy-kerneldev
authored andcommitted
scsi/cxlflash: Deprecate driver
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
1 parent 5731d41 commit f117051

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

drivers/scsi/cxlflash/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
#
55

66
config CXLFLASH
7-
tristate "Support for IBM CAPI Flash"
7+
tristate "Support for IBM CAPI Flash (DEPRECATED)"
88
depends on PCI && SCSI && (CXL || OCXL) && EEH
99
select IRQ_POLL
10-
default m
1110
help
11+
The cxlflash driver is deprecated and will be removed in a future
12+
kernel release.
13+
1214
Allows CAPI Accelerated IO to Flash
1315
If unsure, say N.

drivers/scsi/cxlflash/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3651,6 +3651,8 @@ static int cxlflash_probe(struct pci_dev *pdev,
36513651
int rc = 0;
36523652
int k;
36533653

3654+
dev_err_once(&pdev->dev, "DEPRECATION: cxlflash is deprecated and will be removed in a future kernel release\n");
3655+
36543656
dev_dbg(&pdev->dev, "%s: Found CXLFLASH with IRQ: %d\n",
36553657
__func__, pdev->irq);
36563658

0 commit comments

Comments
 (0)