Hello,
I'm using Linux kernel version 2.4.1 and I think that I need a patch to
change "hc->hcca.foo" to "hc->hcca->foo" (I have read your e-mail
07/31/2000 about OHCI/Data Cache).
In fact when I try to apply ohci-0323 and 0324 I get as usb-ohci.c.rej:
***************
*** 12,19 ****
*
* History:
*
* 2001/03/21 td and dev/ed allocation uses new pci_pool API (db)
* 2001/03/07 hcca allocation uses pci_alloc_consistent (Steve
Longerbeam)
* 2000/09/26 fixed races in removing the private portion of the urb
* 2000/09/07 disable bulk and control lists when unlinking the last
* endpoint descriptor in order to avoid unrecoverable errors on
--- 12,22 ----
*
* History:
*
+ * 2001/03/24 pci_map_single (db)
+ * 2001/03/23 td/ed hashing to remove bus_to_virt (Steve Longerbeam)
* 2001/03/21 td and dev/ed allocation uses new pci_pool API (db)
* 2001/03/07 hcca allocation uses pci_alloc_consistent (Steve
Longerbeam)
+ *
* 2000/09/26 fixed races in removing the private portion of the urb
* 2000/09/07 disable bulk and control lists when unlinking the last
* endpoint descriptor in order to avoid unrecoverable errors on
***************
*** 908,916 ****
for (i = 0; i < ep_rev (6, interval); i += inter) {
inter = 1;
for (ed_p = &(ohci->hcca->int_table[ep_rev (5, i) +
int_branch]);
- (*ed_p != 0) && (((ed_t *) bus_to_virt (le32_to_cpup
(ed_p)))->int_interval >= interval);
- ed_p = &(((ed_t *) bus_to_virt (le32_to_cpup
(ed_p)))->hwNextED))
- inter = ep_rev (6, ((ed_t *) bus_to_virt
(le32_to_cpup
(ed_p)))->int_interval);
ed->hwNextED = *ed_p;
*ed_p = cpu_to_le32 (ed->dma);
}
--- 943,951 ----
for (i = 0; i < ep_rev (6, interval); i += inter) {
inter = 1;
for (ed_p = &(ohci->hcca->int_table[ep_rev (5, i) +
int_branch]);
+ (*ed_p != 0) && ((dma_to_ed (ohci, le32_to_cpup
(ed_p)))->int_interval >= interval);
+ ed_p = &((dma_to_ed (ohci, le32_to_cpup
+(ed_p)))->hwNextED))
+ inter = ep_rev (6, (dma_to_ed (ohci,
+le32_to_cpup
(ed_p)))->int_interval);
ed->hwNextED = *ed_p;
*ed_p = cpu_to_le32 (ed->dma);
}
In my kernel version, usb-ohci.c file has instead:
*
* History:
*
* 2000/09/26 fixed races in removing the private portion of the urb
* 2000/09/07 disable bulk and control lists when unlinking the last
* endpoint descriptor in order to avoid unrecoverable errors on
* the Lucent chips.
* 2000/08/29 use bandwidth claiming hooks (thanks Randy!), fix some
* urb unlink probs, indentation fixes
* 2000/08/11 various oops fixes mostly affecting iso and cleanup from
* device unplugs.
* 2000/06/28 use PCI hotplug framework, for better power management
* and for Cardbus support (David Brownell)
* 2000/earlier: fixes for NEC/Lucent chips; suspend/resume handling
* when the controller loses power; handle UE; cleanup; ...
*
int_branch = ed->int_branch;
interval = ed->int_interval;
for (i = 0; i < ep_rev (6, interval); i += inter) {
for (ed_p = &(ohci->hcca.int_table[ep_rev (5, i) +
int_branch]),
inter = 1;
(*ed_p != 0) && (*ed_p != ed->hwNextED);
ed_p = &(((ed_t *) bus_to_virt (le32_to_cpup
(ed_p)))->hwNextED),
inter = ep_rev (6, ((ed_t *) bus_to_virt (le32_to_cpup
(ed_p)))->int_interval)) {
if(((ed_t *) bus_to_virt (le32_to_cpup
(ed_p))) == ed) {
*ed_p = ed->hwNextED;
break;
}
}
Thanks for your help.
Best regards
Orazio Privitera.
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel