diff options
-rw-r--r-- | MAINTAINERS | 2 | ||||
-rw-r--r-- | drivers/Kconfig | 2 | ||||
-rw-r--r-- | drivers/Makefile | 1 | ||||
-rw-r--r-- | drivers/block/Kconfig | 11 | ||||
-rw-r--r-- | drivers/block/Makefile | 2 | ||||
-rw-r--r-- | drivers/nvme/Kconfig | 1 | ||||
-rw-r--r-- | drivers/nvme/Makefile | 2 | ||||
-rw-r--r-- | drivers/nvme/host/Kconfig | 10 | ||||
-rw-r--r-- | drivers/nvme/host/Makefile | 4 | ||||
-rw-r--r-- | drivers/nvme/host/nvme.h (renamed from drivers/block/nvme.h) | 0 | ||||
-rw-r--r-- | drivers/nvme/host/pci.c (renamed from drivers/block/nvme-core.c) | 0 | ||||
-rw-r--r-- | drivers/nvme/host/scsi.c (renamed from drivers/block/nvme-scsi.c) | 0 |
12 files changed, 21 insertions, 14 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 797236befd27..d104ec95a5b5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -7448,7 +7448,7 @@ M: Matthew Wilcox <willy@linux.intel.com> | |||
7448 | L: linux-nvme@lists.infradead.org | 7448 | L: linux-nvme@lists.infradead.org |
7449 | T: git git://git.infradead.org/users/willy/linux-nvme.git | 7449 | T: git git://git.infradead.org/users/willy/linux-nvme.git |
7450 | S: Supported | 7450 | S: Supported |
7451 | F: drivers/block/nvme* | 7451 | F: drivers/nvme/host/ |
7452 | F: include/linux/nvme.h | 7452 | F: include/linux/nvme.h |
7453 | 7453 | ||
7454 | NVMEM FRAMEWORK | 7454 | NVMEM FRAMEWORK |
diff --git a/drivers/Kconfig b/drivers/Kconfig index 46b4a8e0f859..e69ec82ac80a 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig | |||
@@ -18,6 +18,8 @@ source "drivers/pnp/Kconfig" | |||
18 | 18 | ||
19 | source "drivers/block/Kconfig" | 19 | source "drivers/block/Kconfig" |
20 | 20 | ||
21 | source "drivers/nvme/Kconfig" | ||
22 | |||
21 | # misc before ide - BLK_DEV_SGIIOC4 depends on SGI_IOC4 | 23 | # misc before ide - BLK_DEV_SGIIOC4 depends on SGI_IOC4 |
22 | 24 | ||
23 | source "drivers/misc/Kconfig" | 25 | source "drivers/misc/Kconfig" |
diff --git a/drivers/Makefile b/drivers/Makefile index b250b36b54f2..42f9dd5f07c8 100644 --- a/drivers/Makefile +++ b/drivers/Makefile | |||
@@ -70,6 +70,7 @@ obj-$(CONFIG_NUBUS) += nubus/ | |||
70 | obj-y += macintosh/ | 70 | obj-y += macintosh/ |
71 | obj-$(CONFIG_IDE) += ide/ | 71 | obj-$(CONFIG_IDE) += ide/ |
72 | obj-$(CONFIG_SCSI) += scsi/ | 72 | obj-$(CONFIG_SCSI) += scsi/ |
73 | obj-y += nvme/ | ||
73 | obj-$(CONFIG_ATA) += ata/ | 74 | obj-$(CONFIG_ATA) += ata/ |
74 | obj-$(CONFIG_TARGET_CORE) += target/ | 75 | obj-$(CONFIG_TARGET_CORE) += target/ |
75 | obj-$(CONFIG_MTD) += mtd/ | 76 | obj-$(CONFIG_MTD) += mtd/ |
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 1b8094d4d7af..29819e719afa 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig | |||
@@ -310,17 +310,6 @@ config BLK_DEV_NBD | |||
310 | 310 | ||
311 | If unsure, say N. | 311 | If unsure, say N. |
312 | 312 | ||
313 | config BLK_DEV_NVME | ||
314 | tristate "NVM Express block device" | ||
315 | depends on PCI | ||
316 | ---help--- | ||
317 | The NVM Express driver is for solid state drives directly | ||
318 | connected to the PCI or PCI Express bus. If you know you | ||
319 | don't have one of these, it is safe to answer N. | ||
320 | |||
321 | To compile this driver as a module, choose M here: the | ||
322 | module will be called nvme. | ||
323 | |||
324 | config BLK_DEV_SKD | 313 | config BLK_DEV_SKD |
325 | tristate "STEC S1120 Block Driver" | 314 | tristate "STEC S1120 Block Driver" |
326 | depends on PCI | 315 | depends on PCI |
diff --git a/drivers/block/Makefile b/drivers/block/Makefile index 02b688d1438d..671329023ec2 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile | |||
@@ -22,7 +22,6 @@ obj-$(CONFIG_XILINX_SYSACE) += xsysace.o | |||
22 | obj-$(CONFIG_CDROM_PKTCDVD) += pktcdvd.o | 22 | obj-$(CONFIG_CDROM_PKTCDVD) += pktcdvd.o |
23 | obj-$(CONFIG_MG_DISK) += mg_disk.o | 23 | obj-$(CONFIG_MG_DISK) += mg_disk.o |
24 | obj-$(CONFIG_SUNVDC) += sunvdc.o | 24 | obj-$(CONFIG_SUNVDC) += sunvdc.o |
25 | obj-$(CONFIG_BLK_DEV_NVME) += nvme.o | ||
26 | obj-$(CONFIG_BLK_DEV_SKD) += skd.o | 25 | obj-$(CONFIG_BLK_DEV_SKD) += skd.o |
27 | obj-$(CONFIG_BLK_DEV_OSD) += osdblk.o | 26 | obj-$(CONFIG_BLK_DEV_OSD) += osdblk.o |
28 | 27 | ||
@@ -44,6 +43,5 @@ obj-$(CONFIG_BLK_DEV_RSXX) += rsxx/ | |||
44 | obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk.o | 43 | obj-$(CONFIG_BLK_DEV_NULL_BLK) += null_blk.o |
45 | obj-$(CONFIG_ZRAM) += zram/ | 44 | obj-$(CONFIG_ZRAM) += zram/ |
46 | 45 | ||
47 | nvme-y := nvme-core.o nvme-scsi.o | ||
48 | skd-y := skd_main.o | 46 | skd-y := skd_main.o |
49 | swim_mod-y := swim.o swim_asm.o | 47 | swim_mod-y := swim.o swim_asm.o |
diff --git a/drivers/nvme/Kconfig b/drivers/nvme/Kconfig new file mode 100644 index 000000000000..a39d9431eaec --- /dev/null +++ b/drivers/nvme/Kconfig | |||
@@ -0,0 +1 @@ | |||
source "drivers/nvme/host/Kconfig" | |||
diff --git a/drivers/nvme/Makefile b/drivers/nvme/Makefile new file mode 100644 index 000000000000..9421e829d2a9 --- /dev/null +++ b/drivers/nvme/Makefile | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | obj-y += host/ | ||
diff --git a/drivers/nvme/host/Kconfig b/drivers/nvme/host/Kconfig new file mode 100644 index 000000000000..0089f78b4071 --- /dev/null +++ b/drivers/nvme/host/Kconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | config BLK_DEV_NVME | ||
2 | tristate "NVM Express block device" | ||
3 | depends on PCI | ||
4 | ---help--- | ||
5 | The NVM Express driver is for solid state drives directly | ||
6 | connected to the PCI or PCI Express bus. If you know you | ||
7 | don't have one of these, it is safe to answer N. | ||
8 | |||
9 | To compile this driver as a module, choose M here: the | ||
10 | module will be called nvme. | ||
diff --git a/drivers/nvme/host/Makefile b/drivers/nvme/host/Makefile new file mode 100644 index 000000000000..cfb6679ec245 --- /dev/null +++ b/drivers/nvme/host/Makefile | |||
@@ -0,0 +1,4 @@ | |||
1 | |||
2 | obj-$(CONFIG_BLK_DEV_NVME) += nvme.o | ||
3 | |||
4 | nvme-y += pci.o scsi.o | ||
diff --git a/drivers/block/nvme.h b/drivers/nvme/host/nvme.h index c1f41bf3c0f2..c1f41bf3c0f2 100644 --- a/drivers/block/nvme.h +++ b/drivers/nvme/host/nvme.h | |||
diff --git a/drivers/block/nvme-core.c b/drivers/nvme/host/pci.c index a526696d684d..a526696d684d 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/nvme/host/pci.c | |||
diff --git a/drivers/block/nvme-scsi.c b/drivers/nvme/host/scsi.c index c3d8d3887a31..c3d8d3887a31 100644 --- a/drivers/block/nvme-scsi.c +++ b/drivers/nvme/host/scsi.c | |||