Skip to contentSkip to conversation

libata fixes

PATCH In review Jeff Garzik 2 participants 2 messages Dec 20, 2006 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata fixes

FWIW the Tejun cleanups are a fix, split into three reviewable pieces.

Also, my local iomap branch has advanced sufficiently enough that I think it's high time to kill those libata warnings that spew on every build. (I hear the crowds roar)

Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git upstream-linus

to receive the following updates:

 drivers/ata/ahci.c        |    8 ++
 drivers/ata/libata-scsi.c |  238 +++++++++++++++++++++++---------------------
 drivers/ata/pata_cs5530.c |    3 +-
 drivers/ata/pata_via.c    |    2 +-
 drivers/ata/sata_nv.c     |    8 --
 drivers/ata/sata_svw.c    |   41 +++++----
 drivers/ata/sata_vsc.c    |   43 +++++----
 7 files changed, 182 insertions(+), 161 deletions(-)

Andrew Morton (2):
[libata] pata_cs5530: suspend/resume support tweak [libata] pata_via: suspend/resume support fix

Jeff Garzik (1):
[libata] sata_svw, sata_vsc: kill iomem warnings

Peer Chen (1):
[libata] Move some PCI IDs from sata_nv to ahci

Tejun Heo (3):
libata: clean up variable name usage in xlat related functions
libata: kill @cdb argument from xlat methods
libata: take scmd->cmd_len into account when translating SCSI commands

drivers/ata/ahci.c +8 -0
index dbae6d9..b517d24 100644
@@ -402,6 +402,14 @@ static const struct pci_device_id ahci_pci_tbl[] = {
 	{ PCI_VDEVICE(NVIDIA, 0x044d), board_ahci },		/* MCP65 */
 	{ PCI_VDEVICE(NVIDIA, 0x044e), board_ahci },		/* MCP65 */
 	{ PCI_VDEVICE(NVIDIA, 0x044f), board_ahci },		/* MCP65 */
+	{ PCI_VDEVICE(NVIDIA, 0x045c), board_ahci },		/* MCP65 */
+	{ PCI_VDEVICE(NVIDIA, 0x045d), board_ahci },		/* MCP65 */
+	{ PCI_VDEVICE(NVIDIA, 0x045e), board_ahci },		/* MCP65 */
+	{ PCI_VDEVICE(NVIDIA, 0x045f), board_ahci },		/* MCP65 */
+	{ PCI_VDEVICE(NVIDIA, 0x0550), board_ahci },		/* MCP67 */
+	{ PCI_VDEVICE(NVIDIA, 0x0551), board_ahci },		/* MCP67 */
+	{ PCI_VDEVICE(NVIDIA, 0x0552), board_ahci },		/* MCP67 */
+	{ PCI_VDEVICE(NVIDIA, 0x0553), board_ahci },		/* MCP67 */
 	{ PCI_VDEVICE(NVIDIA, 0x0554), board_ahci },		/* MCP67 */
 	{ PCI_VDEVICE(NVIDIA, 0x0555), board_ahci },		/* MCP67 */
 	{ PCI_VDEVICE(NVIDIA, 0x0556), board_ahci },		/* MCP67 */
drivers/ata/libata-scsi.c +124 -114

550 lines not on this page · raw message

drivers/ata/pata_cs5530.c +2 -1
index 1c62801..b1ca207 100644
@@ -372,7 +372,8 @@ static int cs5530_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
 static int cs5530_reinit_one(struct pci_dev *pdev)
 {
 	/* If we fail on resume we are doomed */
-	BUG_ON(cs5530_init_chip());
+	if (cs5530_init_chip())
+		BUG();
 	return ata_pci_device_resume(pdev);
 }
 	
drivers/ata/pata_via.c +1 -1
index ff93e8f..f0d4f7e 100644
@@ -395,7 +395,7 @@ static void via_config_fifo(struct pci_dev *pdev, unsigned int flags)
 	enable &= 3;
 	
 	if (flags & VIA_SET_FIFO) {
-		u8 fifo_setting[4] = {0x00, 0x60, 0x00, 0x20};
+		static const u8 fifo_setting[4] = {0x00, 0x60, 0x00, 0x20};
 		u8 fifo;
 
 		pci_read_config_byte(pdev, 0x43, &fifo);
drivers/ata/sata_nv.c +0 -8
index 0d316eb..f6d498e 100644
@@ -270,14 +270,6 @@ static const struct pci_device_id nv_pci_tbl[] = {
 	{ PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA), GENERIC },
 	{ PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA2), GENERIC },
 	{ PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA3), GENERIC },
-	{ PCI_VDEVICE(NVIDIA, 0x045c), GENERIC }, /* MCP65 */
-	{ PCI_VDEVICE(NVIDIA, 0x045d), GENERIC }, /* MCP65 */
-	{ PCI_VDEVICE(NVIDIA, 0x045e), GENERIC }, /* MCP65 */
-	{ PCI_VDEVICE(NVIDIA, 0x045f), GENERIC }, /* MCP65 */
-	{ PCI_VDEVICE(NVIDIA, 0x0550), GENERIC }, /* MCP67 */
-	{ PCI_VDEVICE(NVIDIA, 0x0551), GENERIC }, /* MCP67 */
-	{ PCI_VDEVICE(NVIDIA, 0x0552), GENERIC }, /* MCP67 */
-	{ PCI_VDEVICE(NVIDIA, 0x0553), GENERIC }, /* MCP67 */
 	{ PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID,
 		PCI_ANY_ID, PCI_ANY_ID,
 		PCI_CLASS_STORAGE_IDE<<8, 0xffff00, GENERIC },
drivers/ata/sata_svw.c +23 -18

61 lines not on this page · raw message

drivers/ata/sata_vsc.c +24 -19

65 lines not on this page · raw message

#1 lore raw
Quoted 5 lines · * Jeff Garzik ([email protected]) wrote:

FWIW the Tejun cleanups are a fix, split into three reviewable pieces.

Also, my local iomap branch has advanced sufficiently enough that I think it's high time to kill those libata warnings that spew on every build. (I hear the crowds roar)

Perhaps I missed it, but, when is PMP support going to be included in main-stream? Seems like it's been around for a while now and I doubt I'm the only one extremely frustrated with having to hunt down an external patch to get a new toy supported. I'll probably bug the Debian kernel folks next but it'd be nicer if it was in upstream.

Thanks!

Stephen