Skip to contentSkip to conversation

hw: Restrict PCMCIA to ARM target

PATCH Applied Philippe Mathieu-Daudé 4 participants 10 messages Apr 24, 2021 – Apr 30, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

cover hw: Restrict PCMCIA to ARM target

Only a pair of ARM PXA machines requires the PCMCIA type. Complete the Kconfig dependencies to only build the PCMCIA related devices when required.

Philippe Mathieu-Daudé (3):
hw/arm/pxa2xx: Declare PCMCIA bus with Kconfig hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA hw/pcmcia: Do not register PCMCIA type if not required

 hw/arm/Kconfig        | 1 +
 hw/ide/Kconfig        | 1 +
 hw/pcmcia/meson.build | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
2.26.3
#1 lore raw

PATCH 1/3 hw/arm/pxa2xx: Declare PCMCIA bus with Kconfig

The Intel XScale PXA chipsets provide a PCMCIA controller, which expose a PCMCIA (IDE) bus. Express this dependency using the Kconfig 'select' expression.

---
 hw/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -0
index 8c37cf00da7..b887f6a5b17 100644
@@ -142,6 +142,7 @@ config PXA2XX
     select SD
     select SSI
     select USB_OHCI
+    select PCMCIA
 
 config GUMSTIX
     bool
Signature · 1 line
2.26.3
Reviewed-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] hw/arm/pxa2xx: Declare PCMCIA bus with Kconfig

Quoted 4 lines · Philippe Mathieu-Daudé

The Intel XScale PXA chipsets provide a PCMCIA controller, which expose a PCMCIA (IDE) bus. Express this dependency using the Kconfig 'select' expression.

I'd consider dropping the (IDE) in the description of the PCMCIA bus since I think it's more confusing than helpful...

Quoted 22 lines
---
 hw/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -1
index 8c37cf00da7..b887f6a5b17 100644
@@ -142,6 +142,7 @@ config PXA2XX
     select SD
     select SSI
     select USB_OHCI
+    select PCMCIA
 
 config GUMSTIX
     bool
--

2.26.3

#3 lore raw

Re: [PATCH 1/3] hw/arm/pxa2xx: Declare PCMCIA bus with Kconfig

In reply to Philippe Mathieu-Daudé

Le 25/04/2021 à 00:20, Philippe Mathieu-Daudé a écrit :

Quoted 15 lines

The Intel XScale PXA chipsets provide a PCMCIA controller, which expose a PCMCIA (IDE) bus. Express this dependency using the Kconfig 'select' expression.

---
 hw/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/arm/Kconfig +0 -0
index 8c37cf00da7..b887f6a5b17 100644

hw/arm/Kconfig config PXA2XX · line 148

Quoted 7 lines
hw/arm/Kconfig +1 -0
@@ -142,6 +142,7 @@ config PXA2XX
     select SD
     select SSI
     select USB_OHCI
+    select PCMCIA
 
 config GUMSTIX
     bool

Applied to my trivial-patches branch.

Thanks,
Laurent

#4 lore raw

PATCH 2/3 hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA

In reply to Philippe Mathieu-Daudé

The Microdrive Compact Flash can be plugged on a PCMCIA bus. Express the dependency using the 'depends on' Kconfig expression.

---
 hw/ide/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/ide/Kconfig +1 -0
index 5d9106b1ac2..8e2c8934549 100644
@@ -41,6 +41,7 @@ config IDE_VIA
 config MICRODRIVE
     bool
     select IDE_QDEV
+    depends on PCMCIA
 
 config AHCI
     bool
Signature · 1 line
2.26.3
Reviewed-by on v1 2/3
#5 lore raw

Re: [PATCH 2/3] hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA

Quoted 3 lines · Philippe Mathieu-Daudé

The Microdrive Compact Flash can be plugged on a PCMCIA bus. Express the dependency using the 'depends on' Kconfig expression.

Quoted 22 lines
---
 hw/ide/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/ide/Kconfig +1 -1
index 5d9106b1ac2..8e2c8934549 100644
@@ -41,6 +41,7 @@ config IDE_VIA
 config MICRODRIVE
     bool
     select IDE_QDEV
+    depends on PCMCIA
 
 config AHCI
     bool
--

2.26.3

#6 lore raw

Re: [PATCH 2/3] hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA

In reply to Philippe Mathieu-Daudé

Le 25/04/2021 à 00:20, Philippe Mathieu-Daudé a écrit :

Quoted 14 lines

The Microdrive Compact Flash can be plugged on a PCMCIA bus. Express the dependency using the 'depends on' Kconfig expression.

---
 hw/ide/Kconfig | 1 +
 1 file changed, 1 insertion(+)
hw/ide/Kconfig +0 -0
index 5d9106b1ac2..8e2c8934549 100644

hw/ide/Kconfig config IDE_VIA · line 47

Quoted 7 lines
hw/ide/Kconfig +1 -0
@@ -41,6 +41,7 @@ config IDE_VIA
 config MICRODRIVE
     bool
     select IDE_QDEV
+    depends on PCMCIA
 
 config AHCI
     bool

Applied to my trivial-patches branch.

Thanks,
Laurent

#7 lore raw

PATCH 3/3 hw/pcmcia: Do not register PCMCIA type if not required

In reply to Philippe Mathieu-Daudé

If the Kconfig 'PCMCIA' value is not selected, it is pointless to build the PCMCIA core components.

(Currently only one machine of the ARM targets requires this).

---
 hw/pcmcia/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/pcmcia/meson.build +1 -1
index ab50bd325d6..51f2512b8ed 100644
@@ -1,2 +1,2 @@
-softmmu_ss.add(files('pcmcia.c'))
+softmmu_ss.add(when: 'CONFIG_PCMCIA', if_true: files('pcmcia.c'))
 softmmu_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx.c'))
Signature · 1 line
2.26.3
#8 lore raw

Re: [PATCH 3/3] hw/pcmcia: Do not register PCMCIA type if not required

Le 25/04/2021 à 00:20, Philippe Mathieu-Daudé a écrit :

Quoted 16 lines

If the Kconfig 'PCMCIA' value is not selected, it is pointless to build the PCMCIA core components.

(Currently only one machine of the ARM targets requires this).

---
 hw/pcmcia/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/pcmcia/meson.build +0 -0
index ab50bd325d6..51f2512b8ed 100644

hw/pcmcia/meson.build line 2

Quoted 3 lines
hw/pcmcia/meson.build +1 -1
@@ -1,2 +1,2 @@
-softmmu_ss.add(files('pcmcia.c'))
+softmmu_ss.add(when: 'CONFIG_PCMCIA', if_true: files('pcmcia.c'))
 softmmu_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx.c'))

Applied to my trivial-patches branch.

Thanks,
Laurent