aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-core.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-03-05 03:55:58 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-05 11:09:42 -0500
commit208a9933bc7d71e7ad194a9ffbfbcd7878c48dfe (patch)
treee3aee404b45add338986a18031eecce2d97f5a27 /drivers/scsi/libata-core.c
parente653a1e6131d0a819288a2e2de654627233604e0 (diff)
[PATCH] libata: re-initialize parameters before configuring
In ata_dev_configure(), reinitialize parameters before configuring. This change is for revalidation and hotplug. As ata_dev_configure() can be entered multiple times, parameters need to be reinitialized. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r--drivers/scsi/libata-core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index b710fc480740..59828490a750 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1086,6 +1086,15 @@ static int ata_dev_configure(struct ata_port *ap, struct ata_device *dev)
1086 1086
1087 DPRINTK("ENTER, host %u, dev %u\n", ap->id, dev->devno); 1087 DPRINTK("ENTER, host %u, dev %u\n", ap->id, dev->devno);
1088 1088
1089 /* initialize to-be-configured parameters */
1090 dev->flags = 0;
1091 dev->max_sectors = 0;
1092 dev->cdb_len = 0;
1093 dev->n_sectors = 0;
1094 dev->cylinders = 0;
1095 dev->heads = 0;
1096 dev->sectors = 0;
1097
1089 /* 1098 /*
1090 * common ATA, ATAPI feature tests 1099 * common ATA, ATAPI feature tests
1091 */ 1100 */