Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63533
b: refs/heads/master
c: 6fdc99a
h: refs/heads/master
i:
  63531: ec881e1
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Aug 1, 2007
1 parent 718ed61 commit ce7e98c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbf0c89c80e47a2a132048dcded0dcc2a59c74ad
refs/heads/master: 6fdc99a224bd52020c602c3d4d57e5f8a75f6bb8
4 changes: 4 additions & 0 deletions trunk/drivers/ata/libata-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,10 @@ int ata_pci_init_bmdma(struct ata_host *host)
struct pci_dev *pdev = to_pci_dev(gdev);
int i, rc;

/* No BAR4 allocation: No DMA */
if (pci_resource_start(pdev, 4) == 0)
return 0;

/* TODO: If we get no DMA mask we should fall back to PIO */
rc = pci_set_dma_mask(pdev, ATA_DMA_MASK);
if (rc)
Expand Down

0 comments on commit ce7e98c

Please sign in to comment.