Skip to content

Commit

Permalink
pata_hpt37x: Fix HPT374 detection
Browse files Browse the repository at this point in the history
Bug #9261

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alan-Cox authored and Linus Torvalds committed Dec 19, 2007
1 parent fcbe6e9 commit f941b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/pata_hpt37x.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static int hpt374_pre_reset(struct ata_link *link, unsigned long deadline)
pci_write_config_word(pdev, mcrbase + 2, mcr3 | 0x8000);
pci_read_config_byte(pdev, 0x5A, &ata66);
/* Reset TCBLID/FCBLID to output */
pci_write_config_word(pdev, 0x52, mcr3);
pci_write_config_word(pdev, mcrbase + 2, mcr3);

if (ata66 & (2 >> ap->port_no))
ap->cbl = ATA_CBL_PATA40;
Expand Down

0 comments on commit f941b16

Please sign in to comment.