|
|
Subscribe / Log in / New account

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

From:  Alan Cox <alan-AT-lxorguk.ukuu.org.uk>
To:  Dave Martin <dave.martin-AT-linaro.org>
Subject:  Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver
Date:  Fri, 2 Dec 2011 23:22:43 +0000
Message-ID:  <20111202232243.6af6f1e2@lxorguk.ukuu.org.uk>
Cc:  Anton Vorontsov <cbouatmailru-AT-gmail.com>, Stephen Rothwell <sfr-AT-canb.auug.org.au>, Andrew Morton <akpm-AT-linux-foundation.org>, devicetree-discuss-AT-lists.ozlabs.org, LKML <linux-kernel-AT-vger.kernel.org>, linux-ide-AT-vger.kernel.org, Randy Dunlap <rdunlap-AT-xenotime.net>, linux-next-AT-vger.kernel.org, Ingo Molnar <mingo-AT-elte.hu>, Linus Torvalds <torvalds-AT-linux-foundation.org>, Jeff Garzik <jgarzik-AT-redhat.com>
Archive‑link:  Article

> This is now broken on ARM where, for good or bad, NO_IRQ currently is
> used and is -1.

Good.

ARM developers have been told to change this for several years. The nice
approach hasn't worked, the patient approach hasn't worked so now finally
ARM is going to be dragged kicking and screaming into doing the work
everyone else did several years ago.

I have so little sympathy over this that you'll need a quantum physicist
to measure it.

> Half-removing NO_IRQ is going to be problematic, though...
> I really don't care whether the "no irq" value is 0 or -1, but it is
> abundantly clear that choosing different values to mean the same thing
> on opposite sides of an interface does not work.

You've had years to fix it. If I were you I'd delete NO_IRQ from your
tree, type make and get it done. It's not even a big job to clean it out.

At that point various other drivers will also start working properly on
ARM because they use 0 for polled mode.

Alan



to post comments


Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds