Skip to content

Commit

Permalink
[PATCH] sil24: implement tf_read callback
Browse files Browse the repository at this point in the history
 Hello, guys.

 This patch implements ->tf_read callback for sil24.  It didn't use to
be necessary but new ata_gen_fixed_sense now makes use of ->tf_read
callback.  This patch is taken from Edward Falk's driver.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Oct 6, 2005
1 parent 6a575fa commit 7f726d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/scsi/sata_sil24.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ static u8 sil24_check_status(struct ata_port *ap);
static u8 sil24_check_err(struct ata_port *ap);
static u32 sil24_scr_read(struct ata_port *ap, unsigned sc_reg);
static void sil24_scr_write(struct ata_port *ap, unsigned sc_reg, u32 val);
static void sil24_tf_read(struct ata_port *ap, struct ata_taskfile *tf);
static void sil24_phy_reset(struct ata_port *ap);
static void sil24_qc_prep(struct ata_queued_cmd *qc);
static int sil24_qc_issue(struct ata_queued_cmd *qc);
Expand Down Expand Up @@ -280,6 +281,8 @@ static struct ata_port_operations sil24_ops = {
.check_err = sil24_check_err,
.dev_select = ata_noop_dev_select,

.tf_read = sil24_tf_read,

.phy_reset = sil24_phy_reset,

.qc_prep = sil24_qc_prep,
Expand Down Expand Up @@ -372,6 +375,12 @@ static void sil24_scr_write(struct ata_port *ap, unsigned sc_reg, u32 val)
}
}

static void sil24_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
{
struct sil24_port_priv *pp = ap->private_data;
*tf = pp->tf;
}

static void sil24_phy_reset(struct ata_port *ap)
{
__sata_phy_reset(ap);
Expand Down

0 comments on commit 7f726d1

Please sign in to comment.