diff mbox

[v3,3/3] drivers/block/mtip32xx: Adding Makefile and Kconfig

Message ID 22A973199D2C2F46933448F6E7990A3002C80029@ntxboimbx31.micron.com
State Not Applicable
Delegated to: David Miller
Headers show

Commit Message

This is the third/final part of the new block driver,mtip32xx, for
Micron
PCIe SSD, which contains the new Makefile and Kconfig. Also contains the
changes to Kconfig and Makefile in drivers/block to add this new driver.

Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Sam Bradshaw <sbradshaw@micron.com>
---
 drivers/block/Kconfig           |    2 ++
 drivers/block/Makefile          |    1 +
 drivers/block/mtip32xx/Kconfig  |    8 ++++++++
 drivers/block/mtip32xx/Makefile |    7 +++++++
 4 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100644 drivers/block/mtip32xx/Kconfig
 create mode 100644 drivers/block/mtip32xx/Makefile

Comments

Christoph Hellwig Aug. 11, 2011, 10:47 p.m. UTC | #1
I think the driver at least needs to depend on PCI.

--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
On 8/11/2011 4:47 PM, Christoph Hellwig wrote:
> I think the driver at least needs to depend on PCI.

Actually we should depend on pciehp module. I ran into some issue (in
kernel 2.6.39) when introducing the dependency, and removed the
dependency temporarily. I will check again with the current kernel.
diff mbox

Patch

diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 717d6e4..b729ae3 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -116,6 +116,8 @@  config PARIDE

 source "drivers/block/paride/Kconfig"

+source "drivers/block/mtip32xx/Kconfig"
+
 config BLK_CPQ_DA
 	tristate "Compaq SMART2 support"
 	depends on PCI && VIRT_TO_BUS
diff --git a/drivers/block/Makefile b/drivers/block/Makefile
index 76646e9..ad7b74a 100644
--- a/drivers/block/Makefile
+++ b/drivers/block/Makefile
@@ -39,5 +39,6 @@  obj-$(CONFIG_XEN_BLKDEV_FRONTEND)	+=
xen-blkfront.o
 obj-$(CONFIG_XEN_BLKDEV_BACKEND)	+= xen-blkback/
 obj-$(CONFIG_BLK_DEV_DRBD)     += drbd/
 obj-$(CONFIG_BLK_DEV_RBD)     += rbd.o
+obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX)	+= mtip32xx/

 swim_mod-y	:= swim.o swim_asm.o
diff --git a/drivers/block/mtip32xx/Kconfig
b/drivers/block/mtip32xx/Kconfig
new file mode 100644
index 0000000..1a20e88
--- /dev/null
+++ b/drivers/block/mtip32xx/Kconfig
@@ -0,0 +1,8 @@ 
+#
+# mtip32xx device driver configuration
+#
+
+config BLK_DEV_PCIESSD_MTIP32XX
+	tristate "Block Device Driver for Micron PCIe SSDs"
+	help
+          This enables the block driver for Micron PCIe SSDs.
diff --git a/drivers/block/mtip32xx/Makefile
b/drivers/block/mtip32xx/Makefile
new file mode 100644
index 0000000..0a0fba2
--- /dev/null
+++ b/drivers/block/mtip32xx/Makefile
@@ -0,0 +1,7 @@ 
+#
+# Makefile for  Block device driver for Micron PCIe SSD
+#
+
+obj-$(CONFIG_BLK_DEV_PCIESSD_MTIP32XX) += mtip32xx.o
+
+mtip32xx-y := mtip_pci.o mtip_block.o mtip_hw.o