* [PATCH 00/73] libata: use ata.h mode mask defines everywhere
@ 2009-03-14 18:35 Erik Inge Bolsø
2009-03-14 19:07 ` [PATCH 01/73] pata_acpi: use ata.h mode mask defines Erik Inge Bolsø
` (72 more replies)
0 siblings, 73 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 18:35 UTC (permalink / raw)
To: linux-ide
This patch series converts all drivers/ata/ drivers to use ATA_PIOx /
ATA_MWDMAx / ATA_UDMAx defines for transfer masks, uncovering a few
possible bugs in the process. Nothing important.
This series makes no functional changes, only converts hex codes to their
corresponding defines. Fixes and questions afterwards.
shortlog below:
Erik Inge Bolsø (73):
pata_acpi: use ata.h mode mask defines
[ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks
pata_octeon_cf: use ata.h mode mask defines
ahci: use ata.h mode mask defines
ata_generic: use ata.h mode mask defines
ata_piix: use ata.h mode mask defines
pata_ali: use ata.h mode mask defines
pata_amd: use ata.h mode mask defines
pata_artop: use ata.h mode mask defines
pata_at32: use ata.h mode mask defines
pata_atiixp: use ata.h mode mask defines
pata_bf54x: use ata.h mode mask defines
pata_cmd640: use ata.h mode mask defines
pata_cmd64x: use ata.h mode mask defines
pata_cs5520: use ata.h mode mask defines
pata_cs5530: use ata.h mode mask defines
pata_cs5535: use ata.h mode mask defines
pata_cs5536: use ata.h mode mask defines
pata_cypress: use ata.h mode mask defines
pata_efar: use ata.h mode mask defines
pata_hpt366: use ata.h mode mask defines
pata_hpt37x: use ata.h mode mask defines
pata_hpt3x2n: use ata.h mode mask defines
pata_hpt3x3: use ata.h mode mask defines
pata_icside: use ata.h mode mask defines
pata_isapnp: use ata.h mode mask defines
pata_it8213: use ata.h mode mask defines
pata_it821x: use ata.h mode mask defines
pata_ixp4xx_cf: use ata.h mode mask defines
pata_jmicron: use ata.h mode mask defines
pata_legacy: use ata.h mode mask defines
pata_marvell: use ata.h mode mask defines
pata_mpc52xx: use ata.h mode mask defines
pata_mpiix: use ata.h mode mask defines
pata_netcell: use ata.h mode mask defines
pata_ninja32: use ata.h mode mask defines
pata_ns87410: use ata.h mode mask defines
pata_ns87415: use ata.h mode mask defines
pata_oldpiix: use ata.h mode mask defines
pata_opti: use ata.h mode mask defines
pata_optidma: use ata.h mode mask defines
pata_pcmcia: use ata.h mode mask defines
pata_pdc2027x: use ata.h mode mask defines
pata_pdc202xx_old: use ata.h mode mask defines
pata_qdi: use ata.h mode mask defines
pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY
pata_rb532_cf: use ata.h mode mask defines
pata_rz1000: use ata.h mode mask defines
pata_sc1200: use ata.h mode mask defines
pata_scc: use ata.h mode mask defines
pata_sch: remove superfluous mode mask comments
pata_serverworks: use ata.h mode mask defines
pata_sil680: use ata.h mode mask defines
pata_sis: use ata.h mode mask defines
pata_sl82c105: use ata.h mode mask defines
pata_triflex: use ata.h mode mask defines
pata_via: use ata.h mode mask defines
pata_winbond: use ata.h mode mask defines
pdc_adma: use ata.h mode mask defines, add ATA_PIO4_ONLY
sata_fsl: use ata.h mode mask defines
sata_inic162x: use ata.h mode mask defines
sata_mv: use ata.h mode mask defines
sata_nv: use ata.h mode mask defines
sata_promise: use ata.h mode mask defines
sata_qstor: use ata.h mode mask defines
sata_sil24: use ata.h mode mask defines
sata_sil: use ata.h mode mask defines
sata_sis: use ata.h mode mask defines
sata_svw: use ata.h mode mask defines
sata_sx4: use ata.h mode mask defines
sata_uli: use ata.h mode mask defines
sata_via: use ata.h mode mask defines
sata_vsc: use ata.h mode mask defines
drivers/ata/ahci.c | 16 ++++----
drivers/ata/ata_generic.c | 4 +-
drivers/ata/ata_piix.c | 60 ++++++++++++++++----------------
drivers/ata/pata_acpi.c | 6 ++--
drivers/ata/pata_ali.c | 28 ++++++++--------
drivers/ata/pata_amd.c | 70 +++++++++++++++++++-------------------
drivers/ata/pata_artop.c | 16 ++++----
drivers/ata/pata_at32.c | 16 +++++----
drivers/ata/pata_atiixp.c | 6 ++--
drivers/ata/pata_bf54x.c | 2 +-
drivers/ata/pata_cmd640.c | 2 +-
drivers/ata/pata_cmd64x.c | 24 +++++++-------
drivers/ata/pata_cs5520.c | 2 +-
drivers/ata/pata_cs5530.c | 8 ++--
drivers/ata/pata_cs5535.c | 4 +-
drivers/ata/pata_cs5536.c | 4 +-
drivers/ata/pata_cypress.c | 4 +-
drivers/ata/pata_efar.c | 6 ++--
drivers/ata/pata_hpt366.c | 4 +-
drivers/ata/pata_hpt37x.c | 28 ++++++++--------
drivers/ata/pata_hpt3x2n.c | 4 +-
drivers/ata/pata_hpt3x3.c | 6 ++--
drivers/ata/pata_icside.c | 4 +-
drivers/ata/pata_isapnp.c | 2 +-
drivers/ata/pata_it8213.c | 4 +-
drivers/ata/pata_it821x.c | 16 ++++----
drivers/ata/pata_ixp4xx_cf.c | 2 +-
drivers/ata/pata_jmicron.c | 4 +-
drivers/ata/pata_legacy.c | 2 +-
drivers/ata/pata_marvell.c | 8 ++--
drivers/ata/pata_mpc52xx.c | 4 +-
drivers/ata/pata_mpiix.c | 2 +-
drivers/ata/pata_netcell.c | 4 +-
drivers/ata/pata_ninja32.c | 2 +-
drivers/ata/pata_ns87410.c | 2 +-
drivers/ata/pata_ns87415.c | 8 ++--
drivers/ata/pata_octeon_cf.c | 4 +-
drivers/ata/pata_oldpiix.c | 4 +-
drivers/ata/pata_opti.c | 2 +-
drivers/ata/pata_optidma.c | 10 +++---
drivers/ata/pata_pcmcia.c | 2 +-
drivers/ata/pata_pdc2027x.c | 12 +++---
drivers/ata/pata_pdc202xx_old.c | 12 +++---
drivers/ata/pata_qdi.c | 4 +-
drivers/ata/pata_radisys.c | 6 ++--
drivers/ata/pata_rb532_cf.c | 2 +-
drivers/ata/pata_rz1000.c | 2 +-
drivers/ata/pata_sc1200.c | 6 ++--
drivers/ata/pata_scc.c | 4 +-
drivers/ata/pata_sch.c | 6 ++--
drivers/ata/pata_serverworks.c | 20 +++++-----
drivers/ata/pata_sil680.c | 8 ++--
drivers/ata/pata_sis.c | 32 ++++++++++-------
drivers/ata/pata_sl82c105.c | 6 ++--
drivers/ata/pata_triflex.c | 4 +-
drivers/ata/pata_via.c | 24 +++++++-------
drivers/ata/pata_winbond.c | 2 +-
drivers/ata/pdc_adma.c | 2 +-
drivers/ata/sata_fsl.c | 4 +-
drivers/ata/sata_inic162x.c | 4 +-
drivers/ata/sata_mv.c | 16 ++++----
drivers/ata/sata_nv.c | 6 ++--
drivers/ata/sata_promise.c | 28 ++++++++--------
drivers/ata/sata_qstor.c | 2 +-
drivers/ata/sata_sil.c | 16 ++++----
drivers/ata/sata_sil24.c | 18 +++++-----
drivers/ata/sata_sis.c | 4 +-
drivers/ata/sata_svw.c | 16 ++++----
drivers/ata/sata_sx4.c | 4 +-
drivers/ata/sata_uli.c | 2 +-
drivers/ata/sata_via.c | 16 ++++----
drivers/ata/sata_vsc.c | 4 +-
include/linux/ata.h | 6 +++
73 files changed, 359 insertions(+), 345 deletions(-)
^ permalink raw reply [flat|nested] 87+ messages in thread
* [PATCH 01/73] pata_acpi: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
@ 2009-03-14 19:07 ` Erik Inge Bolsø
2009-03-14 19:10 ` [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks Erik Inge Bolsø
` (71 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:07 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_acpi.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_acpi.c b/drivers/ata/pata_acpi.c
index 8b77a98..d8f35fe 100644
--- a/drivers/ata/pata_acpi.c
+++ b/drivers/ata/pata_acpi.c
@@ -246,9 +246,9 @@ static int pacpi_init_one (struct pci_dev *pdev, const struct pci_device_id *id)
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = 0x7f,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA6,
.port_ops = &pacpi_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
2009-03-14 19:07 ` [PATCH 01/73] pata_acpi: use ata.h mode mask defines Erik Inge Bolsø
@ 2009-03-14 19:10 ` Erik Inge Bolsø
2009-03-14 19:23 ` Jeff Garzik
2009-03-14 19:10 ` [PATCH 03/73] pata_octeon_cf: use ata.h mode mask defines Erik Inge Bolsø
` (70 subsequent siblings)
72 siblings, 1 reply; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:10 UTC (permalink / raw)
To: linux-ide
Will be used by next patch for pata_octeon_cf.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
include/linux/ata.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/ata.h b/include/linux/ata.h
index 9a061ac..386eeac 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -117,6 +117,8 @@ enum {
ATA_MWDMA0 = (1 << 0),
ATA_MWDMA1 = ATA_MWDMA0 | (1 << 1),
ATA_MWDMA2 = ATA_MWDMA1 | (1 << 2),
+ ATA_MWDMA3 = ATA_MWDMA2 | (1 << 3),
+ ATA_MWDMA4 = ATA_MWDMA3 | (1 << 4),
ATA_MWDMA12_ONLY = (1 << 1) | (1 << 2),
ATA_MWDMA2_ONLY = (1 << 2),
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 03/73] pata_octeon_cf: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
2009-03-14 19:07 ` [PATCH 01/73] pata_acpi: use ata.h mode mask defines Erik Inge Bolsø
2009-03-14 19:10 ` [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks Erik Inge Bolsø
@ 2009-03-14 19:10 ` Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 04/73] ahci: " Erik Inge Bolsø
` (69 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:10 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_octeon_cf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index 0fe4ef3..efe2c19 100644
--- a/drivers/ata/pata_octeon_cf.c
+++ b/drivers/ata/pata_octeon_cf.c
@@ -871,7 +871,7 @@ static int __devinit octeon_cf_probe(struct platform_device *pdev)
ap->private_data = cf_port;
cf_port->ap = ap;
ap->ops = &octeon_cf_ops;
- ap->pio_mask = 0x7f; /* Support PIO 0-6 */
+ ap->pio_mask = ATA_PIO6;
ap->flags |= ATA_FLAG_MMIO | ATA_FLAG_NO_LEGACY
| ATA_FLAG_NO_ATAPI | ATA_FLAG_PIO_POLLING;
@@ -900,7 +900,7 @@ static int __devinit octeon_cf_probe(struct platform_device *pdev)
ap->ioaddr.ctl_addr = cs1 + (6 << 1) + 1;
octeon_cf_ops.sff_data_xfer = octeon_cf_data_xfer16;
- ap->mwdma_mask = 0x1f; /* Support MWDMA 0-4 */
+ ap->mwdma_mask = ATA_MWDMA4;
irq = platform_get_irq(pdev, 0);
irq_handler = octeon_cf_interrupt;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 04/73] ahci: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (2 preceding siblings ...)
2009-03-14 19:10 ` [PATCH 03/73] pata_octeon_cf: use ata.h mode mask defines Erik Inge Bolsø
@ 2009-03-14 19:11 ` Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 05/73] ata_generic: " Erik Inge Bolsø
` (68 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:11 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/ahci.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 66e012c..3e66734 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -404,7 +404,7 @@ static const struct ata_port_info ahci_port_info[] = {
/* board_ahci */
{
.flags = AHCI_FLAG_COMMON,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_ops,
},
@@ -412,7 +412,7 @@ static const struct ata_port_info ahci_port_info[] = {
{
AHCI_HFLAGS (AHCI_HFLAG_NO_NCQ | AHCI_HFLAG_NO_PMP),
.flags = AHCI_FLAG_COMMON,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_vt8251_ops,
},
@@ -420,7 +420,7 @@ static const struct ata_port_info ahci_port_info[] = {
{
AHCI_HFLAGS (AHCI_HFLAG_IGN_IRQ_IF_ERR),
.flags = AHCI_FLAG_COMMON,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_ops,
},
@@ -430,7 +430,7 @@ static const struct ata_port_info ahci_port_info[] = {
AHCI_HFLAG_32BIT_ONLY | AHCI_HFLAG_NO_MSI |
AHCI_HFLAG_SECT255),
.flags = AHCI_FLAG_COMMON,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_sb600_ops,
},
@@ -440,7 +440,7 @@ static const struct ata_port_info ahci_port_info[] = {
AHCI_HFLAG_MV_PATA | AHCI_HFLAG_NO_PMP),
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_ops,
},
@@ -448,7 +448,7 @@ static const struct ata_port_info ahci_port_info[] = {
{
AHCI_HFLAGS (AHCI_HFLAG_IGN_SERR_INTERNAL),
.flags = AHCI_FLAG_COMMON,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_sb600_ops,
},
@@ -456,7 +456,7 @@ static const struct ata_port_info ahci_port_info[] = {
{
AHCI_HFLAGS (AHCI_HFLAG_YES_NCQ),
.flags = AHCI_FLAG_COMMON,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_ops,
},
@@ -464,7 +464,7 @@ static const struct ata_port_info ahci_port_info[] = {
{
AHCI_HFLAGS (AHCI_HFLAG_NO_PMP),
.flags = AHCI_FLAG_COMMON,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 05/73] ata_generic: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (3 preceding siblings ...)
2009-03-14 19:11 ` [PATCH 04/73] ahci: " Erik Inge Bolsø
@ 2009-03-14 19:11 ` Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 06/73] ata_piix: " Erik Inge Bolsø
` (67 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:11 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/ata_generic.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c
index dc48a63..ecfd22b 100644
--- a/drivers/ata/ata_generic.c
+++ b/drivers/ata/ata_generic.c
@@ -118,8 +118,8 @@ static int ata_generic_init_one(struct pci_dev *dev, const struct pci_device_id
u16 command;
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &generic_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 06/73] ata_piix: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (4 preceding siblings ...)
2009-03-14 19:11 ` [PATCH 05/73] ata_generic: " Erik Inge Bolsø
@ 2009-03-14 19:11 ` Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 07/73] pata_ali: " Erik Inge Bolsø
` (66 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:11 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/ata_piix.c | 60 ++++++++++++++++++++++++------------------------
1 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index 54961c0..b3f7e60 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -446,34 +446,34 @@ static struct ata_port_info piix_port_info[] = {
[piix_pata_mwdma] = /* PIIX3 MWDMA only */
{
.flags = PIIX_PATA_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x06, /* mwdma1-2 ?? CHECK 0 should be ok but slow */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA12_ONLY, /* mwdma1-2 ?? CHECK 0 should be ok but slow */
.port_ops = &piix_pata_ops,
},
[piix_pata_33] = /* PIIX4 at 33MHz */
{
.flags = PIIX_PATA_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x06, /* mwdma1-2 ?? CHECK 0 should be ok but slow */
- .udma_mask = ATA_UDMA_MASK_40C,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA12_ONLY, /* mwdma1-2 ?? CHECK 0 should be ok but slow */
+ .udma_mask = ATA_UDMA2,
.port_ops = &piix_pata_ops,
},
[ich_pata_33] = /* ICH0 - ICH at 33Mhz*/
{
.flags = PIIX_PATA_FLAGS,
- .pio_mask = 0x1f, /* pio 0-4 */
- .mwdma_mask = 0x06, /* Check: maybe 0x07 */
- .udma_mask = ATA_UDMA2, /* UDMA33 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA12_ONLY, /* Check: maybe MWDMA0 is ok */
+ .udma_mask = ATA_UDMA2,
.port_ops = &ich_pata_ops,
},
[ich_pata_66] = /* ICH controllers up to 66MHz */
{
.flags = PIIX_PATA_FLAGS,
- .pio_mask = 0x1f, /* pio 0-4 */
- .mwdma_mask = 0x06, /* MWDMA0 is broken on chip */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA12_ONLY, /* MWDMA0 is broken on chip */
.udma_mask = ATA_UDMA4,
.port_ops = &ich_pata_ops,
},
@@ -481,17 +481,17 @@ static struct ata_port_info piix_port_info[] = {
[ich_pata_100] =
{
.flags = PIIX_PATA_FLAGS | PIIX_FLAG_CHECKINTR,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x06, /* mwdma1-2 */
- .udma_mask = ATA_UDMA5, /* udma0-5 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA12_ONLY,
+ .udma_mask = ATA_UDMA5,
.port_ops = &ich_pata_ops,
},
[ich5_sata] =
{
.flags = PIIX_SATA_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &piix_sata_ops,
},
@@ -499,8 +499,8 @@ static struct ata_port_info piix_port_info[] = {
[ich6_sata] =
{
.flags = PIIX_SATA_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &piix_sata_ops,
},
@@ -508,8 +508,8 @@ static struct ata_port_info piix_port_info[] = {
[ich6m_sata] =
{
.flags = PIIX_SATA_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &piix_sata_ops,
},
@@ -517,8 +517,8 @@ static struct ata_port_info piix_port_info[] = {
[ich8_sata] =
{
.flags = PIIX_SATA_FLAGS | PIIX_FLAG_SIDPR,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &piix_sata_ops,
},
@@ -526,8 +526,8 @@ static struct ata_port_info piix_port_info[] = {
[ich8_2port_sata] =
{
.flags = PIIX_SATA_FLAGS | PIIX_FLAG_SIDPR,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &piix_sata_ops,
},
@@ -535,8 +535,8 @@ static struct ata_port_info piix_port_info[] = {
[tolapai_sata] =
{
.flags = PIIX_SATA_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &piix_sata_ops,
},
@@ -544,8 +544,8 @@ static struct ata_port_info piix_port_info[] = {
[ich8m_apple_sata] =
{
.flags = PIIX_SATA_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &piix_sata_ops,
},
@@ -553,9 +553,9 @@ static struct ata_port_info piix_port_info[] = {
[piix_pata_vmw] =
{
.flags = PIIX_PATA_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x06, /* mwdma1-2 ?? CHECK 0 should be ok but slow */
- .udma_mask = ATA_UDMA_MASK_40C,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA12_ONLY, /* mwdma1-2 ?? CHECK 0 should be ok but slow */
+ .udma_mask = ATA_UDMA2,
.port_ops = &piix_vmw_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 07/73] pata_ali: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (5 preceding siblings ...)
2009-03-14 19:11 ` [PATCH 06/73] ata_piix: " Erik Inge Bolsø
@ 2009-03-14 19:11 ` Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 08/73] pata_amd: " Erik Inge Bolsø
` (65 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:11 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_ali.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c
index eb99dbe..751b7ea 100644
--- a/drivers/ata/pata_ali.c
+++ b/drivers/ata/pata_ali.c
@@ -492,53 +492,53 @@ static int ali_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
{
static const struct ata_port_info info_early = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
+ .pio_mask = ATA_PIO4,
.port_ops = &ali_early_port_ops
};
/* Revision 0x20 added DMA */
static const struct ata_port_info info_20 = {
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &ali_20_port_ops
};
/* Revision 0x20 with support logic added UDMA */
static const struct ata_port_info info_20_udma = {
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = 0x07, /* UDMA33 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA2,
.port_ops = &ali_20_port_ops
};
/* Revision 0xC2 adds UDMA66 */
static const struct ata_port_info info_c2 = {
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &ali_c2_port_ops
};
/* Revision 0xC3 is UDMA66 for now */
static const struct ata_port_info info_c3 = {
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &ali_c2_port_ops
};
/* Revision 0xC4 is UDMA100 */
static const struct ata_port_info info_c4 = {
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_PIO_LBA48,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &ali_c4_port_ops
};
/* Revision 0xC5 is UDMA133 with LBA48 DMA */
static const struct ata_port_info info_c5 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &ali_c5_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 08/73] pata_amd: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (6 preceding siblings ...)
2009-03-14 19:11 ` [PATCH 07/73] pata_ali: " Erik Inge Bolsø
@ 2009-03-14 19:11 ` Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 09/73] pata_artop: " Erik Inge Bolsø
` (64 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:11 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_amd.c | 70 ++++++++++++++++++++++++------------------------
1 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
index 115b1cd..33a74f1 100644
--- a/drivers/ata/pata_amd.c
+++ b/drivers/ata/pata_amd.c
@@ -455,74 +455,74 @@ static void amd_clear_fifo(struct pci_dev *pdev)
static int amd_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
{
static const struct ata_port_info info[10] = {
- { /* 0: AMD 7401 */
+ { /* 0: AMD 7401 - no swdma */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07, /* No SWDMA */
- .udma_mask = 0x07, /* UDMA 33 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA2,
.port_ops = &amd33_port_ops
},
{ /* 1: Early AMD7409 - no swdma */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA4, /* UDMA 66 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA4,
.port_ops = &amd66_port_ops
},
- { /* 2: AMD 7409, no swdma errata */
+ { /* 2: AMD 7409 */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA4, /* UDMA 66 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA4,
.port_ops = &amd66_port_ops
},
{ /* 3: AMD 7411 */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA5, /* UDMA 100 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &amd100_port_ops
},
{ /* 4: AMD 7441 */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA5, /* UDMA 100 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &amd100_port_ops
},
- { /* 5: AMD 8111*/
+ { /* 5: AMD 8111 - no swdma */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA6, /* UDMA 133, no swdma */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA6,
.port_ops = &amd133_port_ops
},
- { /* 6: AMD 8111 UDMA 100 (Serenade) */
+ { /* 6: AMD 8111 UDMA 100 (Serenade) - no swdma */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA5, /* UDMA 100, no swdma */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &amd133_port_ops
},
{ /* 7: Nvidia Nforce */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA5, /* UDMA 100 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &nv100_port_ops
},
- { /* 8: Nvidia Nforce2 and later */
+ { /* 8: Nvidia Nforce2 and later - no swdma */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA6, /* UDMA 133, no swdma */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA6,
.port_ops = &nv133_port_ops
},
{ /* 9: AMD CS5536 (Geode companion) */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA5, /* UDMA 100 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &amd100_port_ops
}
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 09/73] pata_artop: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (7 preceding siblings ...)
2009-03-14 19:11 ` [PATCH 08/73] pata_amd: " Erik Inge Bolsø
@ 2009-03-14 19:11 ` Erik Inge Bolsø
2009-03-14 19:12 ` [PATCH 10/73] pata_at32: " Erik Inge Bolsø
` (63 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:11 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_artop.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c
index 6b3092c..07c7fae 100644
--- a/drivers/ata/pata_artop.c
+++ b/drivers/ata/pata_artop.c
@@ -323,29 +323,29 @@ static int artop_init_one (struct pci_dev *pdev, const struct pci_device_id *id)
static int printed_version;
static const struct ata_port_info info_6210 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA2,
.port_ops = &artop6210_ops,
};
static const struct ata_port_info info_626x = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &artop6260_ops,
};
static const struct ata_port_info info_628x = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &artop6260_ops,
};
static const struct ata_port_info info_628x_fast = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &artop6260_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 10/73] pata_at32: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (8 preceding siblings ...)
2009-03-14 19:11 ` [PATCH 09/73] pata_artop: " Erik Inge Bolsø
@ 2009-03-14 19:12 ` Erik Inge Bolsø
2009-03-14 19:21 ` Jeff Garzik
2009-03-14 19:12 ` [PATCH 11/73] pata_atiixp: " Erik Inge Bolsø
` (62 subsequent siblings)
72 siblings, 1 reply; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:12 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_at32.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c
index ab61095..131b20c 100644
--- a/drivers/ata/pata_at32.c
+++ b/drivers/ata/pata_at32.c
@@ -58,16 +58,18 @@
* ATA PIO modes
*
* Name | Mb/s | Min cycle time | Mask
- * --------+-------+----------------+--------
- * Mode 0 | 3.3 | 600 ns | 0x01
- * Mode 1 | 5.2 | 383 ns | 0x03
- * Mode 2 | 8.3 | 240 ns | 0x07
- * Mode 3 | 11.1 | 180 ns | 0x0f
- * Mode 4 | 16.7 | 120 ns | 0x1f
+ * --------+-------+----------------+----------
+ * Mode 0 | 3.3 | 600 ns | ATA_PIO0
+ * Mode 1 | 5.2 | 383 ns | ATA_PIO1
+ * Mode 2 | 8.3 | 240 ns | ATA_PIO2
+ * Mode 3 | 11.1 | 180 ns | ATA_PIO3
+ * Mode 4 | 16.7 | 120 ns | ATA_PIO4
*
* Alter PIO_MASK below according to table to set maximal PIO mode.
*/
-#define PIO_MASK (0x1f)
+enum {
+ PIO_MASK = ATA_PIO4,
+};
/*
* Struct containing private information about device.
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 11/73] pata_atiixp: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (9 preceding siblings ...)
2009-03-14 19:12 ` [PATCH 10/73] pata_at32: " Erik Inge Bolsø
@ 2009-03-14 19:12 ` Erik Inge Bolsø
2009-03-14 19:12 ` [PATCH 12/73] pata_bf54x: " Erik Inge Bolsø
` (61 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:12 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_atiixp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c
index 506adde..bec0b8a 100644
--- a/drivers/ata/pata_atiixp.c
+++ b/drivers/ata/pata_atiixp.c
@@ -220,9 +220,9 @@ static int atiixp_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x06, /* No MWDMA0 support */
- .udma_mask = 0x3F,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA12_ONLY,
+ .udma_mask = ATA_UDMA5,
.port_ops = &atiixp_port_ops
};
static const struct pci_bits atiixp_enable_bits[] = {
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 12/73] pata_bf54x: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (10 preceding siblings ...)
2009-03-14 19:12 ` [PATCH 11/73] pata_atiixp: " Erik Inge Bolsø
@ 2009-03-14 19:12 ` Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 13/73] pata_cmd640: " Erik Inge Bolsø
` (60 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:12 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_bf54x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_bf54x.c b/drivers/ata/pata_bf54x.c
index 1050fed..c4b47a3 100644
--- a/drivers/ata/pata_bf54x.c
+++ b/drivers/ata/pata_bf54x.c
@@ -1502,7 +1502,7 @@ static struct ata_port_info bfin_port_info[] = {
.flags = ATA_FLAG_SLAVE_POSS
| ATA_FLAG_MMIO
| ATA_FLAG_NO_LEGACY,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.mwdma_mask = 0,
.udma_mask = 0,
.port_ops = &bfin_pata_ops,
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 13/73] pata_cmd640: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (11 preceding siblings ...)
2009-03-14 19:12 ` [PATCH 12/73] pata_bf54x: " Erik Inge Bolsø
@ 2009-03-14 19:13 ` Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 14/73] pata_cmd64x: " Erik Inge Bolsø
` (59 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:13 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_cmd640.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_cmd640.c b/drivers/ata/pata_cmd640.c
index 34a3942..5acf9fa 100644
--- a/drivers/ata/pata_cmd640.c
+++ b/drivers/ata/pata_cmd640.c
@@ -211,7 +211,7 @@ static int cmd640_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
+ .pio_mask = ATA_PIO4,
.port_ops = &cmd640_port_ops
};
const struct ata_port_info *ppi[] = { &info, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 14/73] pata_cmd64x: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (12 preceding siblings ...)
2009-03-14 19:13 ` [PATCH 13/73] pata_cmd640: " Erik Inge Bolsø
@ 2009-03-14 19:13 ` Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 15/73] pata_cs5520: " Erik Inge Bolsø
` (58 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:13 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_cmd64x.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/ata/pata_cmd64x.c b/drivers/ata/pata_cmd64x.c
index 3167d8f..f98dffe 100644
--- a/drivers/ata/pata_cmd64x.c
+++ b/drivers/ata/pata_cmd64x.c
@@ -299,40 +299,40 @@ static int cmd64x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
static const struct ata_port_info cmd_info[6] = {
{ /* CMD 643 - no UDMA */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &cmd64x_port_ops
},
{ /* CMD 646 with broken UDMA */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &cmd64x_port_ops
},
{ /* CMD 646 with working UDMA */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA2,
.port_ops = &cmd64x_port_ops
},
{ /* CMD 646 rev 1 */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &cmd646r1_port_ops
},
{ /* CMD 648 */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &cmd648_port_ops
},
{ /* CMD 649 */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &cmd648_port_ops
}
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 15/73] pata_cs5520: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (13 preceding siblings ...)
2009-03-14 19:13 ` [PATCH 14/73] pata_cmd64x: " Erik Inge Bolsø
@ 2009-03-14 19:13 ` Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 16/73] pata_cs5530: " Erik Inge Bolsø
` (57 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:13 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_cs5520.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c
index 1186bcd..db6a969 100644
--- a/drivers/ata/pata_cs5520.c
+++ b/drivers/ata/pata_cs5520.c
@@ -158,7 +158,7 @@ static int __devinit cs5520_init_one(struct pci_dev *pdev, const struct pci_devi
static const unsigned int ctl_port[] = { 0x3F6, 0x376 };
struct ata_port_info pi = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
+ .pio_mask = ATA_PIO4,
.port_ops = &cs5520_port_ops,
};
const struct ata_port_info *ppi[2];
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 16/73] pata_cs5530: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (14 preceding siblings ...)
2009-03-14 19:13 ` [PATCH 15/73] pata_cs5520: " Erik Inge Bolsø
@ 2009-03-14 19:13 ` Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 17/73] pata_cs5535: " Erik Inge Bolsø
` (56 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:13 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_cs5530.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ata/pata_cs5530.c b/drivers/ata/pata_cs5530.c
index bba4533..c974b05 100644
--- a/drivers/ata/pata_cs5530.c
+++ b/drivers/ata/pata_cs5530.c
@@ -298,15 +298,15 @@ static int cs5530_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA2,
.port_ops = &cs5530_port_ops
};
/* The docking connector doesn't do UDMA, and it seems not MWDMA */
static const struct ata_port_info info_palmax_secondary = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
+ .pio_mask = ATA_PIO4,
.port_ops = &cs5530_port_ops
};
const struct ata_port_info *ppi[] = { &info, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 17/73] pata_cs5535: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (15 preceding siblings ...)
2009-03-14 19:13 ` [PATCH 16/73] pata_cs5530: " Erik Inge Bolsø
@ 2009-03-14 19:13 ` Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 18/73] pata_cs5536: " Erik Inge Bolsø
` (55 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:13 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_cs5535.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_cs5535.c b/drivers/ata/pata_cs5535.c
index 8b236af..d33aa28 100644
--- a/drivers/ata/pata_cs5535.c
+++ b/drivers/ata/pata_cs5535.c
@@ -181,8 +181,8 @@ static int cs5535_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &cs5535_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 18/73] pata_cs5536: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (16 preceding siblings ...)
2009-03-14 19:13 ` [PATCH 17/73] pata_cs5535: " Erik Inge Bolsø
@ 2009-03-14 19:14 ` Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 19/73] pata_cypress: " Erik Inge Bolsø
` (54 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:14 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_cs5536.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_cs5536.c b/drivers/ata/pata_cs5536.c
index afed929..6da4cb4 100644
--- a/drivers/ata/pata_cs5536.c
+++ b/drivers/ata/pata_cs5536.c
@@ -241,8 +241,8 @@ static int cs5536_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &cs5536_port_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 19/73] pata_cypress: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (17 preceding siblings ...)
2009-03-14 19:14 ` [PATCH 18/73] pata_cs5536: " Erik Inge Bolsø
@ 2009-03-14 19:14 ` Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 20/73] pata_efar: " Erik Inge Bolsø
` (53 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:14 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_cypress.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_cypress.c b/drivers/ata/pata_cypress.c
index d546425..8fb040b 100644
--- a/drivers/ata/pata_cypress.c
+++ b/drivers/ata/pata_cypress.c
@@ -124,8 +124,8 @@ static int cy82c693_init_one(struct pci_dev *pdev, const struct pci_device_id *i
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &cy82c693_port_ops
};
const struct ata_port_info *ppi[] = { &info, &ata_dummy_port_info };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 20/73] pata_efar: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (18 preceding siblings ...)
2009-03-14 19:14 ` [PATCH 19/73] pata_cypress: " Erik Inge Bolsø
@ 2009-03-14 19:14 ` Erik Inge Bolsø
2009-03-14 19:45 ` Alan Cox
2009-03-14 19:14 ` [PATCH 21/73] pata_hpt366: " Erik Inge Bolsø
` (52 subsequent siblings)
72 siblings, 1 reply; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:14 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
(Looks like it could use one, though.)
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_efar.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_efar.c b/drivers/ata/pata_efar.c
index ac6392e..bd498cc 100644
--- a/drivers/ata/pata_efar.c
+++ b/drivers/ata/pata_efar.c
@@ -251,9 +251,9 @@ static int efar_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
static int printed_version;
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma1-2 */
- .udma_mask = 0x0f, /* UDMA 66 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2, /* mwdma1-2 */
+ .udma_mask = ATA_UDMA3, /* UDMA 66 */
.port_ops = &efar_ops,
};
const struct ata_port_info *ppi[] = { &info, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 21/73] pata_hpt366: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (19 preceding siblings ...)
2009-03-14 19:14 ` [PATCH 20/73] pata_efar: " Erik Inge Bolsø
@ 2009-03-14 19:14 ` Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 22/73] pata_hpt37x: " Erik Inge Bolsø
` (51 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:14 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_hpt366.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c
index 65c28e5..d7f2da1 100644
--- a/drivers/ata/pata_hpt366.c
+++ b/drivers/ata/pata_hpt366.c
@@ -336,8 +336,8 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static const struct ata_port_info info_hpt366 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &hpt366_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 22/73] pata_hpt37x: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (20 preceding siblings ...)
2009-03-14 19:14 ` [PATCH 21/73] pata_hpt366: " Erik Inge Bolsø
@ 2009-03-14 19:14 ` Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 23/73] pata_hpt3x2n: " Erik Inge Bolsø
` (50 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:14 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_hpt37x.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/ata/pata_hpt37x.c b/drivers/ata/pata_hpt37x.c
index 4216399..81ab570 100644
--- a/drivers/ata/pata_hpt37x.c
+++ b/drivers/ata/pata_hpt37x.c
@@ -753,55 +753,55 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
/* HPT370 - UDMA100 */
static const struct ata_port_info info_hpt370 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &hpt370_port_ops
};
/* HPT370A - UDMA100 */
static const struct ata_port_info info_hpt370a = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &hpt370a_port_ops
};
/* HPT370 - UDMA100 */
static const struct ata_port_info info_hpt370_33 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &hpt370_port_ops
};
/* HPT370A - UDMA100 */
static const struct ata_port_info info_hpt370a_33 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &hpt370a_port_ops
};
/* HPT371, 372 and friends - UDMA133 */
static const struct ata_port_info info_hpt372 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &hpt372_port_ops
};
/* HPT374 - UDMA100, function 1 uses different prereset method */
static const struct ata_port_info info_hpt374_fn0 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &hpt372_port_ops
};
static const struct ata_port_info info_hpt374_fn1 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &hpt374_fn1_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 23/73] pata_hpt3x2n: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (21 preceding siblings ...)
2009-03-14 19:14 ` [PATCH 22/73] pata_hpt37x: " Erik Inge Bolsø
@ 2009-03-14 19:14 ` Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 24/73] pata_hpt3x3: " Erik Inge Bolsø
` (49 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:14 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_hpt3x2n.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_hpt3x2n.c b/drivers/ata/pata_hpt3x2n.c
index d5c9fd7..3d59fe0 100644
--- a/drivers/ata/pata_hpt3x2n.c
+++ b/drivers/ata/pata_hpt3x2n.c
@@ -441,8 +441,8 @@ static int hpt3x2n_init_one(struct pci_dev *dev, const struct pci_device_id *id)
/* HPT372N and friends - UDMA133 */
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &hpt3x2n_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 24/73] pata_hpt3x3: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (22 preceding siblings ...)
2009-03-14 19:14 ` [PATCH 23/73] pata_hpt3x2n: " Erik Inge Bolsø
@ 2009-03-14 19:15 ` Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 25/73] pata_icside: " Erik Inge Bolsø
` (48 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:15 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_hpt3x3.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_hpt3x3.c b/drivers/ata/pata_hpt3x3.c
index f19cc64..7e31025 100644
--- a/drivers/ata/pata_hpt3x3.c
+++ b/drivers/ata/pata_hpt3x3.c
@@ -188,11 +188,11 @@ static int hpt3x3_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
static int printed_version;
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
+ .pio_mask = ATA_PIO4,
#if defined(CONFIG_PATA_HPT3X3_DMA)
/* Further debug needed */
- .mwdma_mask = 0x07,
- .udma_mask = 0x07,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA2,
#endif
.port_ops = &hpt3x3_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 25/73] pata_icside: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (23 preceding siblings ...)
2009-03-14 19:15 ` [PATCH 24/73] pata_hpt3x3: " Erik Inge Bolsø
@ 2009-03-14 19:15 ` Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 26/73] pata_isapnp: " Erik Inge Bolsø
` (47 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:15 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_icside.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_icside.c b/drivers/ata/pata_icside.c
index cf9e984..e7347db 100644
--- a/drivers/ata/pata_icside.c
+++ b/drivers/ata/pata_icside.c
@@ -297,7 +297,7 @@ static int icside_dma_init(struct pata_icside_info *info)
if (ec->dma != NO_DMA && !request_dma(ec->dma, DRV_NAME)) {
state->dma = ec->dma;
- info->mwdma_mask = 0x07; /* MW0..2 */
+ info->mwdma_mask = ATA_MWDMA2;
}
return 0;
@@ -473,7 +473,7 @@ static int __devinit pata_icside_add_ports(struct pata_icside_info *info)
for (i = 0; i < info->nr_ports; i++) {
struct ata_port *ap = host->ports[i];
- ap->pio_mask = 0x1f;
+ ap->pio_mask = ATA_PIO4;
ap->mwdma_mask = info->mwdma_mask;
ap->flags |= ATA_FLAG_SLAVE_POSS;
ap->ops = &pata_icside_port_ops;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 26/73] pata_isapnp: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (24 preceding siblings ...)
2009-03-14 19:15 ` [PATCH 25/73] pata_icside: " Erik Inge Bolsø
@ 2009-03-14 19:15 ` Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 27/73] pata_it8213: " Erik Inge Bolsø
` (46 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:15 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_isapnp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_isapnp.c b/drivers/ata/pata_isapnp.c
index 15cdb91..afa8f70 100644
--- a/drivers/ata/pata_isapnp.c
+++ b/drivers/ata/pata_isapnp.c
@@ -66,7 +66,7 @@ static int isapnp_init_one(struct pnp_dev *idev, const struct pnp_device_id *dev
ap = host->ports[0];
ap->ops = &isapnp_port_ops;
- ap->pio_mask = 1;
+ ap->pio_mask = ATA_PIO0;
ap->flags |= ATA_FLAG_SLAVE_POSS;
ap->ioaddr.cmd_addr = cmd_addr;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 27/73] pata_it8213: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (25 preceding siblings ...)
2009-03-14 19:15 ` [PATCH 26/73] pata_isapnp: " Erik Inge Bolsø
@ 2009-03-14 19:15 ` Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 28/73] pata_it821x: " Erik Inge Bolsø
` (45 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:15 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_it8213.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_it8213.c b/drivers/ata/pata_it8213.c
index c113d7c..f156da8 100644
--- a/drivers/ata/pata_it8213.c
+++ b/drivers/ata/pata_it8213.c
@@ -262,8 +262,8 @@ static int it8213_init_one (struct pci_dev *pdev, const struct pci_device_id *en
static int printed_version;
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4, /* FIXME: want UDMA 100? */
.port_ops = &it8213_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 28/73] pata_it821x: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (26 preceding siblings ...)
2009-03-14 19:15 ` [PATCH 27/73] pata_it8213: " Erik Inge Bolsø
@ 2009-03-14 19:15 ` Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 29/73] pata_ixp4xx_cf: " Erik Inge Bolsø
` (44 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:15 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_it821x.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c
index b05b86a..188bc2f 100644
--- a/drivers/ata/pata_it821x.c
+++ b/drivers/ata/pata_it821x.c
@@ -875,29 +875,29 @@ static int it821x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
static const struct ata_port_info info_smart = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &it821x_smart_port_ops
};
static const struct ata_port_info info_passthru = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &it821x_passthru_port_ops
};
static const struct ata_port_info info_rdc = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &it821x_rdc_port_ops
};
static const struct ata_port_info info_rdc_11 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
/* No UDMA */
.port_ops = &it821x_rdc_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 29/73] pata_ixp4xx_cf: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (27 preceding siblings ...)
2009-03-14 19:15 ` [PATCH 28/73] pata_it821x: " Erik Inge Bolsø
@ 2009-03-14 19:15 ` Erik Inge Bolsø
2009-03-14 19:16 ` [PATCH 30/73] pata_jmicron: " Erik Inge Bolsø
` (43 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:15 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_ixp4xx_cf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c
index b173c15..19fdecf 100644
--- a/drivers/ata/pata_ixp4xx_cf.c
+++ b/drivers/ata/pata_ixp4xx_cf.c
@@ -176,7 +176,7 @@ static __devinit int ixp4xx_pata_probe(struct platform_device *pdev)
ap = host->ports[0];
ap->ops = &ixp4xx_port_ops;
- ap->pio_mask = 0x1f; /* PIO4 */
+ ap->pio_mask = ATA_PIO4;
ap->flags |= ATA_FLAG_MMIO | ATA_FLAG_NO_LEGACY | ATA_FLAG_NO_ATAPI;
ixp4xx_setup_port(ap, data, cs0->start, cs1->start);
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 30/73] pata_jmicron: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (28 preceding siblings ...)
2009-03-14 19:15 ` [PATCH 29/73] pata_ixp4xx_cf: " Erik Inge Bolsø
@ 2009-03-14 19:16 ` Erik Inge Bolsø
2009-03-14 19:16 ` [PATCH 31/73] pata_legacy: " Erik Inge Bolsø
` (42 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:16 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_jmicron.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_jmicron.c b/drivers/ata/pata_jmicron.c
index 38cf1ab..3a1474a 100644
--- a/drivers/ata/pata_jmicron.c
+++ b/drivers/ata/pata_jmicron.c
@@ -136,8 +136,8 @@ static int jmicron_init_one (struct pci_dev *pdev, const struct pci_device_id *i
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &jmicron_ops,
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 31/73] pata_legacy: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (29 preceding siblings ...)
2009-03-14 19:16 ` [PATCH 30/73] pata_jmicron: " Erik Inge Bolsø
@ 2009-03-14 19:16 ` Erik Inge Bolsø
2009-03-14 19:16 ` [PATCH 32/73] pata_marvell: " Erik Inge Bolsø
` (41 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:16 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_legacy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c
index e3bc1b4..3f830f0 100644
--- a/drivers/ata/pata_legacy.c
+++ b/drivers/ata/pata_legacy.c
@@ -129,7 +129,7 @@ static int qdi; /* Set to probe QDI controllers */
static int winbond; /* Set to probe Winbond controllers,
give I/O port if non standard */
static int autospeed; /* Chip present which snoops speed changes */
-static int pio_mask = 0x1F; /* PIO range for autospeed devices */
+static int pio_mask = ATA_PIO4; /* PIO range for autospeed devices */
static int iordy_mask = 0xFFFFFFFF; /* Use iordy if available */
/**
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 32/73] pata_marvell: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (30 preceding siblings ...)
2009-03-14 19:16 ` [PATCH 31/73] pata_legacy: " Erik Inge Bolsø
@ 2009-03-14 19:16 ` Erik Inge Bolsø
2009-03-14 19:17 ` [PATCH 33/73] pata_mpc52xx: " Erik Inge Bolsø
` (40 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:16 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_marvell.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ata/pata_marvell.c b/drivers/ata/pata_marvell.c
index 76e399b..2096fb7 100644
--- a/drivers/ata/pata_marvell.c
+++ b/drivers/ata/pata_marvell.c
@@ -126,8 +126,8 @@ static int marvell_init_one (struct pci_dev *pdev, const struct pci_device_id *i
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &marvell_ops,
@@ -136,8 +136,8 @@ static int marvell_init_one (struct pci_dev *pdev, const struct pci_device_id *i
/* Slave possible as its magically mapped not real */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &marvell_ops,
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 33/73] pata_mpc52xx: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (31 preceding siblings ...)
2009-03-14 19:16 ` [PATCH 32/73] pata_marvell: " Erik Inge Bolsø
@ 2009-03-14 19:17 ` Erik Inge Bolsø
2009-03-14 19:17 ` [PATCH 34/73] pata_mpiix: " Erik Inge Bolsø
` (39 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:17 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_mpc52xx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c
index 50ae6d1..68d27bc 100644
--- a/drivers/ata/pata_mpc52xx.c
+++ b/drivers/ata/pata_mpc52xx.c
@@ -737,10 +737,10 @@ mpc52xx_ata_probe(struct of_device *op, const struct of_device_id *match)
*/
prop = of_get_property(op->node, "mwdma-mode", &proplen);
if ((prop) && (proplen >= 4))
- mwdma_mask = 0x7 & ((1 << (*prop + 1)) - 1);
+ mwdma_mask = ATA_MWDMA2 & ((1 << (*prop + 1)) - 1);
prop = of_get_property(op->node, "udma-mode", &proplen);
if ((prop) && (proplen >= 4))
- udma_mask = 0x7 & ((1 << (*prop + 1)) - 1);
+ udma_mask = ATA_UDMA2 & ((1 << (*prop + 1)) - 1);
ata_irq = irq_of_parse_and_map(op->node, 0);
if (ata_irq == NO_IRQ) {
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 34/73] pata_mpiix: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (32 preceding siblings ...)
2009-03-14 19:17 ` [PATCH 33/73] pata_mpc52xx: " Erik Inge Bolsø
@ 2009-03-14 19:17 ` Erik Inge Bolsø
2009-03-14 19:17 ` [PATCH 35/73] pata_netcell: " Erik Inge Bolsø
` (38 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:17 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_mpiix.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_mpiix.c b/drivers/ata/pata_mpiix.c
index aa576ca..b21f002 100644
--- a/drivers/ata/pata_mpiix.c
+++ b/drivers/ata/pata_mpiix.c
@@ -200,7 +200,7 @@ static int mpiix_init_one(struct pci_dev *dev, const struct pci_device_id *id)
the MPIIX your box goes castors up */
ap->ops = &mpiix_port_ops;
- ap->pio_mask = 0x1F;
+ ap->pio_mask = ATA_PIO4;
ap->flags |= ATA_FLAG_SLAVE_POSS;
ap->ioaddr.cmd_addr = cmd_addr;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 35/73] pata_netcell: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (33 preceding siblings ...)
2009-03-14 19:17 ` [PATCH 34/73] pata_mpiix: " Erik Inge Bolsø
@ 2009-03-14 19:17 ` Erik Inge Bolsø
2009-03-14 19:17 ` [PATCH 36/73] pata_ninja32: " Erik Inge Bolsø
` (37 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:17 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_netcell.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_netcell.c b/drivers/ata/pata_netcell.c
index 9dc05e1..bdb2369 100644
--- a/drivers/ata/pata_netcell.c
+++ b/drivers/ata/pata_netcell.c
@@ -51,8 +51,8 @@ static int netcell_init_one (struct pci_dev *pdev, const struct pci_device_id *e
.flags = ATA_FLAG_SLAVE_POSS,
/* Actually we don't really care about these as the
firmware deals with it */
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5, /* UDMA 133 */
.port_ops = &netcell_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 36/73] pata_ninja32: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (34 preceding siblings ...)
2009-03-14 19:17 ` [PATCH 35/73] pata_netcell: " Erik Inge Bolsø
@ 2009-03-14 19:17 ` Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 37/73] pata_ns87410: " Erik Inge Bolsø
` (36 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:17 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_ninja32.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_ninja32.c b/drivers/ata/pata_ninja32.c
index 4dd9a3b..0fb6b1b 100644
--- a/drivers/ata/pata_ninja32.c
+++ b/drivers/ata/pata_ninja32.c
@@ -136,7 +136,7 @@ static int ninja32_init_one(struct pci_dev *dev, const struct pci_device_id *id)
if (!base)
return -ENOMEM;
ap->ops = &ninja32_port_ops;
- ap->pio_mask = 0x1F;
+ ap->pio_mask = ATA_PIO4;
ap->flags |= ATA_FLAG_SLAVE_POSS;
ap->ioaddr.cmd_addr = base + 0x10;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 37/73] pata_ns87410: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (35 preceding siblings ...)
2009-03-14 19:17 ` [PATCH 36/73] pata_ninja32: " Erik Inge Bolsø
@ 2009-03-14 19:18 ` Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 38/73] pata_ns87415: " Erik Inge Bolsø
` (35 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:18 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_ns87410.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_ns87410.c b/drivers/ata/pata_ns87410.c
index 40d411c..ca53fac 100644
--- a/drivers/ata/pata_ns87410.c
+++ b/drivers/ata/pata_ns87410.c
@@ -144,7 +144,7 @@ static int ns87410_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x0F,
+ .pio_mask = ATA_PIO3,
.port_ops = &ns87410_port_ops
};
const struct ata_port_info *ppi[] = { &info, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 38/73] pata_ns87415: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (36 preceding siblings ...)
2009-03-14 19:18 ` [PATCH 37/73] pata_ns87410: " Erik Inge Bolsø
@ 2009-03-14 19:18 ` Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 39/73] pata_oldpiix: " Erik Inge Bolsø
` (34 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:18 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_ns87415.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ata/pata_ns87415.c b/drivers/ata/pata_ns87415.c
index 89bf5f8..773b159 100644
--- a/drivers/ata/pata_ns87415.c
+++ b/drivers/ata/pata_ns87415.c
@@ -346,8 +346,8 @@ static int ns87415_init_one (struct pci_dev *pdev, const struct pci_device_id *e
static int printed_version;
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &ns87415_pata_ops,
};
const struct ata_port_info *ppi[] = { &info, NULL };
@@ -355,8 +355,8 @@ static int ns87415_init_one (struct pci_dev *pdev, const struct pci_device_id *e
#if defined(CONFIG_SUPERIO)
static const struct ata_port_info info87560 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &ns87560_pata_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 39/73] pata_oldpiix: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (37 preceding siblings ...)
2009-03-14 19:18 ` [PATCH 38/73] pata_ns87415: " Erik Inge Bolsø
@ 2009-03-14 19:18 ` Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 40/73] pata_opti: " Erik Inge Bolsø
` (33 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:18 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_oldpiix.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_oldpiix.c b/drivers/ata/pata_oldpiix.c
index 2c1a91c..84ac503 100644
--- a/drivers/ata/pata_oldpiix.c
+++ b/drivers/ata/pata_oldpiix.c
@@ -238,8 +238,8 @@ static int oldpiix_init_one (struct pci_dev *pdev, const struct pci_device_id *e
static int printed_version;
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma1-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &oldpiix_pata_ops,
};
const struct ata_port_info *ppi[] = { &info, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 40/73] pata_opti: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (38 preceding siblings ...)
2009-03-14 19:18 ` [PATCH 39/73] pata_oldpiix: " Erik Inge Bolsø
@ 2009-03-14 19:18 ` Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 41/73] pata_optidma: " Erik Inge Bolsø
` (32 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:18 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_opti.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_opti.c b/drivers/ata/pata_opti.c
index e4fa4d5..99eddda 100644
--- a/drivers/ata/pata_opti.c
+++ b/drivers/ata/pata_opti.c
@@ -163,7 +163,7 @@ static int opti_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
+ .pio_mask = ATA_PIO4,
.port_ops = &opti_port_ops
};
const struct ata_port_info *ppi[] = { &info, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 41/73] pata_optidma: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (39 preceding siblings ...)
2009-03-14 19:18 ` [PATCH 40/73] pata_opti: " Erik Inge Bolsø
@ 2009-03-14 19:18 ` Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 42/73] pata_pcmcia: " Erik Inge Bolsø
` (31 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:18 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_optidma.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/ata/pata_optidma.c b/drivers/ata/pata_optidma.c
index 93bb6e9..86885a4 100644
--- a/drivers/ata/pata_optidma.c
+++ b/drivers/ata/pata_optidma.c
@@ -399,15 +399,15 @@ static int optidma_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static const struct ata_port_info info_82c700 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &optidma_port_ops
};
static const struct ata_port_info info_82c700_udma = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA2,
.port_ops = &optiplus_port_ops
};
const struct ata_port_info *ppi[] = { &info_82c700, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 42/73] pata_pcmcia: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (40 preceding siblings ...)
2009-03-14 19:18 ` [PATCH 41/73] pata_optidma: " Erik Inge Bolsø
@ 2009-03-14 19:19 ` Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 43/73] pata_pdc2027x: " Erik Inge Bolsø
` (30 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:19 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_pcmcia.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c
index 64b2e22..a5cbcc2 100644
--- a/drivers/ata/pata_pcmcia.c
+++ b/drivers/ata/pata_pcmcia.c
@@ -299,7 +299,7 @@ static int pcmcia_init_one(struct pcmcia_device *pdev)
ap = host->ports[p];
ap->ops = ops;
- ap->pio_mask = 1; /* ISA so PIO 0 cycles */
+ ap->pio_mask = ATA_PIO0; /* ISA so PIO 0 cycles */
ap->flags |= ATA_FLAG_SLAVE_POSS;
ap->ioaddr.cmd_addr = io_addr + 0x10 * p;
ap->ioaddr.altstatus_addr = ctl_addr + 0x10 * p;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 43/73] pata_pdc2027x: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (41 preceding siblings ...)
2009-03-14 19:19 ` [PATCH 42/73] pata_pcmcia: " Erik Inge Bolsø
@ 2009-03-14 19:19 ` Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 44/73] pata_pdc202xx_old: " Erik Inge Bolsø
` (29 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:19 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_pdc2027x.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c
index e94efcc..ca5cad0 100644
--- a/drivers/ata/pata_pdc2027x.c
+++ b/drivers/ata/pata_pdc2027x.c
@@ -152,18 +152,18 @@ static struct ata_port_info pdc2027x_port_info[] = {
{
.flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_SLAVE_POSS |
ATA_FLAG_MMIO,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
- .udma_mask = ATA_UDMA5, /* udma0-5 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &pdc2027x_pata100_ops,
},
/* PDC_UDMA_133 */
{
.flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_SLAVE_POSS |
ATA_FLAG_MMIO,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
- .udma_mask = ATA_UDMA6, /* udma0-6 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA6,
.port_ops = &pdc2027x_pata133_ops,
},
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 44/73] pata_pdc202xx_old: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (42 preceding siblings ...)
2009-03-14 19:19 ` [PATCH 43/73] pata_pdc2027x: " Erik Inge Bolsø
@ 2009-03-14 19:19 ` Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 45/73] pata_qdi: " Erik Inge Bolsø
` (28 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:19 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_pdc202xx_old.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c
index 799a6a0..5fedb3d 100644
--- a/drivers/ata/pata_pdc202xx_old.c
+++ b/drivers/ata/pata_pdc202xx_old.c
@@ -291,22 +291,22 @@ static int pdc202xx_init_one(struct pci_dev *dev, const struct pci_device_id *id
static const struct ata_port_info info[3] = {
{
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA2,
.port_ops = &pdc2024x_port_ops
},
{
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &pdc2026x_port_ops
},
{
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &pdc2026x_port_ops
}
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 45/73] pata_qdi: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (43 preceding siblings ...)
2009-03-14 19:19 ` [PATCH 44/73] pata_pdc202xx_old: " Erik Inge Bolsø
@ 2009-03-14 19:19 ` Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 46/73] pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY Erik Inge Bolsø
` (27 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:19 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_qdi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c
index f1b26f7..45879dc 100644
--- a/drivers/ata/pata_qdi.c
+++ b/drivers/ata/pata_qdi.c
@@ -212,11 +212,11 @@ static __init int qdi_init_one(unsigned long port, int type, unsigned long io, i
if (type == 6580) {
ap->ops = &qdi6580_port_ops;
- ap->pio_mask = 0x1F;
+ ap->pio_mask = ATA_PIO4;
ap->flags |= ATA_FLAG_SLAVE_POSS;
} else {
ap->ops = &qdi6500_port_ops;
- ap->pio_mask = 0x07; /* Actually PIO3 !IORDY is possible */
+ ap->pio_mask = ATA_PIO2; /* Actually PIO3 !IORDY is possible */
ap->flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_NO_IORDY;
}
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 46/73] pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (44 preceding siblings ...)
2009-03-14 19:19 ` [PATCH 45/73] pata_qdi: " Erik Inge Bolsø
@ 2009-03-14 19:19 ` Erik Inge Bolsø
2009-03-14 19:35 ` Jeff Garzik
2009-03-14 19:44 ` Alan Cox
2009-03-14 19:19 ` [PATCH 47/73] pata_rb532_cf: use ata.h mode mask defines Erik Inge Bolsø
` (26 subsequent siblings)
72 siblings, 2 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:19 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_radisys.c | 6 +++---
include/linux/ata.h | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_radisys.c b/drivers/ata/pata_radisys.c
index 695d44a..1956d5c 100644
--- a/drivers/ata/pata_radisys.c
+++ b/drivers/ata/pata_radisys.c
@@ -216,9 +216,9 @@ static int radisys_init_one (struct pci_dev *pdev, const struct pci_device_id *e
static int printed_version;
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma1-2 */
- .udma_mask = 0x14, /* UDMA33/66 only */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2, /* mwdma1-2 */
+ .udma_mask = ATA_UDMA24_ONLY,
.port_ops = &radisys_pata_ops,
};
const struct ata_port_info *ppi[] = { &info, NULL };
diff --git a/include/linux/ata.h b/include/linux/ata.h
index 386eeac..e06d4c1 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -133,6 +133,8 @@ enum {
ATA_UDMA7 = ATA_UDMA6 | (1 << 7),
/* ATA_UDMA7 is just for completeness... doesn't exist (yet?). */
+ ATA_UDMA24_ONLY = (1 << 2) | (1 << 4),
+
ATA_UDMA_MASK_40C = ATA_UDMA2, /* udma0-2 */
/* DMA-related */
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 47/73] pata_rb532_cf: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (45 preceding siblings ...)
2009-03-14 19:19 ` [PATCH 46/73] pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY Erik Inge Bolsø
@ 2009-03-14 19:19 ` Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 48/73] pata_rz1000: " Erik Inge Bolsø
` (25 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:19 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_rb532_cf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c
index ebfcda2..8acb5db 100644
--- a/drivers/ata/pata_rb532_cf.c
+++ b/drivers/ata/pata_rb532_cf.c
@@ -145,7 +145,7 @@ static void rb532_pata_setup_ports(struct ata_host *ah)
ap = ah->ports[0];
ap->ops = &rb532_pata_port_ops;
- ap->pio_mask = 0x1f; /* PIO4 */
+ ap->pio_mask = ATA_PIO4;
ap->flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO;
ap->ioaddr.cmd_addr = info->iobase + RB500_CF_REG_BASE;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 48/73] pata_rz1000: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (46 preceding siblings ...)
2009-03-14 19:19 ` [PATCH 47/73] pata_rb532_cf: use ata.h mode mask defines Erik Inge Bolsø
@ 2009-03-14 19:20 ` Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 49/73] pata_sc1200: " Erik Inge Bolsø
` (24 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:20 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_rz1000.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c
index 46d6bc1..0c574c0 100644
--- a/drivers/ata/pata_rz1000.c
+++ b/drivers/ata/pata_rz1000.c
@@ -88,7 +88,7 @@ static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *en
static int printed_version;
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
+ .pio_mask = ATA_PIO4,
.port_ops = &rz1000_port_ops
};
const struct ata_port_info *ppi[] = { &info, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 49/73] pata_sc1200: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (47 preceding siblings ...)
2009-03-14 19:20 ` [PATCH 48/73] pata_rz1000: " Erik Inge Bolsø
@ 2009-03-14 19:20 ` Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 50/73] pata_scc: " Erik Inge Bolsø
` (23 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:20 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_sc1200.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_sc1200.c b/drivers/ata/pata_sc1200.c
index 9a4bdca..36a0c35 100644
--- a/drivers/ata/pata_sc1200.c
+++ b/drivers/ata/pata_sc1200.c
@@ -205,9 +205,9 @@ static int sc1200_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA2,
.port_ops = &sc1200_port_ops
};
/* Can't enable port 2 yet, see top comments */
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 50/73] pata_scc: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (48 preceding siblings ...)
2009-03-14 19:20 ` [PATCH 49/73] pata_sc1200: " Erik Inge Bolsø
@ 2009-03-14 19:20 ` Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 51/73] pata_sch: remove superfluous mode mask comments Erik Inge Bolsø
` (22 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:20 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_scc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c
index d447f1c..4257d6b 100644
--- a/drivers/ata/pata_scc.c
+++ b/drivers/ata/pata_scc.c
@@ -1001,8 +1001,8 @@ static struct ata_port_operations scc_pata_ops = {
static struct ata_port_info scc_port_info[] = {
{
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_MMIO | ATA_FLAG_NO_LEGACY,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x00,
+ .pio_mask = ATA_PIO4,
+ /* No MWDMA */
.udma_mask = ATA_UDMA6,
.port_ops = &scc_pata_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 51/73] pata_sch: remove superfluous mode mask comments
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (49 preceding siblings ...)
2009-03-14 19:20 ` [PATCH 50/73] pata_scc: " Erik Inge Bolsø
@ 2009-03-14 19:20 ` Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 52/73] pata_serverworks: use ata.h mode mask defines Erik Inge Bolsø
` (21 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:20 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_sch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_sch.c b/drivers/ata/pata_sch.c
index 6aeeeeb..99cceb4 100644
--- a/drivers/ata/pata_sch.c
+++ b/drivers/ata/pata_sch.c
@@ -84,9 +84,9 @@ static struct ata_port_operations sch_pata_ops = {
static struct ata_port_info sch_port_info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = ATA_PIO4, /* pio0-4 */
- .mwdma_mask = ATA_MWDMA2, /* mwdma0-2 */
- .udma_mask = ATA_UDMA5, /* udma0-5 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &sch_pata_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 52/73] pata_serverworks: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (50 preceding siblings ...)
2009-03-14 19:20 ` [PATCH 51/73] pata_sch: remove superfluous mode mask comments Erik Inge Bolsø
@ 2009-03-14 19:20 ` Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 53/73] pata_sil680: " Erik Inge Bolsø
` (20 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:20 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_serverworks.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/ata/pata_serverworks.c b/drivers/ata/pata_serverworks.c
index 8d2fd9d..beaed12 100644
--- a/drivers/ata/pata_serverworks.c
+++ b/drivers/ata/pata_serverworks.c
@@ -398,26 +398,26 @@ static int serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id
static const struct ata_port_info info[4] = {
{ /* OSB4 */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA2,
.port_ops = &serverworks_osb4_port_ops
}, { /* OSB4 no UDMA */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
- .udma_mask = 0x00,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ /* No UDMA */
.port_ops = &serverworks_osb4_port_ops
}, { /* CSB5 */
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &serverworks_csb_port_ops
}, { /* CSB5 - later revisions*/
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &serverworks_csb_port_ops
}
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 53/73] pata_sil680: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (51 preceding siblings ...)
2009-03-14 19:20 ` [PATCH 52/73] pata_serverworks: use ata.h mode mask defines Erik Inge Bolsø
@ 2009-03-14 19:20 ` Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 54/73] pata_sis: " Erik Inge Bolsø
` (19 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:20 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_sil680.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c
index 9e764e5..4cb649d 100644
--- a/drivers/ata/pata_sil680.c
+++ b/drivers/ata/pata_sil680.c
@@ -282,15 +282,15 @@ static int __devinit sil680_init_one(struct pci_dev *pdev,
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &sil680_port_ops
};
static const struct ata_port_info info_slow = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &sil680_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 54/73] pata_sis: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (52 preceding siblings ...)
2009-03-14 19:20 ` [PATCH 53/73] pata_sil680: " Erik Inge Bolsø
@ 2009-03-14 19:20 ` Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 55/73] pata_sl82c105: " Erik Inge Bolsø
` (18 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:20 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_sis.c | 32 +++++++++++++++++++-------------
1 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c
index 27ceb42..488e77b 100644
--- a/drivers/ata/pata_sis.c
+++ b/drivers/ata/pata_sis.c
@@ -552,51 +552,57 @@ static struct ata_port_operations sis_old_ops = {
static const struct ata_port_info sis_info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07,
- .udma_mask = 0,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ /* No UDMA */
.port_ops = &sis_old_ops,
};
static const struct ata_port_info sis_info33 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07,
- .udma_mask = ATA_UDMA2, /* UDMA 33 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA2,
.port_ops = &sis_old_ops,
};
static const struct ata_port_info sis_info66 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .udma_mask = ATA_UDMA4, /* UDMA 66 */
+ .pio_mask = ATA_PIO4,
+ /* No MWDMA */
+ .udma_mask = ATA_UDMA4,
.port_ops = &sis_66_ops,
};
static const struct ata_port_info sis_info100 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
+ /* No MWDMA */
.udma_mask = ATA_UDMA5,
.port_ops = &sis_100_ops,
};
static const struct ata_port_info sis_info100_early = {
.flags = ATA_FLAG_SLAVE_POSS,
+ .pio_mask = ATA_PIO4,
+ /* No MWDMA */
.udma_mask = ATA_UDMA5,
- .pio_mask = 0x1f, /* pio0-4 */
.port_ops = &sis_66_ops,
};
static const struct ata_port_info sis_info133 = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
+ /* No MWDMA */
.udma_mask = ATA_UDMA6,
.port_ops = &sis_133_ops,
};
const struct ata_port_info sis_info133_for_sata = {
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
+ /* No MWDMA */
.udma_mask = ATA_UDMA6,
.port_ops = &sis_133_for_sata_ops,
};
static const struct ata_port_info sis_info133_early = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
+ /* No MWDMA */
.udma_mask = ATA_UDMA6,
.port_ops = &sis_133_early_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 55/73] pata_sl82c105: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (53 preceding siblings ...)
2009-03-14 19:20 ` [PATCH 54/73] pata_sis: " Erik Inge Bolsø
@ 2009-03-14 19:21 ` Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 56/73] pata_triflex: " Erik Inge Bolsø
` (17 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:21 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_sl82c105.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_sl82c105.c b/drivers/ata/pata_sl82c105.c
index 1b0e7b6..29f733c 100644
--- a/drivers/ata/pata_sl82c105.c
+++ b/drivers/ata/pata_sl82c105.c
@@ -283,13 +283,13 @@ static int sl82c105_init_one(struct pci_dev *dev, const struct pci_device_id *id
{
static const struct ata_port_info info_dma = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &sl82c105_port_ops
};
static const struct ata_port_info info_early = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
+ .pio_mask = ATA_PIO4,
.port_ops = &sl82c105_port_ops
};
/* for now use only the first port */
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 56/73] pata_triflex: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (54 preceding siblings ...)
2009-03-14 19:21 ` [PATCH 55/73] pata_sl82c105: " Erik Inge Bolsø
@ 2009-03-14 19:21 ` Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 57/73] pata_via: " Erik Inge Bolsø
` (16 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:21 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_triflex.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/pata_triflex.c b/drivers/ata/pata_triflex.c
index ef95975..f1f13ff 100644
--- a/drivers/ata/pata_triflex.c
+++ b/drivers/ata/pata_triflex.c
@@ -191,8 +191,8 @@ static int triflex_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
static const struct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &triflex_port_ops
};
const struct ata_port_info *ppi[] = { &info, NULL };
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 57/73] pata_via: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (55 preceding siblings ...)
2009-03-14 19:21 ` [PATCH 56/73] pata_triflex: " Erik Inge Bolsø
@ 2009-03-14 19:21 ` Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 58/73] pata_winbond: " Erik Inge Bolsø
` (15 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:21 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_via.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c
index ba556d3..b08e6e0 100644
--- a/drivers/ata/pata_via.c
+++ b/drivers/ata/pata_via.c
@@ -422,46 +422,46 @@ static int via_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
/* Early VIA without UDMA support */
static const struct ata_port_info via_mwdma_info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &via_port_ops
};
/* Ditto with IRQ masking required */
static const struct ata_port_info via_mwdma_info_borked = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.port_ops = &via_port_ops_noirq,
};
/* VIA UDMA 33 devices (and borked 66) */
static const struct ata_port_info via_udma33_info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA2,
.port_ops = &via_port_ops
};
/* VIA UDMA 66 devices */
static const struct ata_port_info via_udma66_info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA4,
.port_ops = &via_port_ops
};
/* VIA UDMA 100 devices */
static const struct ata_port_info via_udma100_info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &via_port_ops
};
/* UDMA133 with bad AST (All current 133) */
static const struct ata_port_info via_udma133_info = {
.flags = ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6, /* FIXME: should check north bridge */
.port_ops = &via_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 58/73] pata_winbond: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (56 preceding siblings ...)
2009-03-14 19:21 ` [PATCH 57/73] pata_via: " Erik Inge Bolsø
@ 2009-03-14 19:21 ` Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 59/73] pdc_adma: use ata.h mode mask defines, add ATA_PIO4_ONLY Erik Inge Bolsø
` (14 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:21 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pata_winbond.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pata_winbond.c b/drivers/ata/pata_winbond.c
index 319e164..6d8619b 100644
--- a/drivers/ata/pata_winbond.c
+++ b/drivers/ata/pata_winbond.c
@@ -193,7 +193,7 @@ static __init int winbond_init_one(unsigned long port)
ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", cmd_port, ctl_port);
ap->ops = &winbond_port_ops;
- ap->pio_mask = 0x1F;
+ ap->pio_mask = ATA_PIO4;
ap->flags |= ATA_FLAG_SLAVE_POSS;
ap->ioaddr.cmd_addr = cmd_addr;
ap->ioaddr.altstatus_addr = ctl_addr;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 59/73] pdc_adma: use ata.h mode mask defines, add ATA_PIO4_ONLY
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (57 preceding siblings ...)
2009-03-14 19:21 ` [PATCH 58/73] pata_winbond: " Erik Inge Bolsø
@ 2009-03-14 19:21 ` Erik Inge Bolsø
2009-03-14 19:34 ` Jeff Garzik
2009-03-14 19:21 ` [PATCH 60/73] sata_fsl: use ata.h mode mask defines Erik Inge Bolsø
` (13 subsequent siblings)
72 siblings, 1 reply; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:21 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/pdc_adma.c | 2 +-
include/linux/ata.h | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c
index be53545..c509c20 100644
--- a/drivers/ata/pdc_adma.c
+++ b/drivers/ata/pdc_adma.c
@@ -166,7 +166,7 @@ static struct ata_port_info adma_port_info[] = {
.flags = ATA_FLAG_SLAVE_POSS |
ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO |
ATA_FLAG_PIO_POLLING,
- .pio_mask = 0x10, /* pio4 */
+ .pio_mask = ATA_PIO4_ONLY,
.udma_mask = ATA_UDMA4,
.port_ops = &adma_ata_ops,
},
diff --git a/include/linux/ata.h b/include/linux/ata.h
index e06d4c1..3901b00 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -108,6 +108,8 @@ enum {
ATA_PIO5 = ATA_PIO4 | (1 << 5),
ATA_PIO6 = ATA_PIO5 | (1 << 6),
+ ATA_PIO4_ONLY = (1 << 4),
+
ATA_SWDMA0 = (1 << 0),
ATA_SWDMA1 = ATA_SWDMA0 | (1 << 1),
ATA_SWDMA2 = ATA_SWDMA1 | (1 << 2),
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* Re: [PATCH 10/73] pata_at32: use ata.h mode mask defines
2009-03-14 19:12 ` [PATCH 10/73] pata_at32: " Erik Inge Bolsø
@ 2009-03-14 19:21 ` Jeff Garzik
0 siblings, 0 replies; 87+ messages in thread
From: Jeff Garzik @ 2009-03-14 19:21 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: linux-ide
Erik Inge Bolsø wrote:
> No functional changes in this patch.
>
> Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
> ---
> drivers/ata/pata_at32.c | 16 +++++++++-------
> 1 files changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c
> index ab61095..131b20c 100644
> --- a/drivers/ata/pata_at32.c
> +++ b/drivers/ata/pata_at32.c
> @@ -58,16 +58,18 @@
> * ATA PIO modes
> *
> * Name | Mb/s | Min cycle time | Mask
> - * --------+-------+----------------+--------
> - * Mode 0 | 3.3 | 600 ns | 0x01
> - * Mode 1 | 5.2 | 383 ns | 0x03
> - * Mode 2 | 8.3 | 240 ns | 0x07
> - * Mode 3 | 11.1 | 180 ns | 0x0f
> - * Mode 4 | 16.7 | 120 ns | 0x1f
> + * --------+-------+----------------+----------
> + * Mode 0 | 3.3 | 600 ns | ATA_PIO0
> + * Mode 1 | 5.2 | 383 ns | ATA_PIO1
> + * Mode 2 | 8.3 | 240 ns | ATA_PIO2
> + * Mode 3 | 11.1 | 180 ns | ATA_PIO3
> + * Mode 4 | 16.7 | 120 ns | ATA_PIO4
NAK, don't mess with the ASCII chart in the code comment
^ permalink raw reply [flat|nested] 87+ messages in thread
* [PATCH 60/73] sata_fsl: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (58 preceding siblings ...)
2009-03-14 19:21 ` [PATCH 59/73] pdc_adma: use ata.h mode mask defines, add ATA_PIO4_ONLY Erik Inge Bolsø
@ 2009-03-14 19:21 ` Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 61/73] sata_inic162x: " Erik Inge Bolsø
` (12 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:21 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_fsl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
index 55bc88c..c2e90e1 100644
--- a/drivers/ata/sata_fsl.c
+++ b/drivers/ata/sata_fsl.c
@@ -1279,8 +1279,8 @@ static struct ata_port_operations sata_fsl_ops = {
static const struct ata_port_info sata_fsl_port_info[] = {
{
.flags = SATA_FSL_HOST_FLAGS,
- .pio_mask = 0x1f, /* pio 0-4 */
- .udma_mask = 0x7f, /* udma 0-6 */
+ .pio_mask = ATA_PIO4,
+ .udma_mask = ATA_UDMA6,
.port_ops = &sata_fsl_ops,
},
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 61/73] sata_inic162x: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (59 preceding siblings ...)
2009-03-14 19:21 ` [PATCH 60/73] sata_fsl: use ata.h mode mask defines Erik Inge Bolsø
@ 2009-03-14 19:21 ` Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 62/73] sata_mv: " Erik Inge Bolsø
` (11 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:21 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_inic162x.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c
index fbbd87c..305a4f8 100644
--- a/drivers/ata/sata_inic162x.c
+++ b/drivers/ata/sata_inic162x.c
@@ -744,8 +744,8 @@ static struct ata_port_operations inic_port_ops = {
static struct ata_port_info inic_port_info = {
.flags = ATA_FLAG_SATA | ATA_FLAG_PIO_DMA,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &inic_port_ops
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 62/73] sata_mv: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (60 preceding siblings ...)
2009-03-14 19:21 ` [PATCH 61/73] sata_inic162x: " Erik Inge Bolsø
@ 2009-03-14 19:22 ` Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 63/73] sata_nv: " Erik Inge Bolsø
` (10 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:22 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_mv.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 7007edd..ab5c95c 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -604,19 +604,19 @@ static struct ata_port_operations mv_iie_ops = {
static const struct ata_port_info mv_port_info[] = {
{ /* chip_504x */
.flags = MV_COMMON_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &mv5_ops,
},
{ /* chip_508x */
.flags = MV_COMMON_FLAGS | MV_FLAG_DUAL_HC,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &mv5_ops,
},
{ /* chip_5080 */
.flags = MV_COMMON_FLAGS | MV_FLAG_DUAL_HC,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &mv5_ops,
},
@@ -624,7 +624,7 @@ static const struct ata_port_info mv_port_info[] = {
.flags = MV_COMMON_FLAGS | MV_6XXX_FLAGS |
ATA_FLAG_PMP | ATA_FLAG_ACPI_SATA |
ATA_FLAG_NCQ,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &mv6_ops,
},
@@ -632,25 +632,25 @@ static const struct ata_port_info mv_port_info[] = {
.flags = MV_COMMON_FLAGS | MV_6XXX_FLAGS |
ATA_FLAG_PMP | ATA_FLAG_ACPI_SATA |
ATA_FLAG_NCQ | MV_FLAG_DUAL_HC,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &mv6_ops,
},
{ /* chip_6042 */
.flags = MV_GENIIE_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &mv_iie_ops,
},
{ /* chip_7042 */
.flags = MV_GENIIE_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &mv_iie_ops,
},
{ /* chip_soc */
.flags = MV_GENIIE_FLAGS,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &mv_iie_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 63/73] sata_nv: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (61 preceding siblings ...)
2009-03-14 19:22 ` [PATCH 62/73] sata_mv: " Erik Inge Bolsø
@ 2009-03-14 19:22 ` Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 64/73] sata_promise: " Erik Inge Bolsø
` (9 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:22 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_nv.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c
index f65b537..2f523f8 100644
--- a/drivers/ata/sata_nv.c
+++ b/drivers/ata/sata_nv.c
@@ -57,9 +57,9 @@ enum {
NV_MMIO_BAR = 5,
NV_PORTS = 2,
- NV_PIO_MASK = 0x1f,
- NV_MWDMA_MASK = 0x07,
- NV_UDMA_MASK = 0x7f,
+ NV_PIO_MASK = ATA_PIO4,
+ NV_MWDMA_MASK = ATA_MWDMA2,
+ NV_UDMA_MASK = ATA_UDMA6,
NV_PORT0_SCR_REG_OFFSET = 0x00,
NV_PORT1_SCR_REG_OFFSET = 0x40,
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 64/73] sata_promise: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (62 preceding siblings ...)
2009-03-14 19:22 ` [PATCH 63/73] sata_nv: " Erik Inge Bolsø
@ 2009-03-14 19:22 ` Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 65/73] sata_qstor: " Erik Inge Bolsø
` (8 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:22 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_promise.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c
index ba9a257..3ad2b88 100644
--- a/drivers/ata/sata_promise.c
+++ b/drivers/ata/sata_promise.c
@@ -213,8 +213,8 @@ static const struct ata_port_info pdc_port_info[] = {
{
.flags = PDC_COMMON_FLAGS | ATA_FLAG_SATA |
PDC_FLAG_SATA_PATA,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &pdc_old_sata_ops,
},
@@ -222,8 +222,8 @@ static const struct ata_port_info pdc_port_info[] = {
[board_2037x_pata] =
{
.flags = PDC_COMMON_FLAGS | ATA_FLAG_SLAVE_POSS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &pdc_pata_ops,
},
@@ -232,8 +232,8 @@ static const struct ata_port_info pdc_port_info[] = {
{
.flags = PDC_COMMON_FLAGS | ATA_FLAG_SATA |
PDC_FLAG_4_PORTS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &pdc_old_sata_ops,
},
@@ -242,8 +242,8 @@ static const struct ata_port_info pdc_port_info[] = {
{
.flags = PDC_COMMON_FLAGS | ATA_FLAG_SLAVE_POSS |
PDC_FLAG_4_PORTS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &pdc_pata_ops,
},
@@ -252,8 +252,8 @@ static const struct ata_port_info pdc_port_info[] = {
{
.flags = PDC_COMMON_FLAGS | ATA_FLAG_SATA |
PDC_FLAG_GEN_II | PDC_FLAG_SATA_PATA,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &pdc_sata_ops,
},
@@ -262,8 +262,8 @@ static const struct ata_port_info pdc_port_info[] = {
{
.flags = PDC_COMMON_FLAGS | ATA_FLAG_SLAVE_POSS |
PDC_FLAG_GEN_II,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &pdc_pata_ops,
},
@@ -272,8 +272,8 @@ static const struct ata_port_info pdc_port_info[] = {
{
.flags = PDC_COMMON_FLAGS | ATA_FLAG_SATA |
PDC_FLAG_GEN_II | PDC_FLAG_4_PORTS,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &pdc_sata_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 65/73] sata_qstor: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (63 preceding siblings ...)
2009-03-14 19:22 ` [PATCH 64/73] sata_promise: " Erik Inge Bolsø
@ 2009-03-14 19:22 ` Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 66/73] sata_sil24: " Erik Inge Bolsø
` (7 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:22 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_qstor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/sata_qstor.c b/drivers/ata/sata_qstor.c
index a000c86..7112d89 100644
--- a/drivers/ata/sata_qstor.c
+++ b/drivers/ata/sata_qstor.c
@@ -160,7 +160,7 @@ static const struct ata_port_info qs_port_info[] = {
{
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_MMIO | ATA_FLAG_PIO_POLLING,
- .pio_mask = 0x10, /* pio4 */
+ .pio_mask = ATA_PIO4_ONLY,
.udma_mask = ATA_UDMA6,
.port_ops = &qs_ata_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 66/73] sata_sil24: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (64 preceding siblings ...)
2009-03-14 19:22 ` [PATCH 65/73] sata_qstor: " Erik Inge Bolsø
@ 2009-03-14 19:22 ` Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 67/73] sata_sil: " Erik Inge Bolsø
` (6 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:22 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_sil24.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c
index 2590c22..0d8990d 100644
--- a/drivers/ata/sata_sil24.c
+++ b/drivers/ata/sata_sil24.c
@@ -429,25 +429,25 @@ static const struct ata_port_info sil24_port_info[] = {
{
.flags = SIL24_COMMON_FLAGS | SIL24_NPORTS2FLAG(4) |
SIL24_FLAG_PCIX_IRQ_WOC,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
- .udma_mask = ATA_UDMA5, /* udma0-5 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &sil24_ops,
},
/* sil_3132 */
{
.flags = SIL24_COMMON_FLAGS | SIL24_NPORTS2FLAG(2),
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
- .udma_mask = ATA_UDMA5, /* udma0-5 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &sil24_ops,
},
/* sil_3131/sil_3531 */
{
.flags = SIL24_COMMON_FLAGS | SIL24_NPORTS2FLAG(1),
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
- .udma_mask = ATA_UDMA5, /* udma0-5 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
+ .udma_mask = ATA_UDMA5,
.port_ops = &sil24_ops,
},
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 67/73] sata_sil: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (65 preceding siblings ...)
2009-03-14 19:22 ` [PATCH 66/73] sata_sil24: " Erik Inge Bolsø
@ 2009-03-14 19:22 ` Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 68/73] sata_sis: " Erik Inge Bolsø
` (5 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:22 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_sil.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c
index d009160..e67ce8e 100644
--- a/drivers/ata/sata_sil.c
+++ b/drivers/ata/sata_sil.c
@@ -200,8 +200,8 @@ static const struct ata_port_info sil_port_info[] = {
/* sil_3112 */
{
.flags = SIL_DFL_PORT_FLAGS | SIL_FLAG_MOD15WRITE,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &sil_ops,
},
@@ -209,24 +209,24 @@ static const struct ata_port_info sil_port_info[] = {
{
.flags = SIL_DFL_PORT_FLAGS | SIL_FLAG_MOD15WRITE |
SIL_FLAG_NO_SATA_IRQ,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &sil_ops,
},
/* sil_3512 */
{
.flags = SIL_DFL_PORT_FLAGS | SIL_FLAG_RERR_ON_DMA_ACT,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &sil_ops,
},
/* sil_3114 */
{
.flags = SIL_DFL_PORT_FLAGS | SIL_FLAG_RERR_ON_DMA_ACT,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5,
.port_ops = &sil_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 68/73] sata_sis: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (66 preceding siblings ...)
2009-03-14 19:22 ` [PATCH 67/73] sata_sil: " Erik Inge Bolsø
@ 2009-03-14 19:22 ` Erik Inge Bolsø
2009-03-14 19:23 ` [PATCH 69/73] sata_svw: " Erik Inge Bolsø
` (4 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:22 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_sis.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/sata_sis.c b/drivers/ata/sata_sis.c
index 9c43b4e..8f98332 100644
--- a/drivers/ata/sata_sis.c
+++ b/drivers/ata/sata_sis.c
@@ -97,8 +97,8 @@ static struct ata_port_operations sis_ops = {
static const struct ata_port_info sis_port_info = {
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x7,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &sis_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* Re: [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks
2009-03-14 19:10 ` [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks Erik Inge Bolsø
@ 2009-03-14 19:23 ` Jeff Garzik
2009-03-14 19:30 ` Erik Inge Bolsø
2009-03-14 19:42 ` Alan Cox
0 siblings, 2 replies; 87+ messages in thread
From: Jeff Garzik @ 2009-03-14 19:23 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: linux-ide
Erik Inge Bolsø wrote:
> Will be used by next patch for pata_octeon_cf.
>
> Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
> ---
> include/linux/ata.h | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/ata.h b/include/linux/ata.h
> index 9a061ac..386eeac 100644
> --- a/include/linux/ata.h
> +++ b/include/linux/ata.h
> @@ -117,6 +117,8 @@ enum {
> ATA_MWDMA0 = (1 << 0),
> ATA_MWDMA1 = ATA_MWDMA0 | (1 << 1),
> ATA_MWDMA2 = ATA_MWDMA1 | (1 << 2),
> + ATA_MWDMA3 = ATA_MWDMA2 | (1 << 3),
> + ATA_MWDMA4 = ATA_MWDMA3 | (1 << 4),
This patch should be patch #1, and all the driver changes should be
rolled up into patch #2.
It is the same logical change, and therefore should not be broken up
into 73 tiny patches.
Jeff
^ permalink raw reply [flat|nested] 87+ messages in thread
* [PATCH 69/73] sata_svw: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (67 preceding siblings ...)
2009-03-14 19:22 ` [PATCH 68/73] sata_sis: " Erik Inge Bolsø
@ 2009-03-14 19:23 ` Erik Inge Bolsø
2009-03-14 19:23 ` [PATCH 70/73] sata_sx4: " Erik Inge Bolsø
` (3 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:23 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_svw.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/ata/sata_svw.c b/drivers/ata/sata_svw.c
index 609d147..7257f2d 100644
--- a/drivers/ata/sata_svw.c
+++ b/drivers/ata/sata_svw.c
@@ -361,8 +361,8 @@ static const struct ata_port_info k2_port_info[] = {
{
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_MMIO | K2_FLAG_NO_ATAPI_DMA,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &k2_sata_ops,
},
@@ -371,8 +371,8 @@ static const struct ata_port_info k2_port_info[] = {
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_MMIO | K2_FLAG_NO_ATAPI_DMA |
K2_FLAG_SATA_8_PORTS,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &k2_sata_ops,
},
@@ -380,8 +380,8 @@ static const struct ata_port_info k2_port_info[] = {
{
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_MMIO | K2_FLAG_BAR_POS_3,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &k2_sata_ops,
},
@@ -389,8 +389,8 @@ static const struct ata_port_info k2_port_info[] = {
{
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_MMIO,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &k2_sata_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 70/73] sata_sx4: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (68 preceding siblings ...)
2009-03-14 19:23 ` [PATCH 69/73] sata_svw: " Erik Inge Bolsø
@ 2009-03-14 19:23 ` Erik Inge Bolsø
2009-03-14 19:23 ` [PATCH 71/73] sata_uli: " Erik Inge Bolsø
` (2 subsequent siblings)
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:23 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_sx4.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/sata_sx4.c b/drivers/ata/sata_sx4.c
index ec04b8d..dce3dcc 100644
--- a/drivers/ata/sata_sx4.c
+++ b/drivers/ata/sata_sx4.c
@@ -265,8 +265,8 @@ static const struct ata_port_info pdc_port_info[] = {
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_SRST | ATA_FLAG_MMIO |
ATA_FLAG_NO_ATAPI | ATA_FLAG_PIO_POLLING,
- .pio_mask = 0x1f, /* pio0-4 */
- .mwdma_mask = 0x07, /* mwdma0-2 */
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &pdc_20621_ops,
},
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 71/73] sata_uli: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (69 preceding siblings ...)
2009-03-14 19:23 ` [PATCH 70/73] sata_sx4: " Erik Inge Bolsø
@ 2009-03-14 19:23 ` Erik Inge Bolsø
2009-03-14 19:24 ` [PATCH 72/73] sata_via: " Erik Inge Bolsø
2009-03-14 19:24 ` [PATCH 73/73] sata_vsc: " Erik Inge Bolsø
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:23 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_uli.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ata/sata_uli.c b/drivers/ata/sata_uli.c
index 019575b..e5bff47 100644
--- a/drivers/ata/sata_uli.c
+++ b/drivers/ata/sata_uli.c
@@ -89,7 +89,7 @@ static struct ata_port_operations uli_ops = {
static const struct ata_port_info uli_port_info = {
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_IGN_SIMPLEX,
- .pio_mask = 0x1f, /* pio0-4 */
+ .pio_mask = ATA_PIO4,
.udma_mask = ATA_UDMA6,
.port_ops = &uli_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 72/73] sata_via: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (70 preceding siblings ...)
2009-03-14 19:23 ` [PATCH 71/73] sata_uli: " Erik Inge Bolsø
@ 2009-03-14 19:24 ` Erik Inge Bolsø
2009-03-14 19:24 ` [PATCH 73/73] sata_vsc: " Erik Inge Bolsø
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:24 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_via.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c
index 5c62da9..98e8c50 100644
--- a/drivers/ata/sata_via.c
+++ b/drivers/ata/sata_via.c
@@ -146,24 +146,24 @@ static struct ata_port_operations vt8251_ops = {
static const struct ata_port_info vt6420_port_info = {
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &vt6420_sata_ops,
};
static struct ata_port_info vt6421_sport_info = {
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &vt6421_sata_ops,
};
static struct ata_port_info vt6421_pport_info = {
.flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_NO_LEGACY,
- .pio_mask = 0x1f,
- .mwdma_mask = 0,
+ .pio_mask = ATA_PIO4,
+ /* No MWDMA */
.udma_mask = ATA_UDMA6,
.port_ops = &vt6421_pata_ops,
};
@@ -171,8 +171,8 @@ static struct ata_port_info vt6421_pport_info = {
static struct ata_port_info vt8251_port_info = {
.flags = ATA_FLAG_SATA | ATA_FLAG_SLAVE_POSS |
ATA_FLAG_NO_LEGACY,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &vt8251_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* [PATCH 73/73] sata_vsc: use ata.h mode mask defines
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
` (71 preceding siblings ...)
2009-03-14 19:24 ` [PATCH 72/73] sata_via: " Erik Inge Bolsø
@ 2009-03-14 19:24 ` Erik Inge Bolsø
72 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:24 UTC (permalink / raw)
To: linux-ide
No functional changes in this patch.
Signed-off-by: Erik Inge Bolsø <knan-lkml@anduin.net>
---
drivers/ata/sata_vsc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/sata_vsc.c b/drivers/ata/sata_vsc.c
index c57cdff..ef211f3 100644
--- a/drivers/ata/sata_vsc.c
+++ b/drivers/ata/sata_vsc.c
@@ -345,8 +345,8 @@ static int __devinit vsc_sata_init_one(struct pci_dev *pdev,
static const struct ata_port_info pi = {
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
ATA_FLAG_MMIO,
- .pio_mask = 0x1f,
- .mwdma_mask = 0x07,
+ .pio_mask = ATA_PIO4,
+ .mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &vsc_sata_ops,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 87+ messages in thread
* Re: [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks
2009-03-14 19:23 ` Jeff Garzik
@ 2009-03-14 19:30 ` Erik Inge Bolsø
2009-03-14 19:42 ` Alan Cox
1 sibling, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:30 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-ide
On Sat, 14 Mar 2009, Jeff Garzik wrote:
> Erik Inge Bolsø wrote:
> > diff --git a/include/linux/ata.h b/include/linux/ata.h
> > index 9a061ac..386eeac 100644
> > --- a/include/linux/ata.h
> > +++ b/include/linux/ata.h
> > @@ -117,6 +117,8 @@ enum {
> > ATA_MWDMA0 = (1 << 0),
> > ATA_MWDMA1 = ATA_MWDMA0 | (1 << 1),
> > ATA_MWDMA2 = ATA_MWDMA1 | (1 << 2),
> > + ATA_MWDMA3 = ATA_MWDMA2 | (1 << 3),
> > + ATA_MWDMA4 = ATA_MWDMA3 | (1 << 4),
>
> This patch should be patch #1, and all the driver changes should be rolled up
> into patch #2.
>
> It is the same logical change, and therefore should not be broken up into 73
> tiny patches.
Fair enough. Will quash together and redo, didn't think you liked patches
touching dozens of files at once. Back in a bit.
--
-erik http://useofwords.blogspot.com/
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 59/73] pdc_adma: use ata.h mode mask defines, add ATA_PIO4_ONLY
2009-03-14 19:21 ` [PATCH 59/73] pdc_adma: use ata.h mode mask defines, add ATA_PIO4_ONLY Erik Inge Bolsø
@ 2009-03-14 19:34 ` Jeff Garzik
0 siblings, 0 replies; 87+ messages in thread
From: Jeff Garzik @ 2009-03-14 19:34 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: linux-ide
Erik Inge Bolsø wrote:
> diff --git a/include/linux/ata.h b/include/linux/ata.h
> index e06d4c1..3901b00 100644
> --- a/include/linux/ata.h
> +++ b/include/linux/ata.h
> @@ -108,6 +108,8 @@ enum {
> ATA_PIO5 = ATA_PIO4 | (1 << 5),
> ATA_PIO6 = ATA_PIO5 | (1 << 6),
>
> + ATA_PIO4_ONLY = (1 << 4),
> +
> ATA_SWDMA0 = (1 << 0),
> ATA_SWDMA1 = ATA_SWDMA0 | (1 << 1),
> ATA_SWDMA2 = ATA_SWDMA1 | (1 << 2),
This needs to be added to the patch #1 mentioned in my previous email
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 46/73] pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY
2009-03-14 19:19 ` [PATCH 46/73] pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY Erik Inge Bolsø
@ 2009-03-14 19:35 ` Jeff Garzik
2009-03-14 19:44 ` Alan Cox
1 sibling, 0 replies; 87+ messages in thread
From: Jeff Garzik @ 2009-03-14 19:35 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: linux-ide
Erik Inge Bolsø wrote:
> diff --git a/include/linux/ata.h b/include/linux/ata.h
> index 386eeac..e06d4c1 100644
> --- a/include/linux/ata.h
> +++ b/include/linux/ata.h
> @@ -133,6 +133,8 @@ enum {
> ATA_UDMA7 = ATA_UDMA6 | (1 << 7),
> /* ATA_UDMA7 is just for completeness... doesn't exist (yet?). */
>
> + ATA_UDMA24_ONLY = (1 << 2) | (1 << 4),
> +
> ATA_UDMA_MASK_40C = ATA_UDMA2, /* udma0-2 */
>
> /* DMA-related */
ditto -- this bit goes into patch #1
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks
2009-03-14 19:23 ` Jeff Garzik
2009-03-14 19:30 ` Erik Inge Bolsø
@ 2009-03-14 19:42 ` Alan Cox
2009-03-14 19:56 ` Jeff Garzik
1 sibling, 1 reply; 87+ messages in thread
From: Alan Cox @ 2009-03-14 19:42 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Erik Inge Bolsø, linux-ide
> It is the same logical change, and therefore should not be broken up
> into 73 tiny patches.
I'd rather the functional changes ones were kept separated for bisection
purposes but agreed
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 46/73] pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY
2009-03-14 19:19 ` [PATCH 46/73] pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY Erik Inge Bolsø
2009-03-14 19:35 ` Jeff Garzik
@ 2009-03-14 19:44 ` Alan Cox
1 sibling, 0 replies; 87+ messages in thread
From: Alan Cox @ 2009-03-14 19:44 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: linux-ide
> + .mwdma_mask = ATA_MWDMA2, /* mwdma1-2 */
> + .udma_mask = ATA_UDMA24_ONLY,
Your suspicions are correct here btw - the device can only do MWDMA1 and
MWDMA2 (much like some PIIX devices)
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 20/73] pata_efar: use ata.h mode mask defines
2009-03-14 19:14 ` [PATCH 20/73] pata_efar: " Erik Inge Bolsø
@ 2009-03-14 19:45 ` Alan Cox
2009-03-14 19:48 ` Erik Inge Bolsø
0 siblings, 1 reply; 87+ messages in thread
From: Alan Cox @ 2009-03-14 19:45 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: linux-ide
On Sat, 14 Mar 2009 20:14:34 +0100 (CET)
Erik Inge Bolsø <knan-lkml@anduin.net> wrote:
> No functional changes in this patch.
> (Looks like it could use one, though.)
Yep - wrong comment. The EFAR is a sort of clone of the PIIX and I copied
the comment while EFAR don't appear to have copied the limitation
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 20/73] pata_efar: use ata.h mode mask defines
2009-03-14 19:45 ` Alan Cox
@ 2009-03-14 19:48 ` Erik Inge Bolsø
2009-03-14 20:40 ` Sergei Shtylyov
0 siblings, 1 reply; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 19:48 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-ide
On Sat, 14 Mar 2009, Alan Cox wrote:
> On Sat, 14 Mar 2009 20:14:34 +0100 (CET)
> Erik Inge Bolsø <knan-lkml@anduin.net> wrote:
>
> > No functional changes in this patch.
> > (Looks like it could use one, though.)
>
> Yep - wrong comment. The EFAR is a sort of clone of the PIIX and I copied
> the comment while EFAR don't appear to have copied the limitation
Most suspicious thing I noted here was 0x0F = UDMA3, though. You probably
meant UDMA4?
Will send bugfix patches after I redo the pure conversion in two patches,
like Jeff says.
--
-erik http://useofwords.blogspot.com/
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks
2009-03-14 19:42 ` Alan Cox
@ 2009-03-14 19:56 ` Jeff Garzik
2009-03-14 20:00 ` Erik Inge Bolsø
0 siblings, 1 reply; 87+ messages in thread
From: Jeff Garzik @ 2009-03-14 19:56 UTC (permalink / raw)
To: Alan Cox; +Cc: Erik Inge Bolsø, linux-ide
Alan Cox wrote:
>> It is the same logical change, and therefore should not be broken up
>> into 73 tiny patches.
>
> I'd rather the functional changes ones were kept separated for bisection
> purposes but agreed
Were there functional changes in this patchset?
If yes, I missed that. It looked like all no-functional-change
replacement to me.
Jeff
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks
2009-03-14 19:56 ` Jeff Garzik
@ 2009-03-14 20:00 ` Erik Inge Bolsø
0 siblings, 0 replies; 87+ messages in thread
From: Erik Inge Bolsø @ 2009-03-14 20:00 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Alan Cox, linux-ide
On Sat, 14 Mar 2009, Jeff Garzik wrote:
> Alan Cox wrote:
> > > It is the same logical change, and therefore should not be broken up into
> > > 73 tiny patches.
> >
> > I'd rather the functional changes ones were kept separated for bisection
> > purposes but agreed
>
> Were there functional changes in this patchset?
>
> If yes, I missed that. It looked like all no-functional-change replacement to
> me.
If there were, I've goofed. Where?
--
-erik http://useofwords.blogspot.com/
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 20/73] pata_efar: use ata.h mode mask defines
2009-03-14 19:48 ` Erik Inge Bolsø
@ 2009-03-14 20:40 ` Sergei Shtylyov
2009-03-14 22:10 ` Jeff Garzik
0 siblings, 1 reply; 87+ messages in thread
From: Sergei Shtylyov @ 2009-03-14 20:40 UTC (permalink / raw)
To: Erik Inge Bolsø; +Cc: Alan Cox, linux-ide
Hello.
Erik Inge Bolsø wrote:
>>> No functional changes in this patch.
>>> (Looks like it could use one, though.)
>>>
>> Yep - wrong comment. The EFAR is a sort of clone of the PIIX and I copied
>> the comment while EFAR don't appear to have copied the limitation
>>
>
> Most suspicious thing I noted here was 0x0F = UDMA3, though. You probably
> meant UDMA4?
>
> Will send bugfix patches after I redo the pure conversion in two patches,
> like Jeff says.
>
It makes more sense to put the fixes *before* the cleanups.
MBR, Sergei
^ permalink raw reply [flat|nested] 87+ messages in thread
* Re: [PATCH 20/73] pata_efar: use ata.h mode mask defines
2009-03-14 20:40 ` Sergei Shtylyov
@ 2009-03-14 22:10 ` Jeff Garzik
0 siblings, 0 replies; 87+ messages in thread
From: Jeff Garzik @ 2009-03-14 22:10 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: Erik Inge Bolsø, Alan Cox, linux-ide
Sergei Shtylyov wrote:
> Hello.
>
> Erik Inge Bolsø wrote:
>
>>>> No functional changes in this patch.
>>>> (Looks like it could use one, though.)
>>>>
>>> Yep - wrong comment. The EFAR is a sort of clone of the PIIX and I
>>> copied
>>> the comment while EFAR don't appear to have copied the limitation
>>>
>>
>> Most suspicious thing I noted here was 0x0F = UDMA3, though. You
>> probably meant UDMA4?
>>
>> Will send bugfix patches after I redo the pure conversion in two
>> patches, like Jeff says.
>>
>
> It makes more sense to put the fixes *before* the cleanups.
Quite true...
Jeff
^ permalink raw reply [flat|nested] 87+ messages in thread
end of thread, other threads:[~2009-03-14 22:10 UTC | newest]
Thread overview: 87+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-14 18:35 [PATCH 00/73] libata: use ata.h mode mask defines everywhere Erik Inge Bolsø
2009-03-14 19:07 ` [PATCH 01/73] pata_acpi: use ata.h mode mask defines Erik Inge Bolsø
2009-03-14 19:10 ` [PATCH 02/73] [ide/ata]: add ATA_MWDMA3 and ATA_MWDMA4 masks Erik Inge Bolsø
2009-03-14 19:23 ` Jeff Garzik
2009-03-14 19:30 ` Erik Inge Bolsø
2009-03-14 19:42 ` Alan Cox
2009-03-14 19:56 ` Jeff Garzik
2009-03-14 20:00 ` Erik Inge Bolsø
2009-03-14 19:10 ` [PATCH 03/73] pata_octeon_cf: use ata.h mode mask defines Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 04/73] ahci: " Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 05/73] ata_generic: " Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 06/73] ata_piix: " Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 07/73] pata_ali: " Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 08/73] pata_amd: " Erik Inge Bolsø
2009-03-14 19:11 ` [PATCH 09/73] pata_artop: " Erik Inge Bolsø
2009-03-14 19:12 ` [PATCH 10/73] pata_at32: " Erik Inge Bolsø
2009-03-14 19:21 ` Jeff Garzik
2009-03-14 19:12 ` [PATCH 11/73] pata_atiixp: " Erik Inge Bolsø
2009-03-14 19:12 ` [PATCH 12/73] pata_bf54x: " Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 13/73] pata_cmd640: " Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 14/73] pata_cmd64x: " Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 15/73] pata_cs5520: " Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 16/73] pata_cs5530: " Erik Inge Bolsø
2009-03-14 19:13 ` [PATCH 17/73] pata_cs5535: " Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 18/73] pata_cs5536: " Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 19/73] pata_cypress: " Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 20/73] pata_efar: " Erik Inge Bolsø
2009-03-14 19:45 ` Alan Cox
2009-03-14 19:48 ` Erik Inge Bolsø
2009-03-14 20:40 ` Sergei Shtylyov
2009-03-14 22:10 ` Jeff Garzik
2009-03-14 19:14 ` [PATCH 21/73] pata_hpt366: " Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 22/73] pata_hpt37x: " Erik Inge Bolsø
2009-03-14 19:14 ` [PATCH 23/73] pata_hpt3x2n: " Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 24/73] pata_hpt3x3: " Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 25/73] pata_icside: " Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 26/73] pata_isapnp: " Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 27/73] pata_it8213: " Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 28/73] pata_it821x: " Erik Inge Bolsø
2009-03-14 19:15 ` [PATCH 29/73] pata_ixp4xx_cf: " Erik Inge Bolsø
2009-03-14 19:16 ` [PATCH 30/73] pata_jmicron: " Erik Inge Bolsø
2009-03-14 19:16 ` [PATCH 31/73] pata_legacy: " Erik Inge Bolsø
2009-03-14 19:16 ` [PATCH 32/73] pata_marvell: " Erik Inge Bolsø
2009-03-14 19:17 ` [PATCH 33/73] pata_mpc52xx: " Erik Inge Bolsø
2009-03-14 19:17 ` [PATCH 34/73] pata_mpiix: " Erik Inge Bolsø
2009-03-14 19:17 ` [PATCH 35/73] pata_netcell: " Erik Inge Bolsø
2009-03-14 19:17 ` [PATCH 36/73] pata_ninja32: " Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 37/73] pata_ns87410: " Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 38/73] pata_ns87415: " Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 39/73] pata_oldpiix: " Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 40/73] pata_opti: " Erik Inge Bolsø
2009-03-14 19:18 ` [PATCH 41/73] pata_optidma: " Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 42/73] pata_pcmcia: " Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 43/73] pata_pdc2027x: " Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 44/73] pata_pdc202xx_old: " Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 45/73] pata_qdi: " Erik Inge Bolsø
2009-03-14 19:19 ` [PATCH 46/73] pata_radisys: use ata.h mode mask defines, add ATA_UDMA24_ONLY Erik Inge Bolsø
2009-03-14 19:35 ` Jeff Garzik
2009-03-14 19:44 ` Alan Cox
2009-03-14 19:19 ` [PATCH 47/73] pata_rb532_cf: use ata.h mode mask defines Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 48/73] pata_rz1000: " Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 49/73] pata_sc1200: " Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 50/73] pata_scc: " Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 51/73] pata_sch: remove superfluous mode mask comments Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 52/73] pata_serverworks: use ata.h mode mask defines Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 53/73] pata_sil680: " Erik Inge Bolsø
2009-03-14 19:20 ` [PATCH 54/73] pata_sis: " Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 55/73] pata_sl82c105: " Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 56/73] pata_triflex: " Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 57/73] pata_via: " Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 58/73] pata_winbond: " Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 59/73] pdc_adma: use ata.h mode mask defines, add ATA_PIO4_ONLY Erik Inge Bolsø
2009-03-14 19:34 ` Jeff Garzik
2009-03-14 19:21 ` [PATCH 60/73] sata_fsl: use ata.h mode mask defines Erik Inge Bolsø
2009-03-14 19:21 ` [PATCH 61/73] sata_inic162x: " Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 62/73] sata_mv: " Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 63/73] sata_nv: " Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 64/73] sata_promise: " Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 65/73] sata_qstor: " Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 66/73] sata_sil24: " Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 67/73] sata_sil: " Erik Inge Bolsø
2009-03-14 19:22 ` [PATCH 68/73] sata_sis: " Erik Inge Bolsø
2009-03-14 19:23 ` [PATCH 69/73] sata_svw: " Erik Inge Bolsø
2009-03-14 19:23 ` [PATCH 70/73] sata_sx4: " Erik Inge Bolsø
2009-03-14 19:23 ` [PATCH 71/73] sata_uli: " Erik Inge Bolsø
2009-03-14 19:24 ` [PATCH 72/73] sata_via: " Erik Inge Bolsø
2009-03-14 19:24 ` [PATCH 73/73] sata_vsc: " Erik Inge Bolsø
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).