<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>C67x00 Driver IRQ Problem.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi all.<BR>
<BR>
I got the driver registered and have spent some time tracking down a IRQ problem.<BR>
It just ignores me when it gets to 'request_irq' with a 'nobody cared' response.&nbsp;<BR>
The memory appears right and the test IRQ of 3 is supposed to be correct.&nbsp;<BR>
I never see the HCD driver load up, does that have to startup first?<BR>
<BR>
I tried also waking the c67300 chip by writing a Interrupt Enable Reg (0xC00E) a value to enable the ints.&nbsp;<BR>
<BR>
Do I need a /dev/usb device tree of some kind?&nbsp; I have a fixed dev tree since we are a embedded sys.<BR>
<BR>
I added some printk messages to help us out...<BR>
Any helpful info would be much appreciated.<BR>
Kernel code is 2.6.17.3, much hacked and maligned by me.<BR>
I made a module of the c67x00, heres the load results.<BR>
<BR>
Load Results -----<BR>
c67x00 init.&lt;6&gt;bus platform: add driver c67x00<BR>
before kset = bus-&gt;drivers.<BR>
c67x00 drv probing...<BR>
c67x00 drv get mem resource.<BR>
platform_get_resource, num resources=2.<BR>
dev-&gt;resource[0]=512<BR>
c67x00 drv get irq resource.<BR>
platform_get_resource, num resources=2.<BR>
dev-&gt;resource[0]=512<BR>
dev-&gt;resource[1]=1024<BR>
c67x00 drv get platform data.<BR>
c67x00 drv setup sies.<BR>
c67x00 c67x00.0: USB OTG controller, p:0x43e00000, v:0xc5058000, irq:3<BR>
irq 3: nobody cared (try booting with the &quot;irqpoll&quot; option)<BR>
Call Trace:<BR>
[C0F0FA50] [C0009BC0] show_stack+0x44/0x194 (unreliable)<BR>
[C0F0FA90] [C004A118] __report_bad_irq+0x34/0xac<BR>
[C0F0FAB0] [C004A268] note_interrupt+0xbc/0x13c<BR>
[C0F0FAE0] [C00498E8] __do_IRQ+0x1a8/0x1c0<BR>
[C0F0FB10] [C0007360] do_IRQ+0x48/0x78<BR>
[C0F0FB30] [C00033FC] ret_from_except+0x0/0x18<BR>
[C0F0FBF0] [C0F0FC90] 0xc0f0fc90<BR>
[C0F0FC20] [C00073F4] do_softirq+0x64/0x74<BR>
[C0F0FC40] [C0028358] irq_exit+0x60/0x64<BR>
[C0F0FC60] [C0007364] do_IRQ+0x4c/0x78<BR>
[C0F0FC80] [C00033FC] ret_from_except+0x0/0x18<BR>
[C0F0FD40] [C5058000] 0xc5058000<BR>
[C0F0FD70] [C0049EC0] request_irq+0x94/0xc8<BR>
[C0F0FDA0] [C50715B4] usb_c67x00_drv_probe+0x240/0x2f4 [c67x00]<BR>
[C0F0FDF0] [C0142124] platform_drv_probe+0x20/0x30<BR>
[C0F0FE00] [C013FA58] driver_probe_device+0x7c/0x110<BR>
[C0F0FE20] [C013EE70] bus_for_each_drv+0x74/0xa4<BR>
[C0F0FE60] [C013FB98] device_attach+0xa8/0xb8<BR>
[C0F0FE80] [C013F004] bus_add_device+0x34/0xa0<BR>
[C0F0FEA0] [C013D900] device_add+0x128/0x188<BR>
[C0F0FED0] [C0141EDC] platform_device_add+0xd4/0x194<BR>
[C0F0FF00] [C502D074] c67x00_init+0x74/0x118 [c67x00]<BR>
[C0F0FF20] [C00433A8] sys_init_module+0x188/0x240<BR>
[C0F0FF40] [C0002DB4] ret_from_syscall+0x0/0x3c<BR>
handlers:<BR>
[&lt;c5071220&gt;] (c67x00_irq+0x0/0x154 [c67x00])<BR>
Disabling IRQ #3<BR>
Badness in ll_recv_msg at drivers/usb/c67x00/c67x00-ll-hpi.c:246<BR>
Call Trace:<BR>
[C0F0FC50] [C0009BC0] show_stack+0x44/0x194 (unreliable)<BR>
[C0F0FC90] [C0003F64] check_bug_trap+0x84/0xac<BR>
[C0F0FCA0] [C0004130] program_check_exception+0x1a4/0x1f8<BR>
[C0F0FCC0] [C00033B0] ret_from_except_full+0x0/0x4c<BR>
[C0F0FD80] [C5072A6C] c67x00_ll_reset+0x84/0xe0 [c67x00]<BR>
[C0F0FDA0] [C50715FC] usb_c67x00_drv_probe+0x288/0x2f4 [c67x00]<BR>
[C0F0FDF0] [C0142124] platform_drv_probe+0x20/0x30<BR>
[C0F0FE00] [C013FA58] driver_probe_device+0x7c/0x110<BR>
[C0F0FE20] [C013EE70] bus_for_each_drv+0x74/0xa4<BR>
[C0F0FE60] [C013FB98] device_attach+0xa8/0xb8<BR>
[C0F0FE80] [C013F004] bus_add_device+0x34/0xa0<BR>
[C0F0FEA0] [C013D900] device_add+0x128/0x188<BR>
[C0F0FED0] [C0141EDC] platform_device_add+0xd4/0x194<BR>
[C0F0FF00] [C502D074] c67x00_init+0x74/0x118 [c67x00]<BR>
[C0F0FF20] [C00433A8] sys_init_module+0x188/0x240<BR>
[C0F0FF40] [C0002DB4] ret_from_syscall+0x0/0x3c<BR>
c67x00 c67x00.0: Device reset failed<BR>
c67x00: probe of c67x00.0 failed with error 65531<BR>
c67x00 udc init.<BR>
ECAU-9999:#<BR>
End Load Results -----<BR>
<BR>
<BR>
Memory Check-----<BR>
ECAU-9999:# cat /proc/iomem<BR>
40401003-40401022 : serial<BR>
40421003-40421022 : serial<BR>
43e00000-43e0000f : c67x00.0<BR>
End Memory CHeck------<BR>
<BR>
<BR>
Many Thanks,<BR>
<BR>
Joe Robertson<BR>
Joseph.Robertson@sanmina-sci.com<BR>
<BR>
</FONT>
</P>


<BR>
CONFIDENTIALITY<BR>
This e-mail message and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail message, you are hereby notified that any dissemination, distribution or copying of this e-mail message, and any attachments thereto, is strictly prohibited.  If you have received this e-mail message in error, please immediately notify the sender and permanently delete the original and any copies of this email and any prints thereof.<BR>
ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL IS NOT INTENDED AS A SUBSTITUTE FOR A WRITING.  Notwithstanding the Uniform Electronic Transactions Act or the applicability of any other law of similar substance and effect, absent an express statement to the contrary hereinabove, this e-mail message its contents, and any attachments hereto are not intended to represent an offer or acceptance to enter into a contract and are not otherwise intended to bind the sender, Sanmina-SCI Corporation (or any of its subsidiaries), or any other person or entity.<BR>
</BODY>
</HTML>