Re: DWC3 role switch cause IRQ request failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 09, 2013 at 03:16:20PM +0000, Wang, Yu Y wrote:
> > On Fri, Aug 09, 2013 at 01:34:09PM +0000, Wang, Yu Y wrote:
> > > > On Wed, Aug 07, 2013 at 12:03:34PM +0000, Wang, Yu Y wrote:
> > > > > Hi Balbi,
> > > > >
> > > > > Because dwc3 driver request_threaded_irq with flags IRQF_ONESHOT
> > > > > and IRQF_SHARED.
> > > > > But xHCI driver will not set IRQF_ONESHOT. Then will met IRQ
> > > > > request failed if use same IRQ number.
> > > > >
> > > > >
> > > > > <4>[    1.019248] Call Trace:
> > > > > <4>[    1.019270]  [<c18c9f0f>] dump_stack+0x16/0x18
> > > > > <4>[    1.019292]  [<c18c723c>] __schedule_bug+0x65/0x77
> > > > > <4>[    1.019313]  [<c18cf48d>] __schedule+0x7ad/0x830
> > > > > <4>[    1.019335]  [<c18b8080>] ? rest_init+0xc0/0xc0
> > > > > <4>[    1.019358]  [<c1204b02>] ? printk_address+0x32/0x40
> > > > > <4>[    1.019380]  [<c1293ae0>] ? __module_text_address+0x10/0x60
> > > > > <4>[    1.019402]  [<c12991fb>] ? is_module_text_address+0x2b/0x50
> > > > > <4>[    1.019424]  [<c125707f>] ? __kernel_text_address+0x4f/0x70
> > > > > <4>[    1.019444]  [<c18cf583>] schedule+0x23/0x60
> > > > > <4>[    1.019466]  [<c18cc765>] schedule_timeout+0x125/0x1f0
> > > > > <4>[    1.019488]  [<c18ce66b>] ? wait_for_completion+0x2b/0xe0
> > > > > <4>[    1.019509]  [<c18ce6d8>] ? wait_for_completion+0x98/0xe0
> > > > > <4>[    1.019530]  [<c18ce6df>] wait_for_completion+0x9f/0xe0
> > > > > <4>[    1.019551]  [<c12699f0>] ? try_to_wake_up+0x280/0x280
> > > > > <4>[    1.019572]  [<c1259fb1>] kthread_stop+0x41/0x100
> > > > > <4>[    1.019595]  [<c12a8256>] __setup_irq+0xd6/0x460
> > > > > <4>[    1.019617]  [<c1641520>] ?
> > > > dwc3_gadget_set_selfpowered+0x60/0x60
> > > > > <4>[    1.019639]  [<c12a8682>] request_threaded_irq+0xa2/0x120
> > > > > <4>[    1.019660]  [<c16437f0>] ?
> > > > dwc3_gadget_reset_interrupt+0x1a0/0x1a0
> > > > > <4>[    1.019681]  [<c1642c54>] dwc3_gadget_start+0x1a4/0x1f0
> > > > > <4>[    1.019703]  [<c166ff47>] udc_bind_to_driver+0x57/0x100
> > > > > <4>[    1.019724]  [<c1670481>] usb_gadget_probe_driver+0xa1/0xe0
> > > > > <4>[    1.019745]  [<c153c618>] ? device_create_file+0x38/0xb0
> > > > > <4>[    1.019766]  [<c167142f>] usb_composite_probe+0x6f/0x90
> > > > > <4>[    1.019788]  [<c1c762c5>] init+0x147/0x19f
> > > > > <4>[    1.019809]  [<c1c7617e>] ? acmmod_init+0xf/0xf
> > > > > <4>[    1.019829]  [<c12001aa>] do_one_initcall+0xba/0x170
> > > > > <4>[    1.019853]  [<c1c3fb32>] kernel_init_freeable+0x119/0x1b8
> > > > > <4>[    1.019875]  [<c1c3f4dc>] ? do_early_param+0x7a/0x7a
> > > > > <4>[    1.019896]  [<c18b8090>] kernel_init+0x10/0xd0
> > > > > <4>[    1.019917]  [<c18d17f7>] ret_from_kernel_thread+0x1b/0x28
> > > > > <4>[    1.019937]  [<c18b8080>] ? rest_init+0xc0/0xc0
> > > > > <3>[    1.020082] dwc3 dwc3.0.auto: failed to request irq #34 --> -16
> > > > >
> > > > > This is one known issue or new issue?
> > > >
> > > > I have already removed IRQF_ONESHOT, it'll be on v3.12
> > > >
> > >
> > > [Yu:] Thanks balbi. Can you please share the patch link?
> > 
> > http://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/commit/?h=next&id=e8
> > adfc30ff9282a728fd8b666b6418308164c415
> > 
> > as usual, it's in my 'next' branch. you really need to fix your mailer btw, I got
> > many copies of this same message.
> 
> [Yu:] Thanks balbi. Don't know the reason. I send the email to you, and always
> get send failed response. So I tried more times. Sorry about that.
> 
> BTW, Where can I find your git server link? I want to clone it to get latest code base.

on git.kernel.org, in the link above, click on 'summary' and scroll down
to the end of the page.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux