Skip to contentSkip to conversation

arch/arm64: defconfig: Compile Renesas Sound related drivers as Module

PATCH In review Kuninori Morimoto 3 participants 5 messages Jun 14, 2017 – Jun 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/arm64: defconfig: Compile Renesas Sound related drivers as Module

From: Kuninori Morimoto <[email protected]>

Current Renesas Sound related drivers are compiled as built-in. Let's compile it as Module to reduce ARM64 Kernel size.

---
 arch/arm64/configs/defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/configs/defconfig +3 -3
index dbacd55..82e345a 100644
@@ -366,9 +366,9 @@ CONFIG_SND=y
 CONFIG_SND_SOC=y
 CONFIG_SND_BCM2835_SOC_I2S=m
 CONFIG_SND_SOC_SAMSUNG=y
-CONFIG_SND_SOC_RCAR=y
-CONFIG_SND_SOC_AK4613=y
-CONFIG_SND_SIMPLE_CARD=y
+CONFIG_SND_SOC_RCAR=m
+CONFIG_SND_SOC_AK4613=m
+CONFIG_SND_SIMPLE_CARD=m
 CONFIG_USB=y
 CONFIG_USB_OTG=y
 CONFIG_USB_XHCI_HCD=y
Signature · 1 line
1.9.1
#1 lore raw

Hi Morimoto-san,

I think a better title would be:

arm64: defconfig: compile renesas sound related drivers as modules

Quoted 9 lines · Kuninori Morimoto

From: Kuninori Morimoto <[email protected]>

Current Renesas Sound related drivers are compiled as built-in. Let's compile it as Module to reduce ARM64 Kernel size.

---
 arch/arm64/configs/defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

This does not seem to apply to renesas-next-20170614-v4.12-rc1 This and the above I can fix but...

Quoted 5 lines
arch/arm64/configs/defconfig +0 -0
index dbacd55..82e345a 100644

arch/arm64/configs/defconfig CONFIG_SND=y · line 371

Quoted 9 lines
arch/arm64/configs/defconfig +3 -3
@@ -366,9 +366,9 @@ CONFIG_SND=y
 CONFIG_SND_SOC=y
 CONFIG_SND_BCM2835_SOC_I2S=m
 CONFIG_SND_SOC_SAMSUNG=y
-CONFIG_SND_SOC_RCAR=y
-CONFIG_SND_SOC_AK4613=y
-CONFIG_SND_SIMPLE_CARD=y
+CONFIG_SND_SOC_RCAR=m
+CONFIG_SND_SOC_AK4613=m
+CONFIG_SND_SIMPLE_CARD=m

Do other drivers depend on any pf the above?
If so what are the implications here?

Quoted 6 lines
arch/arm64/configs/defconfig +0 -0
 CONFIG_USB=y
 CONFIG_USB_OTG=y
 CONFIG_USB_XHCI_HCD=y
Signature · 1 line
1.9.1
#2 lore raw

Hi Simon

Quoted 10 lines
Quoted 7 lines

Current Renesas Sound related drivers are compiled as built-in. Let's compile it as Module to reduce ARM64 Kernel size.

---
 arch/arm64/configs/defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

This does not seem to apply to renesas-next-20170614-v4.12-rc1 This and the above I can fix but...

Oops sorry about that.
I can post v2 patch

Quoted 9 lines

arch/arm64/configs/defconfig CONFIG_SND=y · line 371

Quoted 6 lines
arch/arm64/configs/defconfig +3 -3
-CONFIG_SND_SOC_RCAR=y
-CONFIG_SND_SOC_AK4613=y
-CONFIG_SND_SIMPLE_CARD=y
+CONFIG_SND_SOC_RCAR=m
+CONFIG_SND_SOC_AK4613=m
+CONFIG_SND_SIMPLE_CARD=m

Do other drivers depend on any pf the above?
If so what are the implications here?

SOC_RCAR is Renesas specific, no other driver is depends on it. SOC_AK4613 is Codec and maybe Renesas only is using it, but I don't know. no other driver is depends on it I think.
SIMPLE_CARD might be used from some other ARM64 platform.

This patch should focus only for RCAR and AK4613 ?

Best regards
---
Kuninori Morimoto

#3 lore raw

Hi Morimoto-san,

Quoted 10 lines · Kuninori Morimoto
Quoted 9 lines

arch/arm64/configs/defconfig CONFIG_SND=y · line 371

Quoted 6 lines
arch/arm64/configs/defconfig +3 -3
-CONFIG_SND_SOC_RCAR=y
-CONFIG_SND_SOC_AK4613=y
-CONFIG_SND_SIMPLE_CARD=y
+CONFIG_SND_SOC_RCAR=m
+CONFIG_SND_SOC_AK4613=m
+CONFIG_SND_SIMPLE_CARD=m

Do other drivers depend on any pf the above?
If so what are the implications here?

Quoted 3 lines

SOC_RCAR is Renesas specific, no other driver is depends on it. SOC_AK4613 is Codec and maybe Renesas only is using it, but I don't know. no other driver is depends on it I think.

"git grep -w asahi-kasei,ak4613" tells me only Renesas DTS files use it.

Quoted 1 line

SIMPLE_CARD might be used from some other ARM64 platform.

So you want to run this through linux-arm-kernel...
Although I agree it's a good idea to make non-critical components modules in arm64_defconfig.

Quoted 1 line

This patch should focus only for RCAR and AK4613 ?

That's another option. SIMPLE_CARD can be handled in a follow-up patch, as it may need more buy-in.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#4 lore raw
In reply to Kuninori Morimoto
Quoted 13 lines · Kuninori Morimoto

Hi Simon

Quoted 10 lines
Quoted 7 lines

Current Renesas Sound related drivers are compiled as built-in. Let's compile it as Module to reduce ARM64 Kernel size.

---
 arch/arm64/configs/defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

This does not seem to apply to renesas-next-20170614-v4.12-rc1 This and the above I can fix but...

No problem. I would have fixed it up if it wasn't for the other question below.

Quoted 14 lines

Oops sorry about that.
I can post v2 patch

Quoted 9 lines

arch/arm64/configs/defconfig CONFIG_SND=y · line 371

Quoted 6 lines
arch/arm64/configs/defconfig +3 -3
-CONFIG_SND_SOC_RCAR=y
-CONFIG_SND_SOC_AK4613=y
-CONFIG_SND_SIMPLE_CARD=y
+CONFIG_SND_SOC_RCAR=m
+CONFIG_SND_SOC_AK4613=m
+CONFIG_SND_SIMPLE_CARD=m

Do other drivers depend on any pf the above?
If so what are the implications here?

Quoted 6 lines

SOC_RCAR is Renesas specific, no other driver is depends on it. SOC_AK4613 is Codec and maybe Renesas only is using it, but I don't know. no other driver is depends on it I think.
SIMPLE_CARD might be used from some other ARM64 platform.

This patch should focus only for RCAR and AK4613 ?

I think that should be a safe approach.