public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Commit "[PATCH] USB: Always do usb-handoff" breaks my powerbook
@ 2005-10-31  5:23 Paul Mackerras
  2005-11-01  0:16 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Paul Mackerras @ 2005-10-31  5:23 UTC (permalink / raw)
  To: Alan Stern, linux-usb-devel, linux-kernel

My G4 powerbook gets a machine check on boot as a result of commit
478a3bab8c87a9ba4a4ba338314e32bb0c378e62.  Putting a return at the
start of quirk_usb_early_handoff fixes it.

The code in quirk_usb_handoff_ohci looks rather bogus in that it
doesn't do pci_enable_device before trying to access the device.

Paul.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: [linux-usb-devel] Re: Commit "[PATCH] USB: Always do usb-handoff" breaks my powerbook
@ 2005-11-02  4:21 Aleksey Gorelov
  0 siblings, 0 replies; 16+ messages in thread
From: Aleksey Gorelov @ 2005-11-02  4:21 UTC (permalink / raw)
  To: Dmitry Torokhov, linux-kernel
  Cc: David Brownell, Benjamin Herrenschmidt, linux-usb-devel,
	Paul Mackerras, Alan Stern

 

>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org 
>[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of 
>Dmitry Torokhov
>Sent: Monday, October 31, 2005 7:40 PM
>To: linux-kernel@vger.kernel.org
>Cc: David Brownell; Benjamin Herrenschmidt; 
>linux-usb-devel@lists.sourceforge.net; Paul Mackerras; Alan Stern
>Subject: Re: [linux-usb-devel] Re: Commit "[PATCH] USB: Always 
>do usb-handoff" breaks my powerbook
>
>On Monday 31 October 2005 22:09, David Brownell wrote:
>> > > > I'm not sure it's legal to do pci_enable_device() from 
>within a pci
>> > > > quirk anyway. I really wonder what that code is doing 
>in the quirks, I
>> > > > don't think it's the right place, but I may be wrong.
>> > > 
>> > > Erm, what "code is doing" what, that you mean ??
>> > 
>> > What _That_ code is doing in the quirks... shouldn't it be in the
>> > {U,O,E}HCI drivers instead ?
>> 
>> Not for PCI.  Vojtech, this is your cue to explain some of 
>how late handoff
>> borks the input layer, as observed by SuSE on way too many 
>BIOS/hardware combos
>> for me to remember ... :)
>> 
>
>Not Vojtech, but here is goes... Not everyone has USB compiled in and
>even then I think USB is registered after serio. So when we probe for
>i8042 BIOS still has its dirty hands on USB controllers and pretends
>that they are in fact PS/2 devices. Crazy stuff like that... That's
>why we can't keep that code in HCI drivers. 

It is even worse in some cases, especially when USB host controller shares 
interrupt with other PCI devices. I've seen systems which have just been 
swamped by interrupts if shared device driver enables IRQ before HCD starts...

Aleks.

>
>-- 
>Dmitry
>-
>To unsubscribe from this list: send the line "unsubscribe 
>linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-11-02  4:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-31  5:23 Commit "[PATCH] USB: Always do usb-handoff" breaks my powerbook Paul Mackerras
2005-11-01  0:16 ` Benjamin Herrenschmidt
2005-11-01  1:41   ` [linux-usb-devel] " David Brownell
2005-11-01  2:41     ` Benjamin Herrenschmidt
2005-11-01  3:09       ` David Brownell
2005-11-01  3:30         ` Benjamin Herrenschmidt
2005-11-01  4:17           ` David Brownell
2005-11-01  4:52             ` Paul Mackerras
2005-11-01  5:08               ` Benjamin Herrenschmidt
2005-11-01  9:28           ` Alan Cox
2005-11-01 13:40             ` Glenn Maynard
2005-11-01 21:09             ` Benjamin Herrenschmidt
2005-11-01  3:39         ` Dmitry Torokhov
2005-11-01  4:06         ` Kyle Moffett
2005-11-01  4:39           ` David Brownell
  -- strict thread matches above, loose matches on Subject: below --
2005-11-02  4:21 Aleksey Gorelov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox