On Thu, Jul 28, 2005 at 05:53:50PM +0800, [EMAIL PROTECTED] wrote:
> Dear all,
>
> I'm using Ben's patch to S3C24XX USB host,
> http://www.mail-archive.com/[email protected]/msg36593.html.
>
> The port 1 of root hub works perfectly,
> but the port 2 is not responding to the device plugging.
>
> After inspecting on the patch, I have done some changes, but none seems
> works.
>
> First, I found an error at usb_hcd_s3c2410_probe(), where...
> s3c2410_usb_set_power(dev->dev.platform_data, 0, 1);
> s3c2410_usb_set_power(dev->dev.platform_data, 1, 1);
> aren't these...?
> s3c2410_usb_set_power(dev->dev.platform_data, 1, 1);
> s3c2410_usb_set_power(dev->dev.platform_data, 2, 1);
Nope, ports are numbered 0 and 1
> I also had my mach-smdk2410.c like this, ...
> static struct s3c2410_hcd_info smdk2410_usbcfg = {
> .port[0] = {
> .flags = S3C_HCDFLG_USED
> },
> .port[1] = {
> .flags = S3C_HCDFLG_USED
> },
> };
Not needed, the SMDK2410 has no usb port-power control or
over-current protection.
> But none of these changes makes my port 2 working,
> any idea?
The second usb port pins are software switchable between the
HOST and DEVICE controller. Does the bootloader leave the second
port disabled? Also, IIRC, the SMDK2410 has a hardware link
setting to change this as well.
The driver currently assumes that the machine code has set the
correct bit-settings in S3C2410_MISCCR, which the current
mach-smdk2410.c does not touch.
you may want to do the following:
s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST, S3C2410_MISCCR_USBHOST);
>
Thanks in advanced! :)
> Rudy 7/28
>
--
Ben ([EMAIL PROTECTED], http://www.fluff.org/)
'a smiley only costs 4 bytes'
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel