aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_mv.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-30 01:58:18 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-10-30 01:58:18 -0500
commitf0612bbc41f65f5a684f69d714a1a17a6f0f40c5 (patch)
tree8c070070bb355843cfa4635643e9da7c2c4cd44a /drivers/scsi/sata_mv.c
parentb0c4e148bd591629749d02a8fbc8d81c26d548cf (diff)
parent81cfb8864c73230eb1c37753aba517db15cf4d8f (diff)
Merge branch 'upstream'
Diffstat (limited to 'drivers/scsi/sata_mv.c')
-rw-r--r--drivers/scsi/sata_mv.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index 1d6d0c9e76f6..ad4808ef71d4 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -258,7 +258,6 @@ struct mv_host_priv {
258static void mv_irq_clear(struct ata_port *ap); 258static void mv_irq_clear(struct ata_port *ap);
259static u32 mv_scr_read(struct ata_port *ap, unsigned int sc_reg_in); 259static u32 mv_scr_read(struct ata_port *ap, unsigned int sc_reg_in);
260static void mv_scr_write(struct ata_port *ap, unsigned int sc_reg_in, u32 val); 260static void mv_scr_write(struct ata_port *ap, unsigned int sc_reg_in, u32 val);
261static u8 mv_check_err(struct ata_port *ap);
262static void mv_phy_reset(struct ata_port *ap); 261static void mv_phy_reset(struct ata_port *ap);
263static void mv_host_stop(struct ata_host_set *host_set); 262static void mv_host_stop(struct ata_host_set *host_set);
264static int mv_port_start(struct ata_port *ap); 263static int mv_port_start(struct ata_port *ap);
@@ -296,7 +295,6 @@ static const struct ata_port_operations mv_ops = {
296 .tf_load = ata_tf_load, 295 .tf_load = ata_tf_load,
297 .tf_read = ata_tf_read, 296 .tf_read = ata_tf_read,
298 .check_status = ata_check_status, 297 .check_status = ata_check_status,
299 .check_err = mv_check_err,
300 .exec_command = ata_exec_command, 298 .exec_command = ata_exec_command,
301 .dev_select = ata_std_dev_select, 299 .dev_select = ata_std_dev_select,
302 300
@@ -1186,22 +1184,6 @@ static irqreturn_t mv_interrupt(int irq, void *dev_instance,
1186} 1184}
1187 1185
1188/** 1186/**
1189 * mv_check_err - Return the error shadow register to caller.
1190 * @ap: ATA channel to manipulate
1191 *
1192 * Marvell requires DMA to be stopped before accessing shadow
1193 * registers. So we do that, then return the needed register.
1194 *
1195 * LOCKING:
1196 * Inherited from caller. FIXME: protect mv_stop_dma with lock?
1197 */
1198static u8 mv_check_err(struct ata_port *ap)
1199{
1200 mv_stop_dma(ap); /* can't read shadow regs if DMA on */
1201 return readb((void __iomem *) ap->ioaddr.error_addr);
1202}
1203
1204/**
1205 * mv_phy_reset - Perform eDMA reset followed by COMRESET 1187 * mv_phy_reset - Perform eDMA reset followed by COMRESET
1206 * @ap: ATA channel to manipulate 1188 * @ap: ATA channel to manipulate
1207 * 1189 *