Skip to contentSkip to conversation

MIPS: Loongson64: Select ARCH_MIGHT_HAVE_PC_PARPORT

PATCH In review Huacai Chen 4 participants 6 messages Mar 1, 2018 – Mar 5, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 MIPS: Loongson64: Select ARCH_MIGHT_HAVE_PC_PARPORT

Commit a211a0820d3c8e7a ("MIPS: Push ARCH_MIGHT_HAVE_PC_PARPORT down to platform level") moves the global MIPS ARCH_MIGHT_HAVE_PC_PARPORT select down to various platforms, but doesn't add it to Loongson64 platforms which need it, so add the selects to these platforms too.

Fixes a211a0820d3c8e7a ("MIPS: Push ARCH_MIGHT_HAVE_PC_PARPORT down to platform level")
---
 arch/mips/loongson64/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/mips/loongson64/Kconfig +3 -0
index bc2fdbf..12812a8b 100644
@@ -7,6 +7,7 @@ choice
 config LEMOTE_FULOONG2E
 	bool "Lemote Fuloong(2e) mini-PC"
 	select ARCH_SPARSEMEM_ENABLE
+	select ARCH_MIGHT_HAVE_PC_PARPORT
 	select CEVT_R4K
 	select CSRC_R4K
 	select SYS_HAS_CPU_LOONGSON2E
@@ -33,6 +34,7 @@ config LEMOTE_FULOONG2E
 config LEMOTE_MACH2F
 	bool "Lemote Loongson 2F family machines"
 	select ARCH_SPARSEMEM_ENABLE
+	select ARCH_MIGHT_HAVE_PC_PARPORT
 	select BOARD_SCACHE
 	select BOOT_ELF32
 	select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
@@ -62,6 +64,7 @@ config LEMOTE_MACH2F
 config LOONGSON_MACH3X
 	bool "Generic Loongson 3 family machines"
 	select ARCH_SPARSEMEM_ENABLE
+	select ARCH_MIGHT_HAVE_PC_PARPORT
 	select GENERIC_ISA_DMA_SUPPORT_BROKEN
 	select BOOT_ELF32
 	select BOARD_SCACHE
Signature · 1 line
2.7.0
#1 lore raw

PATCH v2 2/2 MIPS: Loongson64: Select ARCH_MIGHT_HAVE_PC_SERIO

Commit 7a407aa5e0d3e587 ("MIPS: Push ARCH_MIGHT_HAVE_PC_SERIO down to platform level") moves the global MIPS ARCH_MIGHT_HAVE_PC_SERIO select down to various platforms, but doesn't add it to Loongson64 platforms which need it, so add the selects to these platforms too.

Fixes 7a407aa5e0d3e587 ("MIPS: Push ARCH_MIGHT_HAVE_PC_SERIO down to platform level")
---
 arch/mips/loongson64/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/mips/loongson64/Kconfig +3 -0
index 12812a8b..72af0c1 100644
@@ -8,6 +8,7 @@ config LEMOTE_FULOONG2E
 	bool "Lemote Fuloong(2e) mini-PC"
 	select ARCH_SPARSEMEM_ENABLE
 	select ARCH_MIGHT_HAVE_PC_PARPORT
+	select ARCH_MIGHT_HAVE_PC_SERIO
 	select CEVT_R4K
 	select CSRC_R4K
 	select SYS_HAS_CPU_LOONGSON2E
@@ -35,6 +36,7 @@ config LEMOTE_MACH2F
 	bool "Lemote Loongson 2F family machines"
 	select ARCH_SPARSEMEM_ENABLE
 	select ARCH_MIGHT_HAVE_PC_PARPORT
+	select ARCH_MIGHT_HAVE_PC_SERIO
 	select BOARD_SCACHE
 	select BOOT_ELF32
 	select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
@@ -65,6 +67,7 @@ config LOONGSON_MACH3X
 	bool "Generic Loongson 3 family machines"
 	select ARCH_SPARSEMEM_ENABLE
 	select ARCH_MIGHT_HAVE_PC_PARPORT
+	select ARCH_MIGHT_HAVE_PC_SERIO
 	select GENERIC_ISA_DMA_SUPPORT_BROKEN
 	select BOOT_ELF32
 	select BOARD_SCACHE
Signature · 1 line
2.7.0
#2 lore raw
In reply to Huacai Chen

arch/mips/loongson64/Kconfig choice · line 13

Quoted 12 lines · Huacai Chen
arch/mips/loongson64/Kconfig +1 -0
index bc2fdbf..12812a8b 100644
@@ -7,6 +7,7 @@ choice
 config LEMOTE_FULOONG2E
 	bool "Lemote Fuloong(2e) mini-PC"
 	select ARCH_SPARSEMEM_ENABLE
+	select ARCH_MIGHT_HAVE_PC_PARPORT
 	select CEVT_R4K
 	select CSRC_R4K
 	select SYS_HAS_CPU_LOONGSON2E

Hmm, I don't think the Fuloong(2e) machine has a parallel port connector.
The chipset may support the port, but with no external connection I think there's no point in enabling it. Or am I missing something?

Maciej

maintainer
#3 lore raw
Quoted 13 lines · 在 2018-03-02五的 12:07 +0000,Maciej W. Rozycki写道:
Quoted 11 lines · Huacai Chen
arch/mips/loongson64/Kconfig +1 -0
index bc2fdbf..12812a8b 100644
@@ -7,6 +7,7 @@ choice
 config LEMOTE_FULOONG2E
 	bool "Lemote Fuloong(2e) mini-PC"
 	select ARCH_SPARSEMEM_ENABLE
+	select ARCH_MIGHT_HAVE_PC_PARPORT
 	select CEVT_R4K
Quoted 8 lines

arch/mips/loongson64/Kconfig choice · line 13

Quoted 2 lines
arch/mips/loongson64/Kconfig +0 -0
 	select CSRC_R4K
 	select SYS_HAS_CPU_LOONGSON2E

Hmm, I don't think the Fuloong(2e) machine has a parallel port
connector.
The chipset may support the port, but with no external connection I think
there's no point in enabling it. Or am I missing something?

Thanks for your advice.
Some other Loongson-2E devices share the same kernel entry with Fuloong-2E.
And the 2E desktop PC has a parallel port. So we enable it for these devices.

Quoted 3 lines

Maciej

Signature · 1 line
Jiaxun Yang <[email protected]>
#4 lore raw
Quoted 10 lines · Jiaxun Yang
Quoted 5 lines

Hmm, I don't think the Fuloong(2e) machine has a parallel port
connector.
The chipset may support the port, but with no external connection I think
there's no point in enabling it. Or am I missing something?

Thanks for your advice.
Some other Loongson-2E devices share the same kernel entry with Fuloong-2E.
And the 2E desktop PC has a parallel port. So we enable it for these devices.

Ah, OK then, thanks for the clarification. Would you mind updating the
Kconfig description for LEMOTE_FULOONG2E to actually list the systems it covers then?

Maciej

#5 lore raw
In reply to Huacai Chen
Quoted 7 lines · Huacai Chen

Commit a211a0820d3c8e7a ("MIPS: Push ARCH_MIGHT_HAVE_PC_PARPORT down to platform level") moves the global MIPS ARCH_MIGHT_HAVE_PC_PARPORT select down to various platforms, but doesn't add it to Loongson64 platforms which need it, so add the selects to these platforms too.

Fixes a211a0820d3c8e7a ("MIPS: Push ARCH_MIGHT_HAVE_PC_PARPORT down to platform level")

Thanks, both patches applied for 4.16.

Cheers
James