Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21860
b: refs/heads/master
c: ba70d06
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Feb 20, 2006
1 parent 57bdfcc commit 0798ee1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49016aca2e54c64f08c31d5512dfd8d35f934c58
refs/heads/master: ba70d0614728892b86b2be2f7eae0c696b436461
42 changes: 0 additions & 42 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@

#include "libata.h"

static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev);
static unsigned int ata_dev_init_params(struct ata_port *ap,
struct ata_device *dev);
static void ata_set_mode(struct ata_port *ap);
Expand Down Expand Up @@ -2534,47 +2533,6 @@ static void ata_dev_set_xfermode(struct ata_port *ap, struct ata_device *dev)
DPRINTK("EXIT\n");
}

/**
* ata_dev_reread_id - Reread the device identify device info
* @ap: port where the device is
* @dev: device to reread the identify device info
*
* LOCKING:
*/

static void ata_dev_reread_id(struct ata_port *ap, struct ata_device *dev)
{
struct ata_taskfile tf;

ata_tf_init(ap, &tf, dev->devno);

if (dev->class == ATA_DEV_ATA) {
tf.command = ATA_CMD_ID_ATA;
DPRINTK("do ATA identify\n");
} else {
tf.command = ATA_CMD_ID_ATAPI;
DPRINTK("do ATAPI identify\n");
}

tf.flags |= ATA_TFLAG_DEVICE;
tf.protocol = ATA_PROT_PIO;

if (ata_exec_internal(ap, dev, &tf, DMA_FROM_DEVICE,
dev->id, sizeof(dev->id)))
goto err_out;

swap_buf_le16(dev->id, ATA_ID_WORDS);

ata_dump_id(dev->id);

DPRINTK("EXIT\n");

return;
err_out:
printk(KERN_ERR "ata%u: failed to reread ID, disabled\n", ap->id);
ata_port_disable(ap);
}

/**
* ata_dev_init_params - Issue INIT DEV PARAMS command
* @ap: Port associated with device @dev
Expand Down

0 comments on commit 0798ee1

Please sign in to comment.