Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-22 Thread Greg KH
On Fri, Jun 22, 2007 at 10:12:55AM -0700, Kok, Auke wrote: > > Grant Grundler wrote: > > On Sat, Jun 09, 2007 at 01:12:21PM -0700, Auke Kok wrote: > >> Since the PCI bus class and revision are in the same dword, we > >> can fill in both in the same read. > >> > >> Other non-x86 arches use

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-22 Thread Kok, Auke
Grant Grundler wrote: On Sat, Jun 09, 2007 at 01:12:21PM -0700, Auke Kok wrote: Since the PCI bus class and revision are in the same dword, we can fill in both in the same read. Other non-x86 arches use different methods to fill in these values, make sure to adjust those too. Yeah, this

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-22 Thread Kok, Auke
Grant Grundler wrote: On Sat, Jun 09, 2007 at 01:12:21PM -0700, Auke Kok wrote: Since the PCI bus class and revision are in the same dword, we can fill in both in the same read. Other non-x86 arches use different methods to fill in these values, make sure to adjust those too. Yeah, this

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-22 Thread Greg KH
On Fri, Jun 22, 2007 at 10:12:55AM -0700, Kok, Auke wrote: Grant Grundler wrote: On Sat, Jun 09, 2007 at 01:12:21PM -0700, Auke Kok wrote: Since the PCI bus class and revision are in the same dword, we can fill in both in the same read. Other non-x86 arches use different methods to

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-11 Thread Michael Ellerman
On Sun, 2007-06-10 at 14:17 +0200, Segher Boessenkool wrote: > >> + dev->revision = get_int_prop(node, "revision-id", 0); > > > > It's not clear to me in the spec if nodes are required to have the > > "revision-id" property. > > It is required for every PCI node. Yep. I was reading the wrong

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-11 Thread Michael Ellerman
On Sun, 2007-06-10 at 14:17 +0200, Segher Boessenkool wrote: + dev-revision = get_int_prop(node, revision-id, 0); It's not clear to me in the spec if nodes are required to have the revision-id property. It is required for every PCI node. Yep. I was reading the wrong spec :) cheers

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-10 Thread Segher Boessenkool
+ dev->revision = get_int_prop(node, "revision-id", 0); It's not clear to me in the spec if nodes are required to have the "revision-id" property. It is required for every PCI node. I guess 0 is a safe default though. As good as any -- that is, no default is save. 0 should be "good

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-10 Thread Michael Ellerman
On Sat, 2007-06-09 at 13:12 -0700, Auke Kok wrote: > Since the PCI bus class and revision are in the same dword, we > can fill in both in the same read. > > Other non-x86 arches use different methods to fill in these values, > make sure to adjust those too. > > Signed-off-by: Auke Kok <[EMAIL

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-10 Thread Michael Ellerman
On Sat, 2007-06-09 at 13:12 -0700, Auke Kok wrote: Since the PCI bus class and revision are in the same dword, we can fill in both in the same read. Other non-x86 arches use different methods to fill in these values, make sure to adjust those too. Signed-off-by: Auke Kok [EMAIL PROTECTED]

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-10 Thread Segher Boessenkool
+ dev-revision = get_int_prop(node, revision-id, 0); It's not clear to me in the spec if nodes are required to have the revision-id property. It is required for every PCI node. I guess 0 is a safe default though. As good as any -- that is, no default is save. 0 should be good

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-09 Thread Grant Grundler
On Sat, Jun 09, 2007 at 01:12:21PM -0700, Auke Kok wrote: > Since the PCI bus class and revision are in the same dword, we > can fill in both in the same read. > > Other non-x86 arches use different methods to fill in these values, > make sure to adjust those too. Yeah, this looks good to me. I

[PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-09 Thread Auke Kok
Since the PCI bus class and revision are in the same dword, we can fill in both in the same read. Other non-x86 arches use different methods to fill in these values, make sure to adjust those too. Signed-off-by: Auke Kok <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci_64.c |2 ++

[PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-09 Thread Auke Kok
Since the PCI bus class and revision are in the same dword, we can fill in both in the same read. Other non-x86 arches use different methods to fill in these values, make sure to adjust those too. Signed-off-by: Auke Kok [EMAIL PROTECTED] --- arch/powerpc/kernel/pci_64.c |2 ++

Re: [PATCH] PCI: also read revision ID for sparc64, ppc, read class at the same time

2007-06-09 Thread Grant Grundler
On Sat, Jun 09, 2007 at 01:12:21PM -0700, Auke Kok wrote: Since the PCI bus class and revision are in the same dword, we can fill in both in the same read. Other non-x86 arches use different methods to fill in these values, make sure to adjust those too. Yeah, this looks good to me. I