libata: irq_on/off restructuring (take #2)
Subsystems (2)
cover libata: irq_on/off restructuring (take #2)
(Revised per Tejun's advice.)
For ATA, there are two levels of mechanism available to turn irq on/off.
- device level: nIEN bit in the control register. This masks INTRQ from the device.
- host adapter level: some controllers can mask out per-port irq from the host adapter.
Currently various parts of libata deal with irq on/off.
ex. tf_load() can alter the nIEN bit.
ex. irq_on() also alters the device level nIEN bit. ex. freeze()/thaw() deal with the host adapter irq mask.
It seems these irq_on/off codes could be better structured. Patches against the libata-dev tree for your review, thanks.
1/7: remove irq_on from ata_bus_reset() and ata_std_postreset() 2/7: sata_promise::pdc_freeze() semantic change
3/7: add freeze()/thaw() to old EH LLDDs
4/7: use freeze()/thaw() for polling PIO
5/7: integrate freeze/thaw with irq_on/off
6/7: tf_load() cleanup
7/7: remove ap->last_ctl
PATCH 1/7 libata: remove irq_on from ata_bus_reset() and ata_std_postreset()
It seems irq_on() in ata_bus_reset() and ata_std_postreset()
are leftover of the EDD reset. Remove them.
---
drivers/ata/libata-core.c +0 -7
@@ -3194,9 +3194,6 @@ void ata_bus_reset(struct ata_port *ap)if ((slave_possible) && (err !=0x81 )) ap->device[1 ].class =ata_dev_try_classify (ap,1 , &err); -/* re-enable interrupts */ - ap->ops->irq_on (ap); -/* is double-select really necessary? */ if (ap->device[1 ].class !=ATA_DEV_NONE ) ap->ops->dev_select (ap,1 );
@@ -3581,10 +3578,6 @@ void ata_std_postreset(struct ata_port *if (sata_scr_read (ap,SCR_ERROR , &serror) ==0 )sata_scr_write (ap,SCR_ERROR , serror); -/* re-enable interrupts */ -if (!ap->ops->error_handler) - ap->ops->irq_on (ap); -/* is double-select really necessary? */ if (classes[0 ] !=ATA_DEV_NONE ) ap->ops->dev_select (ap,1 );
drivers/ata/pata_scc.c +0 -4
@@ -892,10 +892,6 @@ static void scc_std_postreset (struct at {DPRINTK ("ENTER\n" ); -/* re-enable interrupts */ -if (!ap->ops->error_handler) - ap->ops->irq_on (ap); -/* is double-select really necessary? */ if (classes[0 ] !=ATA_DEV_NONE ) ap->ops->dev_select (ap,1 );
Jeff Garzik
AppliedRe: [PATCH 1/7] libata: remove irq_on from ata_bus_reset() and ata_std_postreset()
Quoted 4 lines · Albert Lee
It seems
irq_on()inata_bus_reset()andata_std_postreset()
are leftover of the EDD reset. Remove them.Signed-off-by Albert Lee <[email protected]>
applied
PATCH 2/7 sata_promise: pdc_freeze() semantic change
In reply to Albert Lee After checking the current implementations of freeze()/thaw(), it seems only pdc_freeze()
does more than simple irq masking. Remove the DMA stop code from pdc_freeze().
---
drivers/ata/sata_promise.c +0 -1
@@ -578,7 +578,6 @@ static void pdc_freeze(struct ata_port * tmp =readl (mmio +PDC_CTLSTAT ); tmp |=PDC_IRQ_DISABLE ; - tmp &= ~PDC_DMA_ENABLE ;writel (tmp, mmio +PDC_CTLSTAT );readl (mmio +PDC_CTLSTAT );/* flush */ }
Re: [PATCH 2/7] sata_promise: pdc_freeze() semantic change
Quoted 10 lines · Albert Lee
After checking the current implementations of freeze()/thaw(), it seems only
pdc_freeze()
does more than simple irq masking. Remove the DMA stop code frompdc_freeze().Signed-off-by Albert Lee <[email protected]>---
diff -Nrup
01_remove_leftover_irqon/drivers/ata/sata_promise.c02_sata_pdc_freeze/drivers/ata/sata_promise.c
drivers/ata/sata_promise.c static void pdc_freeze(struct ata_port * · line 582
Quoted 6 lines
drivers/ata/sata_promise.c +0
-1@@ -578,7 +578,6 @@ static void pdc_freeze(struct ata_port * tmp =readl (mmio +PDC_CTLSTAT ); tmp |=PDC_IRQ_DISABLE ; - tmp &= ~PDC_DMA_ENABLE ;writel (tmp, mmio +PDC_CTLSTAT );readl (mmio +PDC_CTLSTAT );/* flush */
Two comments:
1) I do not think it safe to simply remove this. Have you verified that pdc_reset_port() without a disabled DMA engine works 100%? At the very least I would say to -move- this code, rather the deleting it.
2) It was put there to disable the DMA engine at our first opportunity.
For some errors we really should take some preliminary
port/DMA-disable actions in the interrupt handler, before kicking off EH and waiting to be scheduled in process context.
Jeff
PATCH 3/7 libata: add freeze/thaw to old EH LLDDs
In reply to Albert LeeThe polling PIO code path is going to use freeze()/thaw(), regardless of old EH or new EH. Add freeze()/thaw() to old EH LLDDs for the use of polling PIO.
---
drivers/ata/pata_ixp4xx_cf.c +3 -0
@@ -131,6 +131,9 @@ static struct ata_port_operations ixp4xx .data_xfer = ixp4xx_mmio_data_xfer, .cable_detect = ata_cable_40wire, + .freeze = ata_bmdma_freeze, + .thaw = ata_bmdma_thaw, + .irq_clear = ixp4xx_irq_clear, .irq_on = ata_irq_on, .irq_ack = ata_irq_ack,
drivers/ata/pata_scc.c +13 -0
@@ -869,6 +869,18 @@ static void scc_bmdma_freeze (struct ata }/** +* scc_bmdma_thaw - Thaw BMDMA controller port +* @ap: port to thaw +* +* Note: Original code is ata_bmdma_thaw(). +*/ + +static void scc_bmdma_thaw (struct ata_port *ap) +{ +scc_irq_on (ap); +} + +/** * scc_pata_prereset - prepare for reset * @ap: ATA port to be reset * @deadline: deadline jiffies for the operation
@@ -1015,6 +1027,7 @@ static const struct ata_port_operations .qc_issue = ata_qc_issue_prot, .freeze = scc_bmdma_freeze, + .thaw = scc_bmdma_thaw, .error_handler = scc_error_handler, .post_internal_cmd = scc_bmdma_stop,
drivers/ata/pdc_adma.c +2 -0
@@ -171,6 +171,8 @@ static const struct ata_port_operations .qc_issue = adma_qc_issue, .eng_timeout = adma_eng_timeout, .data_xfer = ata_data_xfer, + .freeze = ata_bmdma_freeze, + .thaw = ata_bmdma_thaw, .irq_clear = adma_irq_clear, .irq_on = ata_irq_on, .irq_ack = ata_irq_ack,
drivers/ata/sata_mv.c +9 -0
@@ -453,6 +453,9 @@ static const struct ata_port_operations .eng_timeout = mv_eng_timeout, + .freeze = ata_bmdma_freeze, + .thaw = ata_bmdma_thaw, + .irq_clear = mv_irq_clear, .irq_on = ata_irq_on, .irq_ack = ata_irq_ack,
@@ -482,6 +485,9 @@ static const struct ata_port_operations .eng_timeout = mv_eng_timeout, + .freeze = ata_bmdma_freeze, + .thaw = ata_bmdma_thaw, + .irq_clear = mv_irq_clear, .irq_on = ata_irq_on, .irq_ack = ata_irq_ack,
@@ -511,6 +517,9 @@ static const struct ata_port_operations .eng_timeout = mv_eng_timeout, + .freeze = ata_bmdma_freeze, + .thaw = ata_bmdma_thaw, + .irq_clear = mv_irq_clear, .irq_on = ata_irq_on, .irq_ack = ata_irq_ack,
drivers/ata/sata_qstor.c +2 -0
@@ -157,6 +157,8 @@ static const struct ata_port_operations .qc_issue = qs_qc_issue, .data_xfer = ata_data_xfer, .eng_timeout = qs_eng_timeout, + .freeze = ata_bmdma_freeze, + .thaw = ata_bmdma_thaw, .irq_clear = qs_irq_clear, .irq_on = ata_irq_on, .irq_ack = ata_irq_ack,
drivers/ata/sata_sx4.c +2 -0
@@ -203,6 +203,8 @@ static const struct ata_port_operations .qc_issue = pdc20621_qc_issue_prot, .data_xfer = ata_data_xfer, .eng_timeout = pdc_eng_timeout, + .freeze = ata_bmdma_freeze, + .thaw = ata_bmdma_thaw, .irq_clear = pdc20621_irq_clear, .irq_on = ata_irq_on, .irq_ack = ata_irq_ack,
PATCH 4/7 libata: use freeze/thaw for polling PIO
In reply to Albert LeeThis patch let polling pio codes to use freeze()/thaw() for irq off/on.
The reason is: some ATAPI devices raises INTRQ even of nIEN = 1.
Using the host adapter irq mask mechanism, if available, is more reliable than the device nIEN bit.
ata_qc_set_polling() is also removed since now unused.
---
Considerations:
Polling PIO, the new user of freeze()/thaw(), might have higher calling frequency to freeze()/thaw() than EH. Can current implemention of freeze()/thaw() handle that?
We might need more testing on sata_nv, sata_promise, sata_sil, sata_sil24, sata_via and sata_vsc.
drivers/ata/libata-core.c +5 -5
@@ -4753,7 +4753,7 @@ static void ata_hsm_qc_complete(struct a qc =ata_qc_from_tag (ap, qc->tag);if (qc) {if (likely (!(qc->err_mask &AC_ERR_HSM ))) { - ap->ops->irq_on (ap); + ap->ops->thaw (ap);ata_qc_complete (qc); }else ata_port_freeze (ap);
@@ -4769,7 +4769,7 @@ static void ata_hsm_qc_complete(struct a }else {if (in_wq) {spin_lock_irqsave (ap->lock, flags); - ap->ops->irq_on (ap); + ap->ops->thaw (ap);ata_qc_complete (qc);spin_unlock_irqrestore (ap->lock, flags); }else
@@ -5411,7 +5411,7 @@ unsigned int ata_qc_issue_prot(struct atswitch (qc->tf.protocol) {case ATA_PROT_NODATA :if (qc->tf.flags &ATA_TFLAG_POLLING ) -ata_qc_set_polling (qc); + ap->ops->freeze (ap);ata_tf_to_host (ap, &qc->tf); ap->hsm_task_state =HSM_ST_LAST ;
@@ -5432,7 +5432,7 @@ unsigned int ata_qc_issue_prot(struct atcase ATA_PROT_PIO :if (qc->tf.flags &ATA_TFLAG_POLLING ) -ata_qc_set_polling (qc); + ap->ops->freeze (ap);ata_tf_to_host (ap, &qc->tf);
@@ -5461,7 +5461,7 @@ unsigned int ata_qc_issue_prot(struct atcase ATA_PROT_ATAPI :case ATA_PROT_ATAPI_NODATA :if (qc->tf.flags &ATA_TFLAG_POLLING ) -ata_qc_set_polling (qc); + ap->ops->freeze (ap);ata_tf_to_host (ap, &qc->tf);
include/linux/libata.h +0 -5
@@ -1094,11 +1094,6 @@ static inline u8 ata_wait_idle(struct atreturn status; } -static inline void ata_qc_set_polling (struct ata_queued_cmd *qc) -{ - qc->tf.ctl |=ATA_NIEN ; -} -static inline struct ata_queued_cmd *__ata_qc_from_tag (struct ata_port *ap,unsigned int tag) {
Re: [PATCH 4/7] libata: use freeze/thaw for polling PIO
Quoted 7 lines · Albert Lee
This patch let polling pio codes to use freeze()/thaw() for irq off/on.
The reason is: some ATAPI devices raises INTRQ even of nIEN = 1.
Using the host adapter irq mask mechanism, if available, is more reliable than the device nIEN bit.
ata_qc_set_polling()is also removed since now unused.Signed-off-by Albert Lee <[email protected]>
ACK 1-4.
Signature · 1 line
tejun
PATCH 5/7 libata: integrate freeze/thaw with irq_on/off
In reply to Albert Leeirq_on/irq_off are now only wrapped by freeze/thaw and unused elsewhere. We can integrate freeze/thaw with irq_on/irq_off.
---
The strange thing here is sata_via. It implements svia_noop_freeze() that doesn't actually disable the irq. This is related to the following bug:
http://bugzilla.kernel.org/show_bug.cgi?id=7415
Sine a lot has been changed since 2.6.19, maybe we can remove such quirk at this momemt and ask the bug submitter to test his VIA 8420 with the new code again.
drivers/ata/libata-core.c +6 -10
@@ -4753,7 +4753,7 @@ static void ata_hsm_qc_complete(struct a qc =ata_qc_from_tag (ap, qc->tag);if (qc) {if (likely (!(qc->err_mask &AC_ERR_HSM ))) { - ap->ops->thaw (ap); + ap->ops->irq_on (ap);ata_qc_complete (qc); }else ata_port_freeze (ap);
@@ -4769,7 +4769,7 @@ static void ata_hsm_qc_complete(struct a }else {if (in_wq) {spin_lock_irqsave (ap->lock, flags); - ap->ops->thaw (ap); + ap->ops->irq_on (ap);ata_qc_complete (qc);spin_unlock_irqrestore (ap->lock, flags); }else
@@ -5411,7 +5411,7 @@ unsigned int ata_qc_issue_prot(struct atswitch (qc->tf.protocol) {case ATA_PROT_NODATA :if (qc->tf.flags &ATA_TFLAG_POLLING ) - ap->ops->freeze (ap); + ap->ops->irq_off (ap);ata_tf_to_host (ap, &qc->tf); ap->hsm_task_state =HSM_ST_LAST ;
@@ -5432,7 +5432,7 @@ unsigned int ata_qc_issue_prot(struct atcase ATA_PROT_PIO :if (qc->tf.flags &ATA_TFLAG_POLLING ) - ap->ops->freeze (ap); + ap->ops->irq_off (ap);ata_tf_to_host (ap, &qc->tf);
@@ -5461,7 +5461,7 @@ unsigned int ata_qc_issue_prot(struct atcase ATA_PROT_ATAPI :case ATA_PROT_ATAPI_NODATA :if (qc->tf.flags &ATA_TFLAG_POLLING ) - ap->ops->freeze (ap); + ap->ops->irq_off (ap);ata_tf_to_host (ap, &qc->tf);
@@ -6758,8 +6758,6 @@ const struct ata_port_operations ata_dum .dev_select = ata_noop_dev_select, .qc_prep = ata_noop_qc_prep, .qc_issue = ata_dummy_qc_issue, - .freeze = ata_dummy_noret, - .thaw = ata_dummy_noret, .error_handler = ata_dummy_noret, .post_internal_cmd = ata_dummy_qc_noret, .irq_clear = ata_dummy_noret,
@@ -6821,8 +6819,6 @@ EXPORT_SYMBOL_GPL(ata_bmdma_start);EXPORT_SYMBOL_GPL (ata_bmdma_irq_clear);EXPORT_SYMBOL_GPL (ata_bmdma_status);EXPORT_SYMBOL_GPL (ata_bmdma_stop); -EXPORT_SYMBOL_GPL (ata_bmdma_freeze); -EXPORT_SYMBOL_GPL (ata_bmdma_thaw);EXPORT_SYMBOL_GPL (ata_bmdma_drive_eh);EXPORT_SYMBOL_GPL (ata_bmdma_error_handler);EXPORT_SYMBOL_GPL (ata_bmdma_post_internal_cmd);
@@ -6900,7 +6896,7 @@ EXPORT_SYMBOL_GPL(ata_eh_qc_complete);EXPORT_SYMBOL_GPL (ata_eh_qc_retry);EXPORT_SYMBOL_GPL (ata_do_eh);EXPORT_SYMBOL_GPL (ata_irq_on); -EXPORT_SYMBOL_GPL (ata_dummy_irq_on); +EXPORT_SYMBOL_GPL (ata_irq_off);EXPORT_SYMBOL_GPL (ata_irq_ack);EXPORT_SYMBOL_GPL (ata_dummy_irq_ack);EXPORT_SYMBOL_GPL (ata_dev_try_classify);
drivers/ata/libata-eh.c +2 -4
@@ -617,8 +617,7 @@ static void __ata_port_freeze(struct ata {WARN_ON (!ap->ops->error_handler); -if (ap->ops->freeze) - ap->ops->freeze (ap); + ap->ops->irq_off (ap); ap->pflags |=ATA_PFLAG_FROZEN ;
@@ -690,8 +689,7 @@ void ata_eh_thaw_port(struct ata_port *a ap->pflags &= ~ATA_PFLAG_FROZEN ; -if (ap->ops->thaw) - ap->ops->thaw (ap); + ap->ops->irq_on (ap);spin_unlock_irqrestore (ap->lock, flags);
drivers/ata/libata.h +0 -3
@@ -155,8 +155,5 @@ extern void ata_scsi_error(struct Scsi_Hextern void ata_port_wait_eh (struct ata_port *ap);extern void ata_qc_schedule_eh (struct ata_queued_cmd *qc); -/* libata-sff.c */ -extern u8 ata_irq_on (struct ata_port *ap); -#endif /* __LIBATA_H__ */
drivers/ata/libata-sff.c +29 -50
102 lines not on this page · raw message
include/linux/libata.h +4 -7
@@ -589,14 +589,13 @@ struct ata_port_operations {*/ void (*eng_timeout) (struct ata_port *ap);/* obsolete */ -void (*freeze) (struct ata_port *ap); -void (*thaw) (struct ata_port *ap);void (*error_handler) (struct ata_port *ap);void (*post_internal_cmd) (struct ata_queued_cmd *qc);irq_handler_t irq_handler;void (*irq_clear) (struct ata_port *); -u8 (*irq_on) (struct ata_port *); +void (*irq_on) (struct ata_port *); +void (*irq_off) (struct ata_port *);u8 (*irq_ack) (struct ata_port *ap,unsigned int chk_drq);u32 (*scr_read) (struct ata_port *ap,unsigned int sc_reg);
@@ -778,8 +777,6 @@ extern void ata_bmdma_start (struct ata_extern void ata_bmdma_stop (struct ata_queued_cmd *qc);extern u8 ata_bmdma_status (struct ata_port *ap);extern void ata_bmdma_irq_clear (struct ata_port *ap); -extern void ata_bmdma_freeze (struct ata_port *ap); -extern void ata_bmdma_thaw (struct ata_port *ap); extern void ata_bmdma_drive_eh(struct ata_port *ap, ata_prereset_fn_t prereset, ata_reset_fn_t softreset, ata_reset_fn_t hardreset,
@@ -802,8 +799,8 @@ extern int ata_scsi_change_queue_depth(s int queue_depth);extern struct ata_device *ata_dev_pair (struct ata_device *adev);extern int ata_do_set_mode (struct ata_port *ap,struct ata_device **r_failed_dev); -extern u8 ata_irq_on (struct ata_port *ap); -extern u8 ata_dummy_irq_on (struct ata_port *ap); +extern void ata_irq_on (struct ata_port *ap); +extern void ata_irq_off (struct ata_port *ap);extern u8 ata_irq_ack (struct ata_port *ap,unsigned int chk_drq);extern u8 ata_dummy_irq_ack (struct ata_port *ap,unsigned int chk_drq);
drivers/ata/ahci.c +8 -12
@@ -223,8 +223,8 @@ static void ahci_port_stop(struct ata_postatic void ahci_tf_read (struct ata_port *ap,struct ata_taskfile *tf);static void ahci_qc_prep (struct ata_queued_cmd *qc);static u8 ahci_check_status (struct ata_port *ap); -static void ahci_freeze (struct ata_port *ap); -static void ahci_thaw (struct ata_port *ap); +static void ahci_irq_on (struct ata_port *ap); +static void ahci_irq_off (struct ata_port *ap);static void ahci_error_handler (struct ata_port *ap);static void ahci_vt8251_error_handler (struct ata_port *ap);static void ahci_post_internal_cmd (struct ata_queued_cmd *qc);
@@ -267,15 +267,13 @@ static const struct ata_port_operations .qc_issue = ahci_qc_issue, .irq_clear = ahci_irq_clear, - .irq_on = ata_dummy_irq_on, + .irq_on = ahci_irq_on, + .irq_off = ahci_irq_off, .irq_ack = ata_dummy_irq_ack, .scr_read = ahci_scr_read, .scr_write = ahci_scr_write, - .freeze = ahci_freeze, - .thaw = ahci_thaw, - .error_handler = ahci_error_handler, .post_internal_cmd = ahci_post_internal_cmd,
@@ -301,15 +299,13 @@ static const struct ata_port_operations .qc_issue = ahci_qc_issue, .irq_clear = ahci_irq_clear, - .irq_on = ata_dummy_irq_on, + .irq_on = ahci_irq_on, + .irq_off = ahci_irq_off, .irq_ack = ata_dummy_irq_ack, .scr_read = ahci_scr_read, .scr_write = ahci_scr_write, - .freeze = ahci_freeze, - .thaw = ahci_thaw, - .error_handler = ahci_vt8251_error_handler, .post_internal_cmd = ahci_post_internal_cmd,
@@ -1395,7 +1391,7 @@ static unsigned int ahci_qc_issue(structreturn 0 ; } -static void ahci_freeze (struct ata_port *ap) +static void ahci_irq_off (struct ata_port *ap) {void __iomem *port_mmio =ahci_port_base (ap);
@@ -1403,7 +1399,7 @@ static void ahci_freeze(struct ata_portwritel (0 , port_mmio +PORT_IRQ_MASK ); } -static void ahci_thaw (struct ata_port *ap) +static void ahci_irq_on (struct ata_port *ap) {void __iomem *mmio = ap->host->iomap[AHCI_PCI_BAR ];void __iomem *port_mmio =ahci_port_base (ap);
drivers/ata/ata_generic.c +1 -2
@@ -109,8 +109,6 @@ static struct ata_port_operations generi .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_unknown,
@@ -121,6 +119,7 @@ static struct ata_port_operations generi .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/ata_piix.c +3 -6
@@ -296,8 +296,6 @@ static const struct ata_port_operations .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = piix_pata_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -305,6 +303,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -330,8 +329,6 @@ static const struct ata_port_operations .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = piix_pata_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ich_pata_cable_detect,
@@ -339,6 +336,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -361,14 +359,13 @@ static const struct ata_port_operations .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_ali.c +4 -8
@@ -306,8 +306,6 @@ static struct ata_port_operations ali_ea .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -320,6 +318,7 @@ static struct ata_port_operations ali_ea .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -343,8 +342,6 @@ static struct ata_port_operations ali_20 .dev_select = ata_std_dev_select, .dev_config = ali_lock_sectors, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -362,6 +359,7 @@ static struct ata_port_operations ali_20 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -382,8 +380,6 @@ static struct ata_port_operations ali_c2 .dev_select = ata_std_dev_select, .dev_config = ali_lock_sectors, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ali_c2_cable_detect,
@@ -401,6 +397,7 @@ static struct ata_port_operations ali_c2 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -420,8 +417,6 @@ static struct ata_port_operations ali_c5 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ali_c2_cable_detect,
@@ -439,6 +434,7 @@ static struct ata_port_operations ali_c5 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_amd.c +6 -12
@@ -337,8 +337,6 @@ static struct ata_port_operations amd33_ .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = amd_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -356,6 +354,7 @@ static struct ata_port_operations amd33_ .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -372,8 +371,6 @@ static struct ata_port_operations amd66_ .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = amd_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_unknown,
@@ -391,6 +388,7 @@ static struct ata_port_operations amd66_ .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -407,8 +405,6 @@ static struct ata_port_operations amd100 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = amd_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_unknown,
@@ -426,6 +422,7 @@ static struct ata_port_operations amd100 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -442,8 +439,6 @@ static struct ata_port_operations amd133 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = amd_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = amd_cable_detect,
@@ -461,6 +456,7 @@ static struct ata_port_operations amd133 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -477,8 +473,6 @@ static struct ata_port_operations nv100_ .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = nv_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = nv_cable_detect,
@@ -496,6 +490,7 @@ static struct ata_port_operations nv100_ .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -512,8 +507,6 @@ static struct ata_port_operations nv133_ .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = nv_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = nv_cable_detect,
@@ -531,6 +524,7 @@ static struct ata_port_operations nv133_ .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_artop.c +2 -4
@@ -340,8 +340,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = artop6210_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -358,6 +356,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -374,8 +373,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = artop6260_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = artop6260_cable_detect,
@@ -391,6 +388,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_atiixp.c +1 -2
@@ -242,8 +242,6 @@ static struct ata_port_operations atiixp .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = atiixp_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = atiixp_cable_detect,
@@ -261,6 +259,7 @@ static struct ata_port_operations atiixp .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_cmd640.c +1 -2
@@ -193,8 +193,6 @@ static struct ata_port_operations cmd640 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -213,6 +211,7 @@ static struct ata_port_operations cmd640 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = cmd640_port_start,
drivers/ata/pata_cmd64x.c +3 -6
@@ -279,8 +279,6 @@ static struct ata_port_operations cmd64x .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -298,6 +296,7 @@ static struct ata_port_operations cmd64x .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -314,8 +313,6 @@ static struct ata_port_operations cmd646 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -333,6 +330,7 @@ static struct ata_port_operations cmd646 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -349,8 +347,6 @@ static struct ata_port_operations cmd648 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = cmd648_cable_detect,
@@ -368,6 +364,7 @@ static struct ata_port_operations cmd648 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_cs5520.c +1 -2
@@ -168,8 +168,6 @@ static struct ata_port_operations cs5520 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -184,6 +182,7 @@ static struct ata_port_operations cs5520 .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_cs5530.c +1 -2
@@ -195,8 +195,6 @@ static struct ata_port_operations cs5530 .bmdma_stop = ata_bmdma_stop, .bmdma_status = ata_bmdma_status, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -209,6 +207,7 @@ static struct ata_port_operations cs5530 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_cs5535.c +1 -2
@@ -187,8 +187,6 @@ static struct ata_port_operations cs5535 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = cs5535_cable_detect,
@@ -206,6 +204,7 @@ static struct ata_port_operations cs5535 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_cypress.c +1 -2
@@ -139,8 +139,6 @@ static struct ata_port_operations cy82c6 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -158,6 +156,7 @@ static struct ata_port_operations cy82c6 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_efar.c +1 -2
@@ -261,8 +261,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = efar_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = efar_cable_detect,
@@ -278,6 +276,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_hpt366.c +1 -2
@@ -323,8 +323,6 @@ static struct ata_port_operations hpt366 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = hpt36x_cable_detect,
@@ -342,6 +340,7 @@ static struct ata_port_operations hpt366 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_hpt37x.c +4 -8
@@ -655,8 +655,6 @@ static struct ata_port_operations hpt370 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = hpt37x_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd,
@@ -673,6 +671,7 @@ static struct ata_port_operations hpt370 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -694,8 +693,6 @@ static struct ata_port_operations hpt370 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = hpt37x_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd,
@@ -712,6 +709,7 @@ static struct ata_port_operations hpt370 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -734,8 +732,6 @@ static struct ata_port_operations hpt372 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = hpt37x_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd,
@@ -752,6 +748,7 @@ static struct ata_port_operations hpt372 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -774,8 +771,6 @@ static struct ata_port_operations hpt374 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = hpt374_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd,
@@ -792,6 +787,7 @@ static struct ata_port_operations hpt374 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_hpt3x2n.c +1 -2
@@ -371,8 +371,6 @@ static struct ata_port_operations hpt3x2 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = hpt3x2n_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = hpt3x2n_cable_detect,
@@ -390,6 +388,7 @@ static struct ata_port_operations hpt3x2 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_hpt3x3.c +1 -2
@@ -114,8 +114,6 @@ static struct ata_port_operations hpt3x3 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -133,6 +131,7 @@ static struct ata_port_operations hpt3x3 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_icside.c +1 -2
@@ -395,13 +395,12 @@ static struct ata_port_operations pata_i .qc_prep = ata_noop_qc_prep, .qc_issue = ata_qc_issue_prot, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = pata_icside_bmdma_stop, .irq_clear = ata_dummy_noret, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = pata_icside_irq_ack, .port_start = pata_icside_port_start,
drivers/ata/pata_isapnp.c +1 -2
@@ -45,8 +45,6 @@ static struct ata_port_operations isapnp .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -58,6 +56,7 @@ static struct ata_port_operations isapnp .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_it8213.c +1 -2
@@ -271,8 +271,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = it8213_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = it8213_cable_detect,
@@ -288,6 +286,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_it821x.c +2 -4
@@ -629,8 +629,6 @@ static struct ata_port_operations it821x .dev_select = ata_std_dev_select, .dev_config = it821x_dev_config, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_unknown,
@@ -648,6 +646,7 @@ static struct ata_port_operations it821x .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = it821x_port_start,
@@ -666,8 +665,6 @@ static struct ata_port_operations it821x .check_atapi_dma= it821x_check_atapi_dma, .dev_select = it821x_passthru_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_unknown,
@@ -685,6 +682,7 @@ static struct ata_port_operations it821x .irq_clear = ata_bmdma_irq_clear, .irq_handler = ata_interrupt, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = it821x_port_start,
drivers/ata/pata_ixp4xx_cf.c +1 -3
@@ -131,11 +131,9 @@ static struct ata_port_operations ixp4xx .data_xfer = ixp4xx_mmio_data_xfer, .cable_detect = ata_cable_40wire, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, - .irq_clear = ixp4xx_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_jmicron.c +1 -2
@@ -150,8 +150,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = jmicron_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd,
@@ -168,6 +166,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack,/* Generic PATA PCI ATA helpers */
drivers/ata/pata_legacy.c +7 -14
@@ -158,8 +158,6 @@ static struct ata_port_operations simple .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -172,6 +170,7 @@ static struct ata_port_operations simple .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -188,8 +187,6 @@ static struct ata_port_operations legacy .dev_select = ata_std_dev_select, .cable_detect = ata_cable_40wire, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd,
@@ -201,6 +198,7 @@ static struct ata_port_operations legacy .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -303,8 +301,6 @@ static struct ata_port_operations pdc202 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -317,6 +313,7 @@ static struct ata_port_operations pdc202 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -359,8 +356,6 @@ static struct ata_port_operations ht6560 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -373,6 +368,7 @@ static struct ata_port_operations ht6560 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -426,8 +422,6 @@ static struct ata_port_operations ht6560 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -440,6 +434,7 @@ static struct ata_port_operations ht6560 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -548,8 +543,6 @@ static struct ata_port_operations opti82 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -562,6 +555,7 @@ static struct ata_port_operations opti82 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -682,8 +676,6 @@ static struct ata_port_operations opti82 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -696,6 +688,7 @@ static struct ata_port_operations opti82 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_marvell.c +1 -2
@@ -119,8 +119,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = marvell_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = marvell_cable_detect,
@@ -138,6 +136,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack,/* Generic PATA PCI ATA helpers */
drivers/ata/pata_mpc52xx.c +1 -2
@@ -290,8 +290,6 @@ static struct ata_port_operations mpc52x .tf_read = ata_tf_read, .check_status = ata_check_status, .exec_command = ata_exec_command, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = mpc52xx_ata_error_handler, .cable_detect = ata_cable_40wire, .qc_prep = ata_qc_prep,
@@ -299,6 +297,7 @@ static struct ata_port_operations mpc52x .data_xfer = ata_data_xfer, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start, };
drivers/ata/pata_mpiix.c +1 -2
@@ -177,8 +177,6 @@ static struct ata_port_operations mpiix_ .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = mpiix_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -189,6 +187,7 @@ static struct ata_port_operations mpiix_ .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_netcell.c +1 -2
@@ -49,8 +49,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_80wire,
@@ -68,6 +66,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack,/* Generic PATA PCI ATA helpers */
drivers/ata/pata_ns87410.c +1 -2
@@ -170,8 +170,6 @@ static struct ata_port_operations ns8741 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ns87410_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -184,6 +182,7 @@ static struct ata_port_operations ns8741 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_oldpiix.c +1 -2
@@ -248,8 +248,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = oldpiix_pata_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -265,6 +263,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_opti.c +1 -2
@@ -190,8 +190,6 @@ static struct ata_port_operations opti_p .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = opti_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -209,6 +207,7 @@ static struct ata_port_operations opti_p .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_optidma.c +2 -4
@@ -376,8 +376,6 @@ static struct ata_port_operations optidm .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .post_internal_cmd = ata_bmdma_post_internal_cmd, .error_handler = optidma_error_handler, .set_mode = optidma_set_mode,
@@ -396,6 +394,7 @@ static struct ata_port_operations optidm .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -412,8 +411,6 @@ static struct ata_port_operations optipl .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .post_internal_cmd = ata_bmdma_post_internal_cmd, .error_handler = optidma_error_handler, .set_mode = optidma_set_mode,
@@ -432,6 +429,7 @@ static struct ata_port_operations optipl .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_pcmcia.c +1 -2
@@ -114,8 +114,6 @@ static struct ata_port_operations pcmcia .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -127,6 +125,7 @@ static struct ata_port_operations pcmcia .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_sff_port_start,
drivers/ata/pata_pdc2027x.c +2 -4
@@ -165,14 +165,13 @@ static struct ata_port_operations pdc202 .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = pdc2027x_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = pdc2027x_cable_detect, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -200,14 +199,13 @@ static struct ata_port_operations pdc202 .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = pdc2027x_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = pdc2027x_cable_detect, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_pdc202xx_old.c +2 -4
@@ -257,8 +257,6 @@ static struct ata_port_operations pdc202 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -275,6 +273,7 @@ static struct ata_port_operations pdc202 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -292,8 +291,6 @@ static struct ata_port_operations pdc202 .dev_select = ata_std_dev_select, .dev_config = pdc2026x_dev_config, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = pdc2026x_cable_detect,
@@ -310,6 +307,7 @@ static struct ata_port_operations pdc202 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_platform.c +1 -2
@@ -78,8 +78,6 @@ static struct ata_port_operations pata_p .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_unknown,
@@ -91,6 +89,7 @@ static struct ata_port_operations pata_p .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_dummy_ret0,
drivers/ata/pata_qdi.c +2 -4
@@ -179,8 +179,6 @@ static struct ata_port_operations qdi650 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -192,6 +190,7 @@ static struct ata_port_operations qdi650 .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -207,8 +206,6 @@ static struct ata_port_operations qdi658 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -220,6 +217,7 @@ static struct ata_port_operations qdi658 .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_radisys.c +1 -2
@@ -214,8 +214,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_unknown,
@@ -231,6 +229,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_rz1000.c +1 -2
@@ -91,8 +91,6 @@ static struct ata_port_operations rz1000 .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -100,6 +98,7 @@ static struct ata_port_operations rz1000 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_sc1200.c +1 -2
@@ -208,8 +208,6 @@ static struct ata_port_operations sc1200 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -227,6 +225,7 @@ static struct ata_port_operations sc1200 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_scc.c +27 -43
103 lines not on this page · raw message
drivers/ata/pata_serverworks.c +2 -4
@@ -329,8 +329,6 @@ static struct ata_port_operations server .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = serverworks_cable_detect,
@@ -348,6 +346,7 @@ static struct ata_port_operations server .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -365,8 +364,6 @@ static struct ata_port_operations server .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = serverworks_cable_detect,
@@ -384,6 +381,7 @@ static struct ata_port_operations server .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_sil680.c +1 -2
@@ -245,8 +245,6 @@ static struct ata_port_operations sil680 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = sil680_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = sil680_cable_detect,
@@ -264,6 +262,7 @@ static struct ata_port_operations sil680 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_sis.c +6 -12
@@ -538,8 +538,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = sis_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = sis_133_cable_detect,
@@ -555,6 +553,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -572,8 +571,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = sis_133_cable_detect,
@@ -589,6 +586,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -606,8 +604,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = sis_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = sis_66_cable_detect,
@@ -623,6 +619,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -640,8 +637,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = sis_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = sis_66_cable_detect,
@@ -657,6 +652,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -675,8 +671,6 @@ static const struct ata_port_operations .dev_select = ata_std_dev_select, .cable_detect = sis_66_cable_detect, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = sis_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd,
@@ -691,6 +685,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -708,8 +703,6 @@ static const struct ata_port_operations .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = sis_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -725,6 +718,7 @@ static const struct ata_port_operations .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_sl82c105.c +1 -2
@@ -234,8 +234,6 @@ static struct ata_port_operations sl82c1 .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = sl82c105_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -253,6 +251,7 @@ static struct ata_port_operations sl82c1 .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_triflex.c +1 -2
@@ -207,8 +207,6 @@ static struct ata_port_operations trifle .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = triflex_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -226,6 +224,7 @@ static struct ata_port_operations trifle .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_via.c +2 -4
@@ -344,8 +344,6 @@ static struct ata_port_operations via_po .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = via_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = via_cable_detect,
@@ -363,6 +361,7 @@ static struct ata_port_operations via_po .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -380,8 +379,6 @@ static struct ata_port_operations via_po .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = via_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = via_cable_detect,
@@ -399,6 +396,7 @@ static struct ata_port_operations via_po .irq_handler = ata_interrupt, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pata_winbond.c +1 -2
@@ -147,8 +147,6 @@ static struct ata_port_operations winbon .exec_command = ata_exec_command, .dev_select = ata_std_dev_select, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_40wire,
@@ -160,6 +158,7 @@ static struct ata_port_operations winbon .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
drivers/ata/pdc_adma.c +1 -2
@@ -171,10 +171,9 @@ static const struct ata_port_operations .qc_issue = adma_qc_issue, .eng_timeout = adma_eng_timeout, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .irq_clear = adma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = adma_port_start, .port_stop = adma_port_stop,
drivers/ata/sata_inic162x.c +4 -5
@@ -388,7 +388,7 @@ static unsigned int inic_qc_issue(structreturn ata_qc_issue_prot (qc); } -static void inic_freeze (struct ata_port *ap) +static void inic_irq_off (struct ata_port *ap) {void __iomem *port_base =inic_port_base (ap);
@@ -400,7 +400,7 @@ static void inic_freeze(struct ata_portreadb (port_base +PORT_IRQ_STAT );/* flush */ } -static void inic_thaw (struct ata_port *ap) +static void inic_irq_on (struct ata_port *ap) {void __iomem *port_base =inic_port_base (ap);
@@ -566,15 +566,14 @@ static struct ata_port_operations inic_p .bmdma_status = inic_bmdma_status, .irq_clear = inic_irq_clear, - .irq_on = ata_irq_on, + .irq_on = inic_irq_on, + .irq_off = inic_irq_off, .irq_ack = ata_irq_ack, .qc_prep = ata_qc_prep, .qc_issue = inic_qc_issue, .data_xfer = ata_data_xfer, - .freeze = inic_freeze, - .thaw = inic_thaw, .error_handler = inic_error_handler, .post_internal_cmd = inic_post_internal_cmd, .dev_config = inic_dev_config,
drivers/ata/sata_mv.c +3 -9
@@ -453,11 +453,9 @@ static const struct ata_port_operations .eng_timeout = mv_eng_timeout, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, - .irq_clear = mv_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .scr_read = mv5_scr_read,
@@ -485,11 +483,9 @@ static const struct ata_port_operations .eng_timeout = mv_eng_timeout, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, - .irq_clear = mv_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .scr_read = mv_scr_read,
@@ -517,11 +513,9 @@ static const struct ata_port_operations .eng_timeout = mv_eng_timeout, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, - .irq_clear = mv_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .scr_read = mv_scr_read,
drivers/ata/sata_nv.c +21 -25
145 lines not on this page · raw message
drivers/ata/sata_promise.c +10 -13
@@ -142,8 +142,8 @@ static int pdc_check_atapi_dma(struct atstatic int pdc_old_sata_check_atapi_dma (struct ata_queued_cmd *qc);static void pdc_irq_clear (struct ata_port *ap);static unsigned int pdc_qc_issue_prot (struct ata_queued_cmd *qc); -static void pdc_freeze (struct ata_port *ap); -static void pdc_thaw (struct ata_port *ap); +static void pdc_irq_on (struct ata_port *ap); +static void pdc_irq_off (struct ata_port *ap);static void pdc_pata_error_handler (struct ata_port *ap);static void pdc_sata_error_handler (struct ata_port *ap);static void pdc_post_internal_cmd (struct ata_queued_cmd *qc);
@@ -179,14 +179,13 @@ static const struct ata_port_operations .qc_prep = pdc_qc_prep, .qc_issue = pdc_qc_issue_prot, - .freeze = pdc_freeze, - .thaw = pdc_thaw, .error_handler = pdc_sata_error_handler, .post_internal_cmd = pdc_post_internal_cmd, .cable_detect = pdc_sata_cable_detect, .data_xfer = ata_data_xfer, .irq_clear = pdc_irq_clear, - .irq_on = ata_irq_on, + .irq_on = pdc_irq_on, + .irq_off = pdc_irq_off, .irq_ack = ata_irq_ack, .scr_read = pdc_sata_scr_read,
@@ -206,14 +205,13 @@ static const struct ata_port_operations .qc_prep = pdc_qc_prep, .qc_issue = pdc_qc_issue_prot, - .freeze = pdc_freeze, - .thaw = pdc_thaw, .error_handler = pdc_sata_error_handler, .post_internal_cmd = pdc_post_internal_cmd, .cable_detect = pdc_sata_cable_detect, .data_xfer = ata_data_xfer, .irq_clear = pdc_irq_clear, - .irq_on = ata_irq_on, + .irq_on = pdc_irq_on, + .irq_off = pdc_irq_off, .irq_ack = ata_irq_ack, .scr_read = pdc_sata_scr_read,
@@ -232,14 +230,13 @@ static const struct ata_port_operations .qc_prep = pdc_qc_prep, .qc_issue = pdc_qc_issue_prot, - .freeze = pdc_freeze, - .thaw = pdc_thaw, .error_handler = pdc_pata_error_handler, .post_internal_cmd = pdc_post_internal_cmd, .cable_detect = pdc_pata_cable_detect, .data_xfer = ata_data_xfer, .irq_clear = pdc_irq_clear, - .irq_on = ata_irq_on, + .irq_on = pdc_irq_on, + .irq_off = pdc_irq_off, .irq_ack = ata_irq_ack, .port_start = pdc_common_port_start,
@@ -571,7 +568,7 @@ static void pdc_qc_prep(struct ata_queue } } -static void pdc_freeze (struct ata_port *ap) +static void pdc_irq_off (struct ata_port *ap) {void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr;u32 tmp;
@@ -582,7 +579,7 @@ static void pdc_freeze(struct ata_port *readl (mmio +PDC_CTLSTAT );/* flush */ } -static void pdc_thaw (struct ata_port *ap) +static void pdc_irq_on (struct ata_port *ap) {void __iomem *mmio = (void __iomem *) ap->ioaddr.cmd_addr;u32 tmp;
drivers/ata/sata_qstor.c +1 -2
@@ -157,10 +157,9 @@ static const struct ata_port_operations .qc_issue = qs_qc_issue, .data_xfer = ata_data_xfer, .eng_timeout = qs_eng_timeout, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .irq_clear = qs_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .scr_read = qs_scr_read, .scr_write = qs_scr_write,
drivers/ata/sata_sil24.c +6 -7
@@ -332,8 +332,8 @@ static void sil24_tf_read(struct ata_porstatic void sil24_qc_prep (struct ata_queued_cmd *qc);static unsigned int sil24_qc_issue (struct ata_queued_cmd *qc);static void sil24_irq_clear (struct ata_port *ap); -static void sil24_freeze (struct ata_port *ap); -static void sil24_thaw (struct ata_port *ap); +static void sil24_irq_on (struct ata_port *ap); +static void sil24_irq_off (struct ata_port *ap);static void sil24_error_handler (struct ata_port *ap);static void sil24_post_internal_cmd (struct ata_queued_cmd *qc);static int sil24_port_start (struct ata_port *ap);
@@ -398,14 +398,13 @@ static const struct ata_port_operations .qc_issue = sil24_qc_issue, .irq_clear = sil24_irq_clear, - .irq_on = ata_dummy_irq_on, + .irq_on = sil24_irq_on, + .irq_off = sil24_irq_off, .irq_ack = ata_dummy_irq_ack, .scr_read = sil24_scr_read, .scr_write = sil24_scr_write, - .freeze = sil24_freeze, - .thaw = sil24_thaw, .error_handler = sil24_error_handler, .post_internal_cmd = sil24_post_internal_cmd,
@@ -728,7 +727,7 @@ static void sil24_irq_clear(struct ata_p/* unused */ } -static void sil24_freeze (struct ata_port *ap) +static void sil24_irq_off (struct ata_port *ap) {void __iomem *port = ap->ioaddr.cmd_addr;
@@ -738,7 +737,7 @@ static void sil24_freeze(struct ata_portwritel (0xffff , port +PORT_IRQ_ENABLE_CLR ); } -static void sil24_thaw (struct ata_port *ap) +static void sil24_irq_on (struct ata_port *ap) {void __iomem *port = ap->ioaddr.cmd_addr;u32 tmp;
drivers/ata/sata_sil.c +6 -7
@@ -118,8 +118,8 @@ static void sil_dev_config(struct ata_destatic u32 sil_scr_read (struct ata_port *ap,unsigned int sc_reg);static void sil_scr_write (struct ata_port *ap,unsigned int sc_reg,u32 val);static int sil_set_mode (struct ata_port *ap,struct ata_device **r_failed); -static void sil_freeze (struct ata_port *ap); -static void sil_thaw (struct ata_port *ap); +static void sil_irq_on (struct ata_port *ap); +static void sil_irq_off (struct ata_port *ap);static const struct pci_device_id sil_pci_tbl[] = {
@@ -200,12 +200,11 @@ static const struct ata_port_operations .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = sil_freeze, - .thaw = sil_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .irq_clear = ata_bmdma_irq_clear, - .irq_on = ata_irq_on, + .irq_on = sil_irq_on, + .irq_off = sil_irq_off, .irq_ack = ata_irq_ack, .scr_read = sil_scr_read, .scr_write = sil_scr_write,
@@ -490,7 +489,7 @@ static irqreturn_t sil_interrupt(int irqreturn IRQ_RETVAL (handled); } -static void sil_freeze (struct ata_port *ap) +static void sil_irq_off (struct ata_port *ap) {void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR ];u32 tmp;
@@ -505,7 +504,7 @@ static void sil_freeze(struct ata_port *readl (mmio_base +SIL_SYSCFG );/* flush */ } -static void sil_thaw (struct ata_port *ap) +static void sil_irq_on (struct ata_port *ap) {void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR ];u32 tmp;
drivers/ata/sata_sis.c +1 -2
@@ -117,12 +117,11 @@ static const struct ata_port_operations .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .scr_read = sis_scr_read, .scr_write = sis_scr_write,
drivers/ata/sata_svw.c +1 -2
@@ -341,12 +341,11 @@ static const struct ata_port_operations .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .scr_read = k2_sata_scr_read, .scr_write = k2_sata_scr_write,
drivers/ata/sata_sx4.c +1 -2
@@ -203,10 +203,9 @@ static const struct ata_port_operations .qc_issue = pdc20621_qc_issue_prot, .data_xfer = ata_data_xfer, .eng_timeout = pdc_eng_timeout, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .irq_clear = pdc20621_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = pdc_port_start, };
drivers/ata/sata_uli.c +1 -2
@@ -110,13 +110,12 @@ static const struct ata_port_operations .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .scr_read = uli_scr_read,
drivers/ata/sata_via.c +14 -13
@@ -74,7 +74,7 @@ enum {static int svia_init_one (struct pci_dev *pdev,const struct pci_device_id *ent);static u32 svia_scr_read (struct ata_port *ap,unsigned int sc_reg);static void svia_scr_write (struct ata_port *ap,unsigned int sc_reg,u32 val); -static void svia_noop_freeze (struct ata_port *ap); +static void svia_irq_off (struct ata_port *ap);static void vt6420_error_handler (struct ata_port *ap);static int vt6421_pata_cable_detect (struct ata_port *ap);static void vt6421_set_pio_mode (struct ata_port *ap,struct ata_device *adev);
@@ -139,13 +139,12 @@ static const struct ata_port_operations .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = svia_noop_freeze, - .thaw = ata_bmdma_thaw, .error_handler = vt6420_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = svia_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -172,14 +171,13 @@ static const struct ata_port_operations .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = vt6421_pata_cable_detect, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .port_start = ata_port_start,
@@ -203,14 +201,13 @@ static const struct ata_port_operations .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = ata_bmdma_freeze, - .thaw = ata_bmdma_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .cable_detect = ata_cable_sata, .irq_clear = ata_bmdma_irq_clear, .irq_on = ata_irq_on, + .irq_off = ata_irq_off, .irq_ack = ata_irq_ack, .scr_read = svia_scr_read,
@@ -263,13 +260,17 @@ static void svia_scr_write (struct ata_piowrite32 (val, ap->ioaddr.scr_addr + (4 * sc_reg)); } -static void svia_noop_freeze (struct ata_port *ap) +static void svia_irq_off (struct ata_port *ap) { -/* Some VIA controllers choke if ATA_NIEN is manipulated in -* certain way. Leave it alone and just clear pending IRQ. -*/ -ata_chk_status (ap); -ata_bmdma_irq_clear (ap); +if (0 ) { +/* Some VIA controllers choke if ATA_NIEN is manipulated in +* certain way. Leave it alone and just clear pending IRQ. +*/ +/* FIXME: http://bugzilla.kernel.org/show_bug.cgi?id=7415 */ +ata_chk_status (ap); +ata_bmdma_irq_clear (ap); + }else +ata_irq_off (ap); }/**
drivers/ata/sata_vsc.c +4 -5
@@ -115,7 +115,7 @@ static void vsc_sata_scr_write (struct a } -static void vsc_freeze (struct ata_port *ap) +static void vsc_irq_off (struct ata_port *ap) {void __iomem *mask_addr;
@@ -126,7 +126,7 @@ static void vsc_freeze(struct ata_port * } -static void vsc_thaw (struct ata_port *ap) +static void vsc_irq_on (struct ata_port *ap) {void __iomem *mask_addr;
@@ -329,12 +329,11 @@ static const struct ata_port_operations .qc_prep = ata_qc_prep, .qc_issue = ata_qc_issue_prot, .data_xfer = ata_data_xfer, - .freeze = vsc_freeze, - .thaw = vsc_thaw, .error_handler = ata_bmdma_error_handler, .post_internal_cmd = ata_bmdma_post_internal_cmd, .irq_clear = ata_bmdma_irq_clear, - .irq_on = ata_irq_on, + .irq_on = vsc_irq_on, + .irq_off = vsc_irq_off, .irq_ack = ata_irq_ack, .scr_read = vsc_sata_scr_read, .scr_write = vsc_sata_scr_write,
Re: [PATCH 5/7] libata: integrate freeze/thaw with irq_on/off
Hello,
Quoted 6 lines
drivers/ata/libata-sff.c +1
-1+void ata_irq_on (struct ata_port *ap) {struct ata_ioports *ioaddr = &ap->ioaddr; -u8 tmp; ap->ctl &= ~ATA_NIEN ;
drivers/ata/libata-sff.c line 62
Quoted 10 lines
drivers/ata/libata-sff.c +1
-3ap->last_ctl = ap->ctl;iowrite8 (ap->ctl, ioaddr->ctl_addr); - tmp =ata_wait_idle (ap); +ata_wait_idle (ap); ap->ops->irq_clear (ap); - -return tmp; }
Missing ata_chk_status() before clearing ATA_NIEN seems a bit dangerous to me.
Signature · 1 line
tejun
Re: [PATCH 5/7] libata: integrate freeze/thaw with irq_on/off
Quoted 15 lines · Tejun Heo
Hello,
Quoted 12 lines
+void
ata_irq_on(struct ata_port *ap){ struct ata_ioports *ioaddr = &ap->ioaddr;(quoted diff) +0
-1- u8 tmp;ap->ctl &= ~ATA_NIEN; ap->last_ctl = ap->ctl; iowrite8(ap->ctl, ioaddr->ctl_addr);(quoted diff) +1
-1- tmp = ata_wait_idle(ap); + ata_wait_idle(ap);
Quoted 9 lines
Quoted 4 lines
ap->ops->irq_clear(ap);drivers/ata/libata-sff.c +0
-2- -return tmp;}
Missing
ata_chk_status()before clearingATA_NIENseems a bit dangerous to me.
Will fix it in next revision. Thanks for the advice. --
albert
PATCH 6/7 libata: remove nIEN handling from ata_tf_load()
In reply to Albert LeeThe relevant bits in the ctl register are HOB, SRST and nIEN.
- HOB is only used by ata_tf_read().
- For SRST, soft reset is not the duty of tf_load.
- For nIEN, explicit irq_on()/irq_off and freeze()/thaw() are provided.
Remove the implicit nIEN handling from ata_tf_load() since EH/HSM now calls irq_on/irq_off explicitly. vsc_intr_mask_update() also removed since now unused.
---
The bitmasks used by vsc_intr_mask_update() are different to the bit masks in vsc_irq_on() and vsc_irq_off(). I don't know which one is more correct. Maybe we need more test and see if vsc_irq_on()/vsc_irq_off() works for turning irq on/off for polling pio.
drivers/ata/libata-sff.c +7 -5
@@ -143,11 +143,13 @@ void ata_tf_load(struct ata_port *ap, costruct ata_ioports *ioaddr = &ap->ioaddr;unsigned int is_addr = tf->flags &ATA_TFLAG_ISADDR ; -if (tf->ctl != ap->last_ctl) { -iowrite8 (tf->ctl, ioaddr->ctl_addr); - ap->last_ctl = tf->ctl; -ata_wait_idle (ap); - } +/* +* The relevant bits in the ctl register are HOB, SRST and nIEN. +* HOB is only used by ata_tf_read(). +* For SRST, soft reset is not the duty of tf_load. +* For nIEN, explicit ->irq_on() and ->irq_off are provided. +* That's why tf->ctl is ignored here. +*/ if (is_addr && (tf->flags &ATA_TFLAG_LBA48 )) {iowrite8 (tf->hob_feature, ioaddr->feature_addr);
drivers/ata/pata_scc.c +0 -6
@@ -271,12 +271,6 @@ static void scc_tf_load (struct ata_portstruct ata_ioports *ioaddr = &ap->ioaddr;unsigned int is_addr = tf->flags &ATA_TFLAG_ISADDR ; -if (tf->ctl != ap->last_ctl) { -out_be32 (ioaddr->ctl_addr, tf->ctl); - ap->last_ctl = tf->ctl; -ata_wait_idle (ap); - } -if (is_addr && (tf->flags &ATA_TFLAG_LBA48 )) {out_be32 (ioaddr->feature_addr, tf->hob_feature);out_be32 (ioaddr->nsect_addr, tf->hob_nsect);
drivers/ata/sata_svw.c +0 -5
@@ -125,11 +125,6 @@ static void k2_sata_tf_load(struct ata_pstruct ata_ioports *ioaddr = &ap->ioaddr;unsigned int is_addr = tf->flags &ATA_TFLAG_ISADDR ; -if (tf->ctl != ap->last_ctl) { -writeb (tf->ctl, ioaddr->ctl_addr); - ap->last_ctl = tf->ctl; -ata_wait_idle (ap); - }if (is_addr && (tf->flags &ATA_TFLAG_LBA48 )) {writew (tf->feature | (((u16 )tf->hob_feature) <<8 ), ioaddr->feature_addr);
drivers/ata/sata_vsc.c +6 -23
@@ -137,36 +137,19 @@ static void vsc_irq_on(struct ata_port * } -static void vsc_intr_mask_update (struct ata_port *ap,u8 ctl) -{ -void __iomem *mask_addr; -u8 mask; - - mask_addr = ap->host->iomap[VSC_MMIO_BAR ] + -VSC_SATA_INT_MASK_OFFSET + ap->port_no; - mask =readb (mask_addr); -if (ctl &ATA_NIEN ) - mask |=0x80 ; -else - mask &=0x7F ; -writeb (mask, mask_addr); -} - -static void vsc_sata_tf_load (struct ata_port *ap,const struct ata_taskfile *tf) {struct ata_ioports *ioaddr = &ap->ioaddr;unsigned int is_addr = tf->flags &ATA_TFLAG_ISADDR ;/* -* The only thing the ctl register is used for is SRST. -* That is not enabled or disabled via tf_load. -* However, if ATA_NIEN is changed, then we need to change the interrupt register. +* The relevant bits in the ctl register are HOB, SRST and nIEN. +* HOB is only used by ata_tf_read(). +* For SRST, soft reset is not the duty of tf_load. +* For nIEN, explicit ->irq_on() and ->irq_off are provided. +* That's why tf->ctl is ignored here. */ -if ((tf->ctl &ATA_NIEN ) != (ap->last_ctl &ATA_NIEN )) { - ap->last_ctl = tf->ctl; -vsc_intr_mask_update (ap, tf->ctl &ATA_NIEN ); - } +if (is_addr && (tf->flags &ATA_TFLAG_LBA48 )) {writew (tf->feature | (((u16 )tf->hob_feature) <<8 ), ioaddr->feature_addr);
PATCH 7/7 libata: remove ap->last_ctl
In reply to Albert LeeWith the previous changes made to tf_load(), ap->last_ctl is now unused. Remove it.
(The purpose of ap->last_ctl is to cache the last status of nIEN bit and hopefully avoid writing the Control register unnecessarily. However, the libata polling code always call irq_on() in ata_hsm_qc_complete() and such mechanism isn't much utilized.)
---
drivers/ata/libata-core.c +0 -1
@@ -5987,7 +5987,6 @@ struct ata_port *ata_port_alloc(struct a ap->hw_sata_spd_limit =UINT_MAX ; ap->active_tag =ATA_TAG_POISON ; - ap->last_ctl =0xFF ;#if defined(ATA_VERBOSE_DEBUG )/* turn on all debugging levels */
drivers/ata/libata-sff.c +0 -2
@@ -53,7 +53,6 @@ void ata_irq_on(struct ata_port *ap)struct ata_ioports *ioaddr = &ap->ioaddr; ap->ctl &= ~ATA_NIEN ; - ap->last_ctl = ap->ctl;iowrite8 (ap->ctl, ioaddr->ctl_addr);ata_wait_idle (ap);
@@ -76,7 +75,6 @@ void ata_irq_off(struct ata_port *ap)struct ata_ioports *ioaddr = &ap->ioaddr; ap->ctl |=ATA_NIEN ; - ap->last_ctl = ap->ctl;iowrite8 (ap->ctl, ioaddr->ctl_addr);
drivers/ata/pata_scc.c +0 -2
@@ -794,7 +794,6 @@ static void scc_irq_on (struct ata_portstruct ata_ioports *ioaddr = &ap->ioaddr; ap->ctl &= ~ATA_NIEN ; - ap->last_ctl = ap->ctl;out_be32 (ioaddr->ctl_addr, ap->ctl);ata_wait_idle (ap);
@@ -814,7 +813,6 @@ static void scc_irq_off (struct ata_portstruct ata_ioports *ioaddr = &ap->ioaddr; ap->ctl |=ATA_NIEN ; - ap->last_ctl = ap->ctl;out_be32 (ioaddr->ctl_addr, ap->ctl);
include/linux/libata.h +0 -1
@@ -507,7 +507,6 @@ struct ata_port {struct ata_ioports ioaddr;/* ATA cmd/ctl/dma register blocks */ u8 ctl;/* cache of ATA control register */ -u8 last_ctl;/* Cache last written value */ unsigned int pio_mask;unsigned int mwdma_mask;unsigned int udma_mask;
Re: [PATCH 7/7] libata: remove ap->last_ctl
Quoted 8 lines · Albert Lee
With the previous changes made to
tf_load(),ap->last_ctlis now unused. Remove it.(The purpose of
ap->last_ctlis to cache the last status of nIEN bit and hopefully avoid writing the Control register unnecessarily. However, the libata polling code always callirq_on()inata_hsm_qc_complete()and such mechanism isn't much utilized.)Signed-off-by Albert Lee <[email protected]>
Ack 6-7. Thanks for cleaning irq on/off up. Things should have been done this way from the beginning. Also, I think removing last_ctl caching (or whatever is left of it) should be okay. Only polling PIO path is affected and one or two more ioport accesses won't make any meaningful difference anyway.
Signature · 1 line
tejun