diff options
author | Jeff Garzik <jeff@garzik.org> | 2008-04-29 17:39:45 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-29 17:39:45 -0400 |
commit | d7b5a23fc6e85456ed00a997ff2d925fb3f0dc52 (patch) | |
tree | 17107bfa9b920754bd811482116438d29d9aa289 /drivers/ata | |
parent | 7663c1e2792a9662b23dec6e19bfcd3d55360b8f (diff) | |
download | blackbird-op-linux-d7b5a23fc6e85456ed00a997ff2d925fb3f0dc52.tar.gz blackbird-op-linux-d7b5a23fc6e85456ed00a997ff2d925fb3f0dc52.zip |
[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/ata')
-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 78738fb4223b..d7de7baf58a8 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); } |