Re: OHCI driver grabs IRQ too early.
Brought to you by:
aeb,
bencollins
From: Sebastien R. <Seb...@sy...> - 2000-05-14 02:08:44
|
>>>>> "Daniel" == Daniel Kobras <dan...@st...> writes: Daniel> Hi Sebastien! The OHCI irq handler uses reg_read() to determine Daniel> whether it has to service an interrupt. reg_read() in turn relies on ohci-> registers containing the controllers remapped MMIO Daniel> space. add_card() however requests the irq long before the ioremap(), Daniel> thus leaving a window open where we might access bogus memory Daniel> locations. The race should only occur if the irq line is shared with Daniel> other devices. Patch below that moves request_irq() to the very end of Daniel> add_card(). Thanks for the patch. Any luck with the SONY chip ? -- Sebastien Rougeaux RSISE, The Australian National University |