* [PATCH 1/3 v3] sparc32: added CONFIG_PCIC_PCI Kconfig setting
@ 2011-05-24 7:04 Daniel Hellstrom
2011-05-24 22:47 ` Julian Calaby
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Daniel Hellstrom @ 2011-05-24 7:04 UTC (permalink / raw)
To: sparclinux
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
---
arch/sparc/Kconfig | 5 +++++
arch/sparc/include/asm/pcic.h | 2 +-
arch/sparc/kernel/Makefile | 2 +-
arch/sparc/kernel/entry.S | 4 ++--
4 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 63a027c..c06bd34 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -536,6 +536,11 @@ config PCI_DOMAINS
config PCI_SYSCALL
def_bool PCI
+config PCIC_PCI
+ bool
+ depends on PCI && !SPARC_LEON
+ default y
+
source "drivers/pci/Kconfig"
source "drivers/pcmcia/Kconfig"
diff --git a/arch/sparc/include/asm/pcic.h b/arch/sparc/include/asm/pcic.h
index 7eb5d78..6676cbc 100644
--- a/arch/sparc/include/asm/pcic.h
+++ b/arch/sparc/include/asm/pcic.h
@@ -29,7 +29,7 @@ struct linux_pcic {
int pcic_imdim;
};
-#ifdef CONFIG_PCI
+#ifdef CONFIG_PCIC_PCI
extern int pcic_present(void);
extern int pcic_probe(void);
extern void pci_time_init(void);
diff --git a/arch/sparc/kernel/Makefile b/arch/sparc/kernel/Makefile
index 9cff270..59a2256 100644
--- a/arch/sparc/kernel/Makefile
+++ b/arch/sparc/kernel/Makefile
@@ -73,7 +73,7 @@ obj-$(CONFIG_SPARC64_SMP) += cpumap.o
obj-y += dma.o
-obj-$(CONFIG_SPARC32_PCI) += pcic.o
+obj-$(CONFIG_PCIC_PCI) += pcic.o
obj-$(CONFIG_SMP) += trampoline_$(BITS).o smp_$(BITS).o
obj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o leon_smp.o
diff --git a/arch/sparc/kernel/entry.S b/arch/sparc/kernel/entry.S
index 8341963..6b9a321 100644
--- a/arch/sparc/kernel/entry.S
+++ b/arch/sparc/kernel/entry.S
@@ -1604,7 +1604,7 @@ restore_current:
retl
nop
-#ifdef CONFIG_PCI
+#ifdef CONFIG_PCIC_PCI
#include <asm/pcic.h>
.align 4
@@ -1650,7 +1650,7 @@ pcic_nmi_trap_patch:
rd %psr, %l0
.word 0
-#endif /* CONFIG_PCI */
+#endif /* CONFIG_PCI_PCIC */
.globl flushw_all
flushw_all:
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/3 v3] sparc32: added CONFIG_PCIC_PCI Kconfig setting
2011-05-24 7:04 [PATCH 1/3 v3] sparc32: added CONFIG_PCIC_PCI Kconfig setting Daniel Hellstrom
@ 2011-05-24 22:47 ` Julian Calaby
2011-06-02 21:36 ` David Miller
2011-06-03 7:27 ` Daniel Hellstrom
2 siblings, 0 replies; 4+ messages in thread
From: Julian Calaby @ 2011-05-24 22:47 UTC (permalink / raw)
To: sparclinux
Daniel,
Minor nit, only if you end up re-spinning this again.
On Tue, May 24, 2011 at 17:04, Daniel Hellstrom <daniel@gaisler.com> wrote:
> Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
> ---
> arch/sparc/Kconfig | 5 +++++
> arch/sparc/include/asm/pcic.h | 2 +-
> arch/sparc/kernel/Makefile | 2 +-
> arch/sparc/kernel/entry.S | 4 ++--
> 4 files changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/arch/sparc/kernel/entry.S b/arch/sparc/kernel/entry.S
> index 8341963..6b9a321 100644
> --- a/arch/sparc/kernel/entry.S
> +++ b/arch/sparc/kernel/entry.S
> @@ -1650,7 +1650,7 @@ pcic_nmi_trap_patch:
> rd %psr, %l0
> .word 0
>
> -#endif /* CONFIG_PCI */
> +#endif /* CONFIG_PCI_PCIC */
This should be CONFIG_PCIC_PCI
Otherwise it looks good to me.
Thanks,
--
Julian Calaby
Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3 v3] sparc32: added CONFIG_PCIC_PCI Kconfig setting
2011-05-24 7:04 [PATCH 1/3 v3] sparc32: added CONFIG_PCIC_PCI Kconfig setting Daniel Hellstrom
2011-05-24 22:47 ` Julian Calaby
@ 2011-06-02 21:36 ` David Miller
2011-06-03 7:27 ` Daniel Hellstrom
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-06-02 21:36 UTC (permalink / raw)
To: sparclinux
From: Julian Calaby <julian.calaby@gmail.com>
Date: Wed, 25 May 2011 08:47:41 +1000
> On Tue, May 24, 2011 at 17:04, Daniel Hellstrom <daniel@gaisler.com> wrote:
>> @@ -1650,7 +1650,7 @@ pcic_nmi_trap_patch:
>> rd %psr, %l0
>> .word 0
>>
>> -#endif /* CONFIG_PCI */
>> +#endif /* CONFIG_PCI_PCIC */
>
> This should be CONFIG_PCIC_PCI
I fixed this up when applying the patches.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3 v3] sparc32: added CONFIG_PCIC_PCI Kconfig setting
2011-05-24 7:04 [PATCH 1/3 v3] sparc32: added CONFIG_PCIC_PCI Kconfig setting Daniel Hellstrom
2011-05-24 22:47 ` Julian Calaby
2011-06-02 21:36 ` David Miller
@ 2011-06-03 7:27 ` Daniel Hellstrom
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Hellstrom @ 2011-06-03 7:27 UTC (permalink / raw)
To: sparclinux
David Miller wrote:
>From: Julian Calaby <julian.calaby@gmail.com>
>Date: Wed, 25 May 2011 08:47:41 +1000
>
>
>
>>On Tue, May 24, 2011 at 17:04, Daniel Hellstrom <daniel@gaisler.com> wrote:
>>
>>
>>>@@ -1650,7 +1650,7 @@ pcic_nmi_trap_patch:
>>> rd %psr, %l0
>>> .word 0
>>>
>>>-#endif /* CONFIG_PCI */
>>>+#endif /* CONFIG_PCI_PCIC */
>>>
>>>
>>This should be CONFIG_PCIC_PCI
>>
>>
>
>I fixed this up when applying the patches.
>
>
Thanks all for the previous comments and for finding and fixing this
particular problem. Thanks for applying the patches.
Best Regards,
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-03 7:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 7:04 [PATCH 1/3 v3] sparc32: added CONFIG_PCIC_PCI Kconfig setting Daniel Hellstrom
2011-05-24 22:47 ` Julian Calaby
2011-06-02 21:36 ` David Miller
2011-06-03 7:27 ` Daniel Hellstrom
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.