[git patches] libata fixes, minor updates

2007-05-09 Thread Jeff Garzik

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:

 Documentation/kernel-parameters.txt |8 ---
 drivers/ata/libata-acpi.c   |3 +-
 drivers/ata/libata-core.c   |2 +
 drivers/ata/pata_pcmcia.c   |1 +
 drivers/ata/pata_qdi.c  |2 +-
 drivers/ata/pata_scc.c  |4 +-
 drivers/ata/sata_nv.c   |   92 +-
 drivers/ata/sata_promise.c  |   24 --
 drivers/ata/sata_via.c  |8 +++
 9 files changed, 113 insertions(+), 31 deletions(-)

Alexey Dobriyan (1):
  pata_scc: fix compilation

Jesse Barnes (1):
  Doc Fix: remove mention of combined mode-related kernel parameters

Mikael Pettersson (2):
  sata_promise: fix another error decode regression
  sata_promise: SATAII-150/300 TX4 port numbering fix

Randy Dunlap (1):
  libata: fix kernel-doc parameters

Richard Kennedy (1):
  pata_pcmcia.c: add card ident for jvc cdrom

Robert Hancock (1):
  sata_nv: fix ADMA freeze/thaw/irq_clear issues

Samuel Thibault (1):
  Fix pata_qdi.c probe code

Tejun Heo (2):
  libata-acpi: fix _GTF command protocol for ATAPI devices
  sata_via: add missing PM hooks

diff --git a/Documentation/kernel-parameters.txt 
b/Documentation/kernel-parameters.txt
index 6b8ad06..09220a1 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -754,14 +754,6 @@ and is between 256 and 4096 characters. It is defined in 
the file
inport.irq= [HW] Inport (ATI XL and Microsoft) busmouse driver
Format: 
 
-   combined_mode=  [HW] control which driver uses IDE ports in combined
-   mode: legacy IDE driver, libata, or both
-   (in the libata case, libata.atapi_enabled=1 may be
-   useful as well).  Note that using the ide or libata
-   options may affect your device naming (e.g. by
-   changing hdc to sdb).
-   Format: combined (default), ide, or libata
-
inttest=[IA64]
 
io7=[HW] IO7 for Marvel based alpha systems
diff --git a/drivers/ata/libata-acpi.c b/drivers/ata/libata-acpi.c
index 03a0acf..cb3eab6 100644
--- a/drivers/ata/libata-acpi.c
+++ b/drivers/ata/libata-acpi.c
@@ -489,8 +489,7 @@ static void taskfile_load_raw(struct ata_port *ap,
 
/* convert gtf to tf */
tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; /* TBD */
-   tf.protocol = atadev->class == ATA_DEV_ATAPI ?
-   ATA_PROT_ATAPI_NODATA : ATA_PROT_NODATA;
+   tf.protocol = ATA_PROT_NODATA;
tf.feature = gtf->tfa[0];   /* 0x1f1 */
tf.nsect   = gtf->tfa[1];   /* 0x1f2 */
tf.lbal= gtf->tfa[2];   /* 0x1f3 */
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index fef87dd..4595d1f 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -895,6 +895,7 @@ static u64 ata_read_native_max_address(struct ata_device 
*dev)
 /**
  * ata_set_native_max_address_ext  -   LBA48 native max set
  * @dev: Device to query
+ * @new_sectors: new max sectors value to set for the device
  *
  * Perform an LBA48 size set max upon the device in question. Return the
  * actual LBA48 size or zero if the command fails.
@@ -932,6 +933,7 @@ static u64 ata_set_native_max_address_ext(struct ata_device 
*dev, u64 new_sector
 /**
  * ata_set_native_max_address  -   LBA28 native max set
  * @dev: Device to query
+ * @new_sectors: new max sectors value to set for the device
  *
  * Perform an LBA28 size set max upon the device in question. Return the
  * actual LBA28 size or zero if the command fails.
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c
index 75dc847..11245e3 100644
--- a/drivers/ata/pata_pcmcia.c
+++ b/drivers/ata/pata_pcmcia.c
@@ -357,6 +357,7 @@ static struct pcmcia_device_id pcmcia_devices[] = {
PCMCIA_DEVICE_MANF_CARD(0x000a, 0x),/* I-O Data CFA */
PCMCIA_DEVICE_MANF_CARD(0x001c, 0x0001),/* Mitsubishi CFA */
PCMCIA_DEVICE_MANF_CARD(0x0032, 0x0704),
+   PCMCIA_DEVICE_MANF_CARD(0x0032, 0x2904),
PCMCIA_DEVICE_MANF_CARD(0x0045, 0x0401),/* SanDisk CFA */
PCMCIA_DEVICE_MANF_CARD(0x0098, 0x),/* Toshiba */
PCMCIA_DEVICE_MANF_CARD(0x00a4, 0x002d),
diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c
index 27685ce..fb8c9e1 100644
--- a/drivers/ata/pata_qdi.c
+++ b/drivers/ata/pata_qdi.c
@@ -375,7 +375,7 @@ static __init int qdi_init(void)
res = inb(port + 3);
if (res & 1) {
/* Single channel mode */
-   

[git patches] libata fixes, minor updates

2007-05-09 Thread Jeff Garzik

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:

 Documentation/kernel-parameters.txt |8 ---
 drivers/ata/libata-acpi.c   |3 +-
 drivers/ata/libata-core.c   |2 +
 drivers/ata/pata_pcmcia.c   |1 +
 drivers/ata/pata_qdi.c  |2 +-
 drivers/ata/pata_scc.c  |4 +-
 drivers/ata/sata_nv.c   |   92 +-
 drivers/ata/sata_promise.c  |   24 --
 drivers/ata/sata_via.c  |8 +++
 9 files changed, 113 insertions(+), 31 deletions(-)

Alexey Dobriyan (1):
  pata_scc: fix compilation

Jesse Barnes (1):
  Doc Fix: remove mention of combined mode-related kernel parameters

Mikael Pettersson (2):
  sata_promise: fix another error decode regression
  sata_promise: SATAII-150/300 TX4 port numbering fix

Randy Dunlap (1):
  libata: fix kernel-doc parameters

Richard Kennedy (1):
  pata_pcmcia.c: add card ident for jvc cdrom

Robert Hancock (1):
  sata_nv: fix ADMA freeze/thaw/irq_clear issues

Samuel Thibault (1):
  Fix pata_qdi.c probe code

Tejun Heo (2):
  libata-acpi: fix _GTF command protocol for ATAPI devices
  sata_via: add missing PM hooks

diff --git a/Documentation/kernel-parameters.txt 
b/Documentation/kernel-parameters.txt
index 6b8ad06..09220a1 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -754,14 +754,6 @@ and is between 256 and 4096 characters. It is defined in 
the file
inport.irq= [HW] Inport (ATI XL and Microsoft) busmouse driver
Format: irq
 
-   combined_mode=  [HW] control which driver uses IDE ports in combined
-   mode: legacy IDE driver, libata, or both
-   (in the libata case, libata.atapi_enabled=1 may be
-   useful as well).  Note that using the ide or libata
-   options may affect your device naming (e.g. by
-   changing hdc to sdb).
-   Format: combined (default), ide, or libata
-
inttest=[IA64]
 
io7=[HW] IO7 for Marvel based alpha systems
diff --git a/drivers/ata/libata-acpi.c b/drivers/ata/libata-acpi.c
index 03a0acf..cb3eab6 100644
--- a/drivers/ata/libata-acpi.c
+++ b/drivers/ata/libata-acpi.c
@@ -489,8 +489,7 @@ static void taskfile_load_raw(struct ata_port *ap,
 
/* convert gtf to tf */
tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; /* TBD */
-   tf.protocol = atadev-class == ATA_DEV_ATAPI ?
-   ATA_PROT_ATAPI_NODATA : ATA_PROT_NODATA;
+   tf.protocol = ATA_PROT_NODATA;
tf.feature = gtf-tfa[0];   /* 0x1f1 */
tf.nsect   = gtf-tfa[1];   /* 0x1f2 */
tf.lbal= gtf-tfa[2];   /* 0x1f3 */
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index fef87dd..4595d1f 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -895,6 +895,7 @@ static u64 ata_read_native_max_address(struct ata_device 
*dev)
 /**
  * ata_set_native_max_address_ext  -   LBA48 native max set
  * @dev: Device to query
+ * @new_sectors: new max sectors value to set for the device
  *
  * Perform an LBA48 size set max upon the device in question. Return the
  * actual LBA48 size or zero if the command fails.
@@ -932,6 +933,7 @@ static u64 ata_set_native_max_address_ext(struct ata_device 
*dev, u64 new_sector
 /**
  * ata_set_native_max_address  -   LBA28 native max set
  * @dev: Device to query
+ * @new_sectors: new max sectors value to set for the device
  *
  * Perform an LBA28 size set max upon the device in question. Return the
  * actual LBA28 size or zero if the command fails.
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c
index 75dc847..11245e3 100644
--- a/drivers/ata/pata_pcmcia.c
+++ b/drivers/ata/pata_pcmcia.c
@@ -357,6 +357,7 @@ static struct pcmcia_device_id pcmcia_devices[] = {
PCMCIA_DEVICE_MANF_CARD(0x000a, 0x),/* I-O Data CFA */
PCMCIA_DEVICE_MANF_CARD(0x001c, 0x0001),/* Mitsubishi CFA */
PCMCIA_DEVICE_MANF_CARD(0x0032, 0x0704),
+   PCMCIA_DEVICE_MANF_CARD(0x0032, 0x2904),
PCMCIA_DEVICE_MANF_CARD(0x0045, 0x0401),/* SanDisk CFA */
PCMCIA_DEVICE_MANF_CARD(0x0098, 0x),/* Toshiba */
PCMCIA_DEVICE_MANF_CARD(0x00a4, 0x002d),
diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c
index 27685ce..fb8c9e1 100644
--- a/drivers/ata/pata_qdi.c
+++ b/drivers/ata/pata_qdi.c
@@ -375,7 +375,7 @@ static __init int qdi_init(void)
res = inb(port + 3);
if (res  1) {
/* Single channel mode */
-