diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:55 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:55 -0400 |
commit | 342cdb6d4739cee430efc3eafcacd1605db66036 (patch) | |
tree | f09b53028467a2f69ad6f0242f8d3b74b32a5af4 /drivers/ide/pci/cmd640.c | |
parent | 328dcbb63657ebbb2dd26982fa9e1fa9e04b6fa2 (diff) |
ide: make ide_get_best_pio_mode() print info if overriding PIO mode
* Print info about overriding PIO mode in ide_get_best_pio_mode().
* Remove info about overriding PIO mode from cmd64{0,x} host drivers.
* Remove no longer needed ide_pio_data_t.overridden field.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/cmd640.c')
-rw-r--r-- | drivers/ide/pci/cmd640.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/ide/pci/cmd640.c b/drivers/ide/pci/cmd640.c index dc43f009acab..dff21597e643 100644 --- a/drivers/ide/pci/cmd640.c +++ b/drivers/ide/pci/cmd640.c | |||
@@ -665,13 +665,12 @@ static void cmd640_tune_drive (ide_drive_t *drive, u8 mode_wanted) | |||
665 | (void) ide_get_best_pio_mode (drive, mode_wanted, 5, &d); | 665 | (void) ide_get_best_pio_mode (drive, mode_wanted, 5, &d); |
666 | cmd640_set_mode (index, d.pio_mode, d.cycle_time); | 666 | cmd640_set_mode (index, d.pio_mode, d.cycle_time); |
667 | 667 | ||
668 | printk ("%s: selected cmd640 PIO mode%d (%dns)%s", | 668 | printk("%s: selected cmd640 PIO mode%d (%dns)", |
669 | drive->name, | 669 | drive->name, |
670 | d.pio_mode, | 670 | d.pio_mode, |
671 | d.cycle_time, | 671 | d.cycle_time); |
672 | d.overridden ? " (overriding vendor mode)" : ""); | 672 | |
673 | display_clocks(index); | 673 | display_clocks(index); |
674 | return; | ||
675 | } | 674 | } |
676 | 675 | ||
677 | #endif /* CONFIG_BLK_DEV_CMD640_ENHANCED */ | 676 | #endif /* CONFIG_BLK_DEV_CMD640_ENHANCED */ |