Hello David,
I have to use Linux kernel version 2.4.1 for my sh architecture.
So I have tried to apply your patchs to it. First I have added to
usb-ohci.c file hcca allocation with pci_alloc_consistent (I don't
know if this is a correct procedure but ,in this way, patchs application
doesn'give any fails).
But for my architecture there is a problem with pci_alloc_consistent:
void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
dma_addr_t * dma_handle)
{
void *ret;
int gfp = GFP_ATOMIC;
printk("BUG: pci_alloc_consistent() called - not yet
supported\n");
/* We ALWAYS need DMA memory on the overdrive hardware,
* due to it's extreme wierdness
* Need to flush the cache here as well, since the memory
* can still be seen through the cache!
*/
gfp |= GFP_DMA;
ret = (void *) __get_free_pages(gfp, get_order(size));
if (ret != NULL) {
memset(ret, 0, size);
*dma_handle = virt_to_bus(ret);
}
return ret;
}
When I run I get:
.
.
.
.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xb0010000, IRQ 2
usb-ohci.c: usb-00:03.0, OPTi Inc. 82C861
BUG: pci_alloc_consistent() called - not yet supported
usb.c: new USB bus registered, assigned bus number 1
BbUG: pci_alloc_cnsistent() called - not yet supported
Product: USB OHCI Root Hub
SerialNumber: b0010000
hub.c: USB hub found
hub.c: 2 ports detected
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
T:CP: Hash tablesonfigured (established 2048 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem).
Freeing unused ker nel memory: 20 freed
hub.c: USB new device connect on bus1/1, assigned device number 2
BUG: pci_alloc_consistent() called - not yet supported
INIT: version 2.77 booting
usb_control/bulk_msg: timeout
usb-ohci.c: unlink URB timeout
usb.c: USB device not accepting new address=2 (error=-110)
hsub.c: USB new dice connect on bus1/1, assigned device number 3
INIT: Entering runlevel: 3
sh-2.03# usb_control/bulk_msg: timeout
usb-ohci.c: unlink URB timeout
usb.c: USB device not accepting new address=3 (error=-110)
Thanks for your help
Best regards
orazio.
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel