C67x00 Driver IRQ Problem.

Robertson, Joseph M. joseph.robertson at sanmina-sci.com
Wed Aug 22 04:57:19 EST 2007


Hi all.

I got the driver registered and have spent some time tracking down a IRQ problem.
It just ignores me when it gets to 'request_irq' with a 'nobody cared' response.  
The memory appears right and the test IRQ of 3 is supposed to be correct.  
I never see the HCD driver load up, does that have to startup first?

I tried also waking the c67300 chip by writing a Interrupt Enable Reg (0xC00E) a value to enable the ints.  

Do I need a /dev/usb device tree of some kind?  I have a fixed dev tree since we are a embedded sys.

I added some printk messages to help us out...
Any helpful info would be much appreciated.
Kernel code is 2.6.17.3, much hacked and maligned by me.
I made a module of the c67x00, heres the load results.

Load Results -----
c67x00 init.<6>bus platform: add driver c67x00
before kset = bus->drivers.
c67x00 drv probing...
c67x00 drv get mem resource.
platform_get_resource, num resources=2.
dev->resource[0]=512
c67x00 drv get irq resource.
platform_get_resource, num resources=2.
dev->resource[0]=512
dev->resource[1]=1024
c67x00 drv get platform data.
c67x00 drv setup sies.
c67x00 c67x00.0: USB OTG controller, p:0x43e00000, v:0xc5058000, irq:3
irq 3: nobody cared (try booting with the "irqpoll" option)
Call Trace:
[C0F0FA50] [C0009BC0] show_stack+0x44/0x194 (unreliable)
[C0F0FA90] [C004A118] __report_bad_irq+0x34/0xac
[C0F0FAB0] [C004A268] note_interrupt+0xbc/0x13c
[C0F0FAE0] [C00498E8] __do_IRQ+0x1a8/0x1c0
[C0F0FB10] [C0007360] do_IRQ+0x48/0x78
[C0F0FB30] [C00033FC] ret_from_except+0x0/0x18
[C0F0FBF0] [C0F0FC90] 0xc0f0fc90
[C0F0FC20] [C00073F4] do_softirq+0x64/0x74
[C0F0FC40] [C0028358] irq_exit+0x60/0x64
[C0F0FC60] [C0007364] do_IRQ+0x4c/0x78
[C0F0FC80] [C00033FC] ret_from_except+0x0/0x18
[C0F0FD40] [C5058000] 0xc5058000
[C0F0FD70] [C0049EC0] request_irq+0x94/0xc8
[C0F0FDA0] [C50715B4] usb_c67x00_drv_probe+0x240/0x2f4 [c67x00]
[C0F0FDF0] [C0142124] platform_drv_probe+0x20/0x30
[C0F0FE00] [C013FA58] driver_probe_device+0x7c/0x110
[C0F0FE20] [C013EE70] bus_for_each_drv+0x74/0xa4
[C0F0FE60] [C013FB98] device_attach+0xa8/0xb8
[C0F0FE80] [C013F004] bus_add_device+0x34/0xa0
[C0F0FEA0] [C013D900] device_add+0x128/0x188
[C0F0FED0] [C0141EDC] platform_device_add+0xd4/0x194
[C0F0FF00] [C502D074] c67x00_init+0x74/0x118 [c67x00]
[C0F0FF20] [C00433A8] sys_init_module+0x188/0x240
[C0F0FF40] [C0002DB4] ret_from_syscall+0x0/0x3c
handlers:
[<c5071220>] (c67x00_irq+0x0/0x154 [c67x00])
Disabling IRQ #3
Badness in ll_recv_msg at drivers/usb/c67x00/c67x00-ll-hpi.c:246
Call Trace:
[C0F0FC50] [C0009BC0] show_stack+0x44/0x194 (unreliable)
[C0F0FC90] [C0003F64] check_bug_trap+0x84/0xac
[C0F0FCA0] [C0004130] program_check_exception+0x1a4/0x1f8
[C0F0FCC0] [C00033B0] ret_from_except_full+0x0/0x4c
[C0F0FD80] [C5072A6C] c67x00_ll_reset+0x84/0xe0 [c67x00]
[C0F0FDA0] [C50715FC] usb_c67x00_drv_probe+0x288/0x2f4 [c67x00]
[C0F0FDF0] [C0142124] platform_drv_probe+0x20/0x30
[C0F0FE00] [C013FA58] driver_probe_device+0x7c/0x110
[C0F0FE20] [C013EE70] bus_for_each_drv+0x74/0xa4
[C0F0FE60] [C013FB98] device_attach+0xa8/0xb8
[C0F0FE80] [C013F004] bus_add_device+0x34/0xa0
[C0F0FEA0] [C013D900] device_add+0x128/0x188
[C0F0FED0] [C0141EDC] platform_device_add+0xd4/0x194
[C0F0FF00] [C502D074] c67x00_init+0x74/0x118 [c67x00]
[C0F0FF20] [C00433A8] sys_init_module+0x188/0x240
[C0F0FF40] [C0002DB4] ret_from_syscall+0x0/0x3c
c67x00 c67x00.0: Device reset failed
c67x00: probe of c67x00.0 failed with error 65531
c67x00 udc init.
ECAU-9999:# 
End Load Results -----


Memory Check-----
ECAU-9999:# cat /proc/iomem 
40401003-40401022 : serial
40421003-40421022 : serial
43e00000-43e0000f : c67x00.0
End Memory CHeck------


Many Thanks,

Joe Robertson
Joseph.Robertson at sanmina-sci.com


CONFIDENTIALITY
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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070821/069bb6b2/attachment-0001.htm 


More information about the Linuxppc-embedded mailing list