diff options
author | Jeff Garzik <jeff@garzik.org> | 2008-04-29 21:39:45 (GMT) |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-29 21:39:45 (GMT) |
commit | d7b5a23fc6e85456ed00a997ff2d925fb3f0dc52 (patch) | |
tree | 17107bfa9b920754bd811482116438d29d9aa289 /drivers | |
parent | 7663c1e2792a9662b23dec6e19bfcd3d55360b8f (diff) | |
download | linux-d7b5a23fc6e85456ed00a997ff2d925fb3f0dc52.tar.xz |
[libata] pata_atiixp: fix PIO timing data misprogramming
Use correct variable, achieve desired result...
Spotted by LKML/linux-ide poster whose name I lost (apologies!)
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/pata_atiixp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c index 78738fb..d7de7ba 100644 --- a/drivers/ata/pata_atiixp.c +++ b/drivers/ata/pata_atiixp.c @@ -88,8 +88,8 @@ static void atiixp_set_pio_timing(struct ata_port *ap, struct ata_device *adev, pci_write_config_word(pdev, ATIIXP_IDE_PIO_MODE, pio_mode_data); pci_read_config_word(pdev, ATIIXP_IDE_PIO_TIMING, &pio_timing_data); - pio_mode_data &= ~(0xFF << timing_shift); - pio_mode_data |= (pio_timings[pio] << timing_shift); + pio_timing_data &= ~(0xFF << timing_shift); + pio_timing_data |= (pio_timings[pio] << timing_shift); pci_write_config_word(pdev, ATIIXP_IDE_PIO_TIMING, pio_timing_data); } |