login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
5
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY supports OLPC
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy.Dunlap <rdunlap@...>
To: Andres Salomon <dilinger@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <mingo@...>, H. Peter Anvin <hpa@...>, <tglx@...>, <rmh@...>
Subject:
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY supports OLPC
Date: Thursday, June 5, 2008 - 4:07 pm
On Thu, 5 Jun 2008, Andres Salomon wrote:
quoted text
> Previously, one would have to specifically choose CONFIG_OLPC and > CONFIG_PCI_GOOLPC in order to enable PCI_OLPC. That doesn't really > work for distro kernels, so this patch allows one to choose > CONFIG_OLPC and CONFIG_PCI_GOANY in order to build in OLPC support in > a generic kernel (as requested by Robert Millan). > > This also moves GOOLPC before GOANY in the menuconfig list.
Please say why... (for above)
quoted text
> Finally, make pci_access_init return early if we detect OLPC hardware. > There's no need to continue probing stuff, and pci_pcbios_init > specifically trashes our settings (we didn't run into that before > because PCI_GOANY wasn't supported). > > It would be great if we could sneak this in for 2.6.26.. *cough* :) > > Signed-off-by: Andres Salomon <dilinger@debian.org> > --- > arch/x86/Kconfig | 11 +++++------ > arch/x86/pci/init.c | 3 ++- > arch/x86/pci/olpc.c | 5 +++-- > arch/x86/pci/pci.h | 2 +- > 4 files changed, 11 insertions(+), 10 deletions(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index dcbec34..52e18e6 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1508,13 +1508,13 @@ config PCI_GOMMCONFIG > config PCI_GODIRECT > bool "Direct" > > -config PCI_GOANY > - bool "Any" > - > config PCI_GOOLPC > bool "OLPC" > depends on OLPC > > +config PCI_GOANY > + bool "Any" > + > endchoice > > config PCI_BIOS > @@ -1531,9 +1531,8 @@ config PCI_MMCONFIG > depends on X86_32 && PCI && ACPI && (PCI_GOMMCONFIG || PCI_GOANY) > > config PCI_OLPC > - bool > - depends on PCI && PCI_GOOLPC > - default y > + def_bool y > + depends on PCI && OLPC && (PCI_GOOLPC || PCI_GOANY) > > config PCI_DOMAINS > def_bool y > diff --git a/arch/x86/pci/init.c b/arch/x86/pci/init.c > index e70b9c5..b821f44 100644 > --- a/arch/x86/pci/init.c > +++ b/arch/x86/pci/init.c > @@ -15,7 +15,8 @@ static __init int pci_access_init(void) > pci_mmcfg_early_init(); > > #ifdef CONFIG_PCI_OLPC > - pci_olpc_init(); > + if (!pci_olpc_init()) > + return 0; /* skip additional checks if it's an XO */ > #endif > #ifdef CONFIG_PCI_BIOS > pci_pcbios_init(); > diff --git a/arch/x86/pci/olpc.c b/arch/x86/pci/olpc.c > index 5e76365..e11e9e8 100644 > --- a/arch/x86/pci/olpc.c > +++ b/arch/x86/pci/olpc.c > @@ -302,12 +302,13 @@ static struct pci_raw_ops pci_olpc_conf = { > .write = pci_olpc_write, > }; > > -void __init pci_olpc_init(void) > +int __init pci_olpc_init(void) > { > if (!machine_is_olpc() || olpc_has_vsa()) > - return; > + return -ENODEV; > > printk(KERN_INFO "PCI: Using configuration type OLPC\n"); > raw_pci_ops = &pci_olpc_conf; > is_lx = is_geode_lx(); > + return 0; > } > diff --git a/arch/x86/pci/pci.h b/arch/x86/pci/pci.h > index f3972b1..720c4c5 100644 > --- a/arch/x86/pci/pci.h > +++ b/arch/x86/pci/pci.h > @@ -101,7 +101,7 @@ extern struct pci_raw_ops pci_direct_conf1; > extern int pci_direct_probe(void); > extern void pci_direct_init(int type); > extern void pci_pcbios_init(void); > -extern void pci_olpc_init(void); > +extern int pci_olpc_init(void); > > /* pci-mmconfig.c */ > >
-- ~Randy --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY suppor...
, Andres Salomon
, (Thu Jun 5, 3:29 pm)
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY su...
, Pavel Machek
, (Fri Jun 6, 7:05 am)
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY su...
, Andres Salomon
, (Fri Jun 6, 8:46 am)
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY su...
, Robert Millan
, (Fri Jun 6, 9:09 am)
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY su...
, Randy.Dunlap
, (Thu Jun 5, 4:07 pm)
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY su...
, Andres Salomon
, (Thu Jun 5, 4:27 pm)
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY su...
, Andrew Morton
, (Thu Jun 5, 3:42 pm)
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY su...
, Thomas Gleixner
, (Thu Jun 5, 4:49 pm)
Re: [PATCH] OLPC: pci: fix up PCI stuff so that PCI_GOANY su...
, Jesse Barnes
, (Thu Jun 5, 4:34 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Linus Torvalds
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Linus Torvalds
Re: [GIT]: Networking
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
617 guests
online.
Syndicate