diff options
author | Tejun Heo <htejun@gmail.com> | 2006-04-02 05:51:52 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-02 10:09:19 -0400 |
commit | 198e0fed9e59461fc1890dd8b75ec72d14638873 (patch) | |
tree | c5c1d727117df989d6e6e8e2b79d065a669a7a27 /drivers | |
parent | 949b38af40a0b88b7267908b1554a45b97b5b737 (diff) |
[PATCH] libata: rename ATA_FLAG_PORT_DISABLED to ATA_FLAG_DISABLED
Rename ATA_FLAG_PORT_DISABLED to ATA_FLAG_DISABLED for consistency.
(ATA_FLAG_* are always about ports).
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 18 | ||||
-rw-r--r-- | drivers/scsi/libata-scsi.c | 2 | ||||
-rw-r--r-- | drivers/scsi/pdc_adma.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sata_mv.c | 2 | ||||
-rw-r--r-- | drivers/scsi/sata_nv.c | 2 | ||||
-rw-r--r-- | drivers/scsi/sata_promise.c | 2 | ||||
-rw-r--r-- | drivers/scsi/sata_qstor.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sata_sil24.c | 2 | ||||
-rw-r--r-- | drivers/scsi/sata_sx4.c | 2 | ||||
-rw-r--r-- | drivers/scsi/sata_vsc.c | 2 |
10 files changed, 20 insertions, 20 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index f39352a3ac11..53226b16355c 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -1045,7 +1045,7 @@ ata_exec_internal(struct ata_port *ap, struct ata_device *dev, | |||
1045 | * | 1045 | * |
1046 | * Kill the following code as soon as those drivers are fixed. | 1046 | * Kill the following code as soon as those drivers are fixed. |
1047 | */ | 1047 | */ |
1048 | if (ap->flags & ATA_FLAG_PORT_DISABLED) { | 1048 | if (ap->flags & ATA_FLAG_DISABLED) { |
1049 | err_mask |= AC_ERR_SYSTEM; | 1049 | err_mask |= AC_ERR_SYSTEM; |
1050 | ata_port_probe(ap); | 1050 | ata_port_probe(ap); |
1051 | } | 1051 | } |
@@ -1395,7 +1395,7 @@ static int ata_bus_probe(struct ata_port *ap) | |||
1395 | } else { | 1395 | } else { |
1396 | ap->ops->phy_reset(ap); | 1396 | ap->ops->phy_reset(ap); |
1397 | 1397 | ||
1398 | if (!(ap->flags & ATA_FLAG_PORT_DISABLED)) | 1398 | if (!(ap->flags & ATA_FLAG_DISABLED)) |
1399 | for (i = 0; i < ATA_MAX_DEVICES; i++) | 1399 | for (i = 0; i < ATA_MAX_DEVICES; i++) |
1400 | classes[i] = ap->device[i].class; | 1400 | classes[i] = ap->device[i].class; |
1401 | 1401 | ||
@@ -1491,7 +1491,7 @@ static int ata_bus_probe(struct ata_port *ap) | |||
1491 | 1491 | ||
1492 | void ata_port_probe(struct ata_port *ap) | 1492 | void ata_port_probe(struct ata_port *ap) |
1493 | { | 1493 | { |
1494 | ap->flags &= ~ATA_FLAG_PORT_DISABLED; | 1494 | ap->flags &= ~ATA_FLAG_DISABLED; |
1495 | } | 1495 | } |
1496 | 1496 | ||
1497 | /** | 1497 | /** |
@@ -1565,7 +1565,7 @@ void __sata_phy_reset(struct ata_port *ap) | |||
1565 | else | 1565 | else |
1566 | ata_port_disable(ap); | 1566 | ata_port_disable(ap); |
1567 | 1567 | ||
1568 | if (ap->flags & ATA_FLAG_PORT_DISABLED) | 1568 | if (ap->flags & ATA_FLAG_DISABLED) |
1569 | return; | 1569 | return; |
1570 | 1570 | ||
1571 | if (ata_busy_sleep(ap, ATA_TMOUT_BOOT_QUICK, ATA_TMOUT_BOOT)) { | 1571 | if (ata_busy_sleep(ap, ATA_TMOUT_BOOT_QUICK, ATA_TMOUT_BOOT)) { |
@@ -1590,7 +1590,7 @@ void __sata_phy_reset(struct ata_port *ap) | |||
1590 | void sata_phy_reset(struct ata_port *ap) | 1590 | void sata_phy_reset(struct ata_port *ap) |
1591 | { | 1591 | { |
1592 | __sata_phy_reset(ap); | 1592 | __sata_phy_reset(ap); |
1593 | if (ap->flags & ATA_FLAG_PORT_DISABLED) | 1593 | if (ap->flags & ATA_FLAG_DISABLED) |
1594 | return; | 1594 | return; |
1595 | ata_bus_reset(ap); | 1595 | ata_bus_reset(ap); |
1596 | } | 1596 | } |
@@ -1629,7 +1629,7 @@ void ata_port_disable(struct ata_port *ap) | |||
1629 | { | 1629 | { |
1630 | ap->device[0].class = ATA_DEV_NONE; | 1630 | ap->device[0].class = ATA_DEV_NONE; |
1631 | ap->device[1].class = ATA_DEV_NONE; | 1631 | ap->device[1].class = ATA_DEV_NONE; |
1632 | ap->flags |= ATA_FLAG_PORT_DISABLED; | 1632 | ap->flags |= ATA_FLAG_DISABLED; |
1633 | } | 1633 | } |
1634 | 1634 | ||
1635 | /** | 1635 | /** |
@@ -2251,7 +2251,7 @@ static unsigned int ata_bus_softreset(struct ata_port *ap, | |||
2251 | * Obtains host_set lock. | 2251 | * Obtains host_set lock. |
2252 | * | 2252 | * |
2253 | * SIDE EFFECTS: | 2253 | * SIDE EFFECTS: |
2254 | * Sets ATA_FLAG_PORT_DISABLED if bus reset fails. | 2254 | * Sets ATA_FLAG_DISABLED if bus reset fails. |
2255 | */ | 2255 | */ |
2256 | 2256 | ||
2257 | void ata_bus_reset(struct ata_port *ap) | 2257 | void ata_bus_reset(struct ata_port *ap) |
@@ -4468,7 +4468,7 @@ irqreturn_t ata_interrupt (int irq, void *dev_instance, struct pt_regs *regs) | |||
4468 | 4468 | ||
4469 | ap = host_set->ports[i]; | 4469 | ap = host_set->ports[i]; |
4470 | if (ap && | 4470 | if (ap && |
4471 | !(ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR))) { | 4471 | !(ap->flags & (ATA_FLAG_DISABLED | ATA_FLAG_NOINTR))) { |
4472 | struct ata_queued_cmd *qc; | 4472 | struct ata_queued_cmd *qc; |
4473 | 4473 | ||
4474 | qc = ata_qc_from_tag(ap, ap->active_tag); | 4474 | qc = ata_qc_from_tag(ap, ap->active_tag); |
@@ -4689,7 +4689,7 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host, | |||
4689 | host->unique_id = ata_unique_id++; | 4689 | host->unique_id = ata_unique_id++; |
4690 | host->max_cmd_len = 12; | 4690 | host->max_cmd_len = 12; |
4691 | 4691 | ||
4692 | ap->flags = ATA_FLAG_PORT_DISABLED; | 4692 | ap->flags = ATA_FLAG_DISABLED; |
4693 | ap->id = host->unique_id; | 4693 | ap->id = host->unique_id; |
4694 | ap->host = host; | 4694 | ap->host = host; |
4695 | ap->ctl = ATA_DEVCTL_OBS; | 4695 | ap->ctl = ATA_DEVCTL_OBS; |
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index bcbf71e9895b..096bdffbde11 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -2728,7 +2728,7 @@ void ata_scsi_scan_host(struct ata_port *ap) | |||
2728 | struct ata_device *dev; | 2728 | struct ata_device *dev; |
2729 | unsigned int i; | 2729 | unsigned int i; |
2730 | 2730 | ||
2731 | if (ap->flags & ATA_FLAG_PORT_DISABLED) | 2731 | if (ap->flags & ATA_FLAG_DISABLED) |
2732 | return; | 2732 | return; |
2733 | 2733 | ||
2734 | for (i = 0; i < ATA_MAX_DEVICES; i++) { | 2734 | for (i = 0; i < ATA_MAX_DEVICES; i++) { |
diff --git a/drivers/scsi/pdc_adma.c b/drivers/scsi/pdc_adma.c index 3c85c4b66e19..d64073dd028f 100644 --- a/drivers/scsi/pdc_adma.c +++ b/drivers/scsi/pdc_adma.c | |||
@@ -456,7 +456,7 @@ static inline unsigned int adma_intr_pkt(struct ata_host_set *host_set) | |||
456 | continue; | 456 | continue; |
457 | handled = 1; | 457 | handled = 1; |
458 | adma_enter_reg_mode(ap); | 458 | adma_enter_reg_mode(ap); |
459 | if (ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR)) | 459 | if (ap->flags & (ATA_FLAG_DISABLED | ATA_FLAG_NOINTR)) |
460 | continue; | 460 | continue; |
461 | pp = ap->private_data; | 461 | pp = ap->private_data; |
462 | if (!pp || pp->state != adma_state_pkt) | 462 | if (!pp || pp->state != adma_state_pkt) |
@@ -481,7 +481,7 @@ static inline unsigned int adma_intr_mmio(struct ata_host_set *host_set) | |||
481 | for (port_no = 0; port_no < host_set->n_ports; ++port_no) { | 481 | for (port_no = 0; port_no < host_set->n_ports; ++port_no) { |
482 | struct ata_port *ap; | 482 | struct ata_port *ap; |
483 | ap = host_set->ports[port_no]; | 483 | ap = host_set->ports[port_no]; |
484 | if (ap && (!(ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR)))) { | 484 | if (ap && (!(ap->flags & (ATA_FLAG_DISABLED | ATA_FLAG_NOINTR)))) { |
485 | struct ata_queued_cmd *qc; | 485 | struct ata_queued_cmd *qc; |
486 | struct adma_port_priv *pp = ap->private_data; | 486 | struct adma_port_priv *pp = ap->private_data; |
487 | if (!pp || pp->state != adma_state_mmio) | 487 | if (!pp || pp->state != adma_state_mmio) |
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c index 0f7d334aadcc..e9152f850003 100644 --- a/drivers/scsi/sata_mv.c +++ b/drivers/scsi/sata_mv.c | |||
@@ -1397,7 +1397,7 @@ static void mv_host_intr(struct ata_host_set *host_set, u32 relevant, | |||
1397 | } | 1397 | } |
1398 | } | 1398 | } |
1399 | 1399 | ||
1400 | if (ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR)) | 1400 | if (ap->flags & (ATA_FLAG_DISABLED | ATA_FLAG_NOINTR)) |
1401 | continue; | 1401 | continue; |
1402 | 1402 | ||
1403 | err_mask = ac_err_mask(ata_status); | 1403 | err_mask = ac_err_mask(ata_status); |
diff --git a/drivers/scsi/sata_nv.c b/drivers/scsi/sata_nv.c index f77bf183dfab..72721ac482d8 100644 --- a/drivers/scsi/sata_nv.c +++ b/drivers/scsi/sata_nv.c | |||
@@ -280,7 +280,7 @@ static irqreturn_t nv_interrupt (int irq, void *dev_instance, | |||
280 | 280 | ||
281 | ap = host_set->ports[i]; | 281 | ap = host_set->ports[i]; |
282 | if (ap && | 282 | if (ap && |
283 | !(ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR))) { | 283 | !(ap->flags & (ATA_FLAG_DISABLED | ATA_FLAG_NOINTR))) { |
284 | struct ata_queued_cmd *qc; | 284 | struct ata_queued_cmd *qc; |
285 | 285 | ||
286 | qc = ata_qc_from_tag(ap, ap->active_tag); | 286 | qc = ata_qc_from_tag(ap, ap->active_tag); |
diff --git a/drivers/scsi/sata_promise.c b/drivers/scsi/sata_promise.c index cc928c68a479..9557c7aa45e0 100644 --- a/drivers/scsi/sata_promise.c +++ b/drivers/scsi/sata_promise.c | |||
@@ -534,7 +534,7 @@ static irqreturn_t pdc_interrupt (int irq, void *dev_instance, struct pt_regs *r | |||
534 | ap = host_set->ports[i]; | 534 | ap = host_set->ports[i]; |
535 | tmp = mask & (1 << (i + 1)); | 535 | tmp = mask & (1 << (i + 1)); |
536 | if (tmp && ap && | 536 | if (tmp && ap && |
537 | !(ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR))) { | 537 | !(ap->flags & (ATA_FLAG_DISABLED | ATA_FLAG_NOINTR))) { |
538 | struct ata_queued_cmd *qc; | 538 | struct ata_queued_cmd *qc; |
539 | 539 | ||
540 | qc = ata_qc_from_tag(ap, ap->active_tag); | 540 | qc = ata_qc_from_tag(ap, ap->active_tag); |
diff --git a/drivers/scsi/sata_qstor.c b/drivers/scsi/sata_qstor.c index 9ffe1ef0d205..8ef042a09448 100644 --- a/drivers/scsi/sata_qstor.c +++ b/drivers/scsi/sata_qstor.c | |||
@@ -396,7 +396,7 @@ static inline unsigned int qs_intr_pkt(struct ata_host_set *host_set) | |||
396 | sff1, sff0, port_no, sHST, sDST); | 396 | sff1, sff0, port_no, sHST, sDST); |
397 | handled = 1; | 397 | handled = 1; |
398 | if (ap && !(ap->flags & | 398 | if (ap && !(ap->flags & |
399 | (ATA_FLAG_PORT_DISABLED|ATA_FLAG_NOINTR))) { | 399 | (ATA_FLAG_DISABLED|ATA_FLAG_NOINTR))) { |
400 | struct ata_queued_cmd *qc; | 400 | struct ata_queued_cmd *qc; |
401 | struct qs_port_priv *pp = ap->private_data; | 401 | struct qs_port_priv *pp = ap->private_data; |
402 | if (!pp || pp->state != qs_state_pkt) | 402 | if (!pp || pp->state != qs_state_pkt) |
@@ -429,7 +429,7 @@ static inline unsigned int qs_intr_mmio(struct ata_host_set *host_set) | |||
429 | struct ata_port *ap; | 429 | struct ata_port *ap; |
430 | ap = host_set->ports[port_no]; | 430 | ap = host_set->ports[port_no]; |
431 | if (ap && | 431 | if (ap && |
432 | !(ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR))) { | 432 | !(ap->flags & (ATA_FLAG_DISABLED | ATA_FLAG_NOINTR))) { |
433 | struct ata_queued_cmd *qc; | 433 | struct ata_queued_cmd *qc; |
434 | struct qs_port_priv *pp = ap->private_data; | 434 | struct qs_port_priv *pp = ap->private_data; |
435 | if (!pp || pp->state != qs_state_mmio) | 435 | if (!pp || pp->state != qs_state_mmio) |
diff --git a/drivers/scsi/sata_sil24.c b/drivers/scsi/sata_sil24.c index 068c98a4111b..c34f6dabf418 100644 --- a/drivers/scsi/sata_sil24.c +++ b/drivers/scsi/sata_sil24.c | |||
@@ -770,7 +770,7 @@ static irqreturn_t sil24_interrupt(int irq, void *dev_instance, struct pt_regs * | |||
770 | for (i = 0; i < host_set->n_ports; i++) | 770 | for (i = 0; i < host_set->n_ports; i++) |
771 | if (status & (1 << i)) { | 771 | if (status & (1 << i)) { |
772 | struct ata_port *ap = host_set->ports[i]; | 772 | struct ata_port *ap = host_set->ports[i]; |
773 | if (ap && !(ap->flags & ATA_FLAG_PORT_DISABLED)) { | 773 | if (ap && !(ap->flags & ATA_FLAG_DISABLED)) { |
774 | sil24_host_intr(host_set->ports[i]); | 774 | sil24_host_intr(host_set->ports[i]); |
775 | handled++; | 775 | handled++; |
776 | } else | 776 | } else |
diff --git a/drivers/scsi/sata_sx4.c b/drivers/scsi/sata_sx4.c index ae70f60c7c0d..3af28ef76fd9 100644 --- a/drivers/scsi/sata_sx4.c +++ b/drivers/scsi/sata_sx4.c | |||
@@ -834,7 +834,7 @@ static irqreturn_t pdc20621_interrupt (int irq, void *dev_instance, struct pt_re | |||
834 | tmp = mask & (1 << i); | 834 | tmp = mask & (1 << i); |
835 | VPRINTK("seq %u, port_no %u, ap %p, tmp %x\n", i, port_no, ap, tmp); | 835 | VPRINTK("seq %u, port_no %u, ap %p, tmp %x\n", i, port_no, ap, tmp); |
836 | if (tmp && ap && | 836 | if (tmp && ap && |
837 | !(ap->flags & (ATA_FLAG_PORT_DISABLED | ATA_FLAG_NOINTR))) { | 837 | !(ap->flags & (ATA_FLAG_DISABLED | ATA_FLAG_NOINTR))) { |
838 | struct ata_queued_cmd *qc; | 838 | struct ata_queued_cmd *qc; |
839 | 839 | ||
840 | qc = ata_qc_from_tag(ap, ap->active_tag); | 840 | qc = ata_qc_from_tag(ap, ap->active_tag); |
diff --git a/drivers/scsi/sata_vsc.c b/drivers/scsi/sata_vsc.c index 836bbbb26ff2..cecc1f76256b 100644 --- a/drivers/scsi/sata_vsc.c +++ b/drivers/scsi/sata_vsc.c | |||
@@ -222,7 +222,7 @@ static irqreturn_t vsc_sata_interrupt (int irq, void *dev_instance, | |||
222 | ap = host_set->ports[i]; | 222 | ap = host_set->ports[i]; |
223 | 223 | ||
224 | if (ap && !(ap->flags & | 224 | if (ap && !(ap->flags & |
225 | (ATA_FLAG_PORT_DISABLED|ATA_FLAG_NOINTR))) { | 225 | (ATA_FLAG_DISABLED|ATA_FLAG_NOINTR))) { |
226 | struct ata_queued_cmd *qc; | 226 | struct ata_queued_cmd *qc; |
227 | 227 | ||
228 | qc = ata_qc_from_tag(ap, ap->active_tag); | 228 | qc = ata_qc_from_tag(ap, ap->active_tag); |