ide: fix handling of unexpected IRQs vs request_irq()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 23 Jun 2009 10:43:00 +0000 (03:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2009 07:32:30 +0000 (00:32 -0700)
commitffc36c7610731115c77700dcc53901920361c235
treec300ea91a72c166c6e9d10a6526b29514d3956ce
parente01698aed04811b9a9c4f8d54b73cb182757063d
ide: fix handling of unexpected IRQs vs request_irq()

Add ide_host_enable_irqs() helper and use it in ide_host_register()
before registering ports.  Then remove no longer needed IRQ unmasking
from in init_irq().

This should fix the problem with "screaming" shared IRQ on the first
port (after request_irq() call while we have the unexpected IRQ pending
on the second port) which was uncovered by my rework of the serialized
interfaces support.

Reported-by: Frans Pop <elendil@planet.nl>
Tested-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-probe.c