Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185094
b: refs/heads/master
c: 1c1517e
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Feb 19, 2010
1 parent 80b3493 commit 2732fba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b677532b971276f48e82578b4d829fb4382e7b41
refs/heads/master: 1c1517efe173599ca2f1526ce7a04521cd424a9f
13 changes: 8 additions & 5 deletions trunk/drivers/firewire/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1817,13 +1817,14 @@ static u64 ohci_get_bus_time(struct fw_card *card)
c2 = reg_read(ohci, OHCI1394_IsochronousCycleTimer);
} else {
/*
* VIA controllers have two bugs when updating the iso cycle
* timer register:
* 1) When the lowest six bits are wrapping around to zero,
* Some controllers exhibit one or more of the following bugs
* when updating the iso cycle timer register:
* - When the lowest six bits are wrapping around to zero,
* a read that happens at the same time will return garbage
* in the lowest ten bits.
* 2) When the cycleOffset field wraps around to zero, the
* - When the cycleOffset field wraps around to zero, the
* cycleCount field is not incremented for about 60 ns.
* - Occasionally, the entire register reads zero.
*
* To catch these, we read the register three times and ensure
* that the difference between each two consecutive reads is
Expand Down Expand Up @@ -2542,7 +2543,9 @@ static int __devinit pci_probe(struct pci_dev *dev,
#endif
ohci->bus_reset_packet_quirk = dev->vendor == PCI_VENDOR_ID_TI;

ohci->iso_cycle_timer_quirk = dev->vendor == PCI_VENDOR_ID_VIA;
ohci->iso_cycle_timer_quirk = dev->vendor == PCI_VENDOR_ID_AL ||
dev->vendor == PCI_VENDOR_ID_NEC ||
dev->vendor == PCI_VENDOR_ID_VIA;

ar_context_init(&ohci->ar_request_ctx, ohci,
OHCI1394_AsReqRcvContextControlSet);
Expand Down

0 comments on commit 2732fba

Please sign in to comment.