* PNP: set IRQ index in sysfs "set irq" interface
@ 2008-05-01 21:39 Bjorn Helgaas
2008-05-04 13:47 ` Rene Herman
0 siblings, 1 reply; 4+ messages in thread
From: Bjorn Helgaas @ 2008-05-01 21:39 UTC (permalink / raw)
To: Len Brown
Cc: linux-acpi, linux-kernel, Adam Belay, Adam M Belay, Li Shaohua,
Matthieu Castet, Thomas Renninger, Rene Herman, Jaroslav Kysela,
Andrew Morton
We have to set the ISAPNP register index when setting an IRQ via
the sysfs interface. We already do it for IO, MEM, and DMA
resources; I just missed the IRQ one.
This needs to be in 2.6.26.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Index: work10/drivers/pnp/interface.c
===================================================================
--- work10.orig/drivers/pnp/interface.c 2008-05-01 15:26:28.000000000 -0600
+++ work10/drivers/pnp/interface.c 2008-05-01 15:26:39.000000000 -0600
@@ -424,7 +424,7 @@
start = simple_strtoul(buf, &buf, 0);
pnp_res = pnp_add_irq_resource(dev, start, 0);
if (pnp_res)
- nirq++;
+ pnp_res->index = nirq++;
continue;
}
if (!strnicmp(buf, "dma", 3)) {
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: PNP: set IRQ index in sysfs "set irq" interface
2008-05-01 21:39 PNP: set IRQ index in sysfs "set irq" interface Bjorn Helgaas
@ 2008-05-04 13:47 ` Rene Herman
2008-05-05 15:00 ` Bjorn Helgaas
0 siblings, 1 reply; 4+ messages in thread
From: Rene Herman @ 2008-05-04 13:47 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Len Brown, linux-acpi, linux-kernel, Adam Belay, Adam M Belay,
Li Shaohua, Matthieu Castet, Thomas Renninger, Jaroslav Kysela,
Andrew Morton
On 01-05-08 23:39, Bjorn Helgaas wrote:
> We have to set the ISAPNP register index when setting an IRQ via
> the sysfs interface. We already do it for IO, MEM, and DMA
> resources; I just missed the IRQ one.
>
> This needs to be in 2.6.26.
>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
>
> Index: work10/drivers/pnp/interface.c
> ===================================================================
> --- work10.orig/drivers/pnp/interface.c 2008-05-01 15:26:28.000000000 -0600
> +++ work10/drivers/pnp/interface.c 2008-05-01 15:26:39.000000000 -0600
> @@ -424,7 +424,7 @@
> start = simple_strtoul(buf, &buf, 0);
> pnp_res = pnp_add_irq_resource(dev, start, 0);
> if (pnp_res)
> - nirq++;
> + pnp_res->index = nirq++;
> continue;
> }
> if (!strnicmp(buf, "dma", 3)) {
Ha, my ack wasn't on that one...
But what I wanted to ask -- judging from my .gitconfig (as opposed to my
memory) I haven't done anything special to get the -p (--show-c-function)
functionality from git-diff. Do you do anything special to not get it? It
really helps when looking at patches.
Rene.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: PNP: set IRQ index in sysfs "set irq" interface
2008-05-04 13:47 ` Rene Herman
@ 2008-05-05 15:00 ` Bjorn Helgaas
2008-05-06 14:29 ` Thomas Renninger
0 siblings, 1 reply; 4+ messages in thread
From: Bjorn Helgaas @ 2008-05-05 15:00 UTC (permalink / raw)
To: Rene Herman
Cc: Len Brown, linux-acpi, linux-kernel, Adam Belay, Adam M Belay,
Li Shaohua, Matthieu Castet, Thomas Renninger, Jaroslav Kysela,
Andrew Morton
On Sunday 04 May 2008 07:47:45 am Rene Herman wrote:
> But what I wanted to ask -- judging from my .gitconfig (as opposed to my
> memory) I haven't done anything special to get the -p (--show-c-function)
> functionality from git-diff. Do you do anything special to not get it? It
> really helps when looking at patches.
I agree, "--show-c-function" is often handy. I use quilt, and it
looks like it doesn't add that option by default. I added a ~/.quiltrc
containing 'QUILT_DIFF_OPTS="-p"', and it looks like that will do the
trick. Thanks for the tip.
Bjorn
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PNP: set IRQ index in sysfs "set irq" interface
2008-05-05 15:00 ` Bjorn Helgaas
@ 2008-05-06 14:29 ` Thomas Renninger
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Renninger @ 2008-05-06 14:29 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Rene Herman, Len Brown, linux-acpi, linux-kernel, Adam Belay,
Adam M Belay, Li Shaohua, Matthieu Castet, Jaroslav Kysela,
Andrew Morton
On Mon, 2008-05-05 at 09:00 -0600, Bjorn Helgaas wrote:
> On Sunday 04 May 2008 07:47:45 am Rene Herman wrote:
> > But what I wanted to ask -- judging from my .gitconfig (as opposed to my
> > memory) I haven't done anything special to get the -p (--show-c-function)
> > functionality from git-diff. Do you do anything special to not get it? It
> > really helps when looking at patches.
>
> I agree, "--show-c-function" is often handy. I use quilt, and it
> looks like it doesn't add that option by default. I added a ~/.quiltrc
> containing 'QUILT_DIFF_OPTS="-p"', and it looks like that will do the
> trick. Thanks for the tip.
QUILT_REFRESH_ARGS="--diffstat"
in .quiltrc
is also nice if you have huger patches.
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-06 12:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-01 21:39 PNP: set IRQ index in sysfs "set irq" interface Bjorn Helgaas
2008-05-04 13:47 ` Rene Herman
2008-05-05 15:00 ` Bjorn Helgaas
2008-05-06 14:29 ` Thomas Renninger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox