"david-b/OU=internet/DD.RFC-822=david-b"@[EMAIL PROTECTED]
wrote:
>
> The transfer/setup problem probably indicates that your pci_map_single
> code (which you had to write for the SH processor, as I recall) is not
> behaving correctly.
>
I want to clarify better the problem that I have with transfer and
setup:
In hub.c there are several functions that call usb_control_msg with the
data parameter allocated in memory not visible from pci side.
For example in the following usb_hub_configure function we call
usb_get_hub_status with the parameter hubstatus allocated in a memory
region that is not behind pci side.
If I don't allocate hubstatus in a memory region visible from pci side
when usb_get_hub_status calls usb_control_msg we have a wrong address
for data( in usb.h data will be used to set the urb->transfer_buffer
needed for td).
For my architecture the right memory region start at b7000000 address
from cpu side and 17000000 address from pci side.This is the only memory
region visible from pci bus.
static int usb_hub_configure(struct usb_hub *hub, struct
usb_endpoint_descriptor *endpoint)
{
struct usb_hub_status hubstatus;
.
.
.
.
ret = usb_get_hub_status(dev, hubstatus);
.
.
}
static int usb_get_hub_status(struct usb_device *dev, void *data)
{
return usb_control_msg(dev, usb_rcvctrlpipe(dev, 0),
USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_HUB, 0, 0,
data, sizeof(struct usb_hub_status), HZ);
}
> Sounds like you may not be using the correct version of the pci_pool
> code, or there's some problem caused by other changes you've made.
> The pre5 code should behave OK, modulo that problem Paulus just
> reported (maybe related to an urb timeout mixup).
>
I have used the pcipool-0323 patch that I found in your 23 Mar 2001
e-mail: PATCHES:usb with ..........
I think that is correct (I also used the ohci-0323 patch).
> - Dave
>
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