Re: [PATCH] pata_of_platform: fix no irq handling

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Sealey
Date: Monday, October 6, 2008 - 1:41 pm

There is a simple problem with the patch which is that an "IRQ 0" can and does
actually exist on a bunch of platforms, at least to the best of my knowledge.

Checking for -1 (which means for definite, no irq at all, because it is
totally unambiguous, as a -1 IRQ numbering is "impossible") is more correct.

The problem is the check against an unsigned value for interrupts (is there
any reason why you would need 4 billion interrupts possible instead of just
2 billion?) although I must say, the patch will work, and probably 99.9999999%
of people will never see a problem with it :)

-- 
Matt Sealey <matt@genesi-usa.com>
Genesi, Manager, Developer Relations

Anton Vorontsov wrote:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] pata_of_platform: fix no irq handling, Anton Vorontsov, (Mon Oct 6, 10:26 am)
Re: [PATCH] pata_of_platform: fix no irq handling, Matt Sealey, (Mon Oct 6, 1:41 pm)
Re: [PATCH] pata_of_platform: fix no irq handling, Anton Vorontsov, (Mon Oct 6, 2:32 pm)
Re: [PATCH] pata_of_platform: fix no irq handling, Tejun Heo, (Mon Oct 6, 6:30 pm)
Re: [PATCH] pata_of_platform: fix no irq handling, Wang Jian, (Tue Oct 7, 2:18 am)
Re: [PATCH] pata_of_platform: fix no irq handling, Anton Vorontsov, (Tue Oct 7, 2:26 am)
Re: [PATCH] pata_of_platform: fix no irq handling, Benjamin Herrenschmidt, (Tue Oct 7, 3:04 am)
Re: [PATCH] pata_of_platform: fix no irq handling, David Woodhouse, (Wed Oct 8, 1:40 am)
Re: [PATCH] pata_of_platform: fix no irq handling, Geert Uytterhoeven, (Wed Oct 8, 2:59 am)
Re: [PATCH] pata_of_platform: fix no irq handling, Paul Mundt, (Fri Oct 10, 10:55 am)
Re: [PATCH] pata_of_platform: fix no irq handling, Tejun Heo, (Sun Oct 12, 11:56 pm)
Re: [PATCH] pata_of_platform: fix no irq handling, Jeff Garzik, (Mon Oct 13, 6:27 am)
Re: [PATCH] pata_of_platform: fix no irq handling, Tejun Heo, (Mon Oct 13, 6:53 am)
Re: I have returned!, Alan Cox, (Mon Oct 13, 7:02 am)
[PATCH] fusion: remove dead mpt lan code, Alan Cox, (Mon Oct 13, 7:04 am)
[PATCH] mptsas: remove pointless null check, Alan Cox, (Mon Oct 13, 7:05 am)
Re: [PATCH] mptsas: remove pointless null check, James Bottomley, (Mon Oct 13, 7:22 am)
Re: [PATCH] mptsas: remove pointless null check, Alan Cox, (Mon Oct 13, 7:37 am)
Re: [PATCH] pata_of_platform: fix no irq handling, Benjamin Herrenschmidt, (Mon Oct 13, 4:27 pm)
Re: I have returned!, Jeff Garzik, (Thu Oct 16, 2:40 am)