LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code
[not found] <20180507142019.32669-1-j.neuschaefer@gmx.net>
@ 2018-05-07 14:20 ` Jonathan Neuschäfer
2018-05-10 14:06 ` [v2, " Michael Ellerman
2018-05-07 14:20 ` [PATCH v2 2/4] powerpc: wii_defconfig: Enable GPIO-related options Jonathan Neuschäfer
` (3 subsequent siblings)
4 siblings, 1 reply; 6+ messages in thread
From: Jonathan Neuschäfer @ 2018-05-07 14:20 UTC (permalink / raw)
To: linuxppc-dev
Cc: Joel Stanley, Jonathan Neuschäfer, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, Benjamin Gilbert,
Robin H. Johnson, Greg Kroah-Hartman, linux-kernel
The Wii doesn't have built-in Ethernet and USB Ethernet adapters are in
a different menu. Disable CONFIG_ETHERNET to save some space in support
code for Ethernet drivers.
Note that this patch doesn't disable any Ethernet drivers, because they
are not enabled by default.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
v2:
- Drop the bloat-o-meter output from the commit message
---
arch/powerpc/configs/wii_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index 0b0f78823a1b..3167b9d7f3e5 100644
--- a/arch/powerpc/configs/wii_defconfig
+++ b/arch/powerpc/configs/wii_defconfig
@@ -49,6 +49,7 @@ CONFIG_BLK_DEV_RAM_COUNT=2
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_NETDEVICES=y
+# CONFIG_ETHERNET is not set
CONFIG_B43=y
CONFIG_B43_SDIO=y
# CONFIG_B43_PHY_LP is not set
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/4] powerpc: wii_defconfig: Enable GPIO-related options
[not found] <20180507142019.32669-1-j.neuschaefer@gmx.net>
2018-05-07 14:20 ` [PATCH v2 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code Jonathan Neuschäfer
@ 2018-05-07 14:20 ` Jonathan Neuschäfer
2018-05-07 14:20 ` [PATCH v2 3/4] powerpc: wii_defconfig: Enable Wii SDHCI driver Jonathan Neuschäfer
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jonathan Neuschäfer @ 2018-05-07 14:20 UTC (permalink / raw)
To: linuxppc-dev
Cc: Joel Stanley, Jonathan Neuschäfer, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, Robin H. Johnson,
Benjamin Gilbert, Greg Kroah-Hartman, linux-kernel
Now that there's a GPIO driver for the Wii, let's enable the following
drivers:
- the GPIO driver itself
- gpio-keys
- gpio-poweroff
- gpio-leds and a few LED triggers
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
v2:
- Set CONFIG_NEW_LEDS=y and CONFIG_LEDS_TRIGGERS=y, without which some
of the other options can't be set.
---
arch/powerpc/configs/wii_defconfig | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index 3167b9d7f3e5..c5933a38e5ad 100644
--- a/arch/powerpc/configs/wii_defconfig
+++ b/arch/powerpc/configs/wii_defconfig
@@ -58,6 +58,7 @@ CONFIG_INPUT_FF_MEMLESS=m
CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=y
# CONFIG_KEYBOARD_ATKBD is not set
+CONFIG_KEYBOARD_GPIO=y
# CONFIG_MOUSE_PS2 is not set
CONFIG_INPUT_JOYSTICK=y
CONFIG_INPUT_MISC=y
@@ -72,6 +73,9 @@ CONFIG_I2C_CHARDEV=y
CONFIG_I2C_GPIO=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_HLWD=y
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_GPIO=y
# CONFIG_HWMON is not set
CONFIG_SSB_DEBUG=y
CONFIG_FB=y
@@ -89,6 +93,12 @@ CONFIG_HID_APPLE=m
CONFIG_HID_WACOM=m
CONFIG_MMC=y
CONFIG_MMC_SDHCI=y
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
+CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_HEARTBEAT=y
+CONFIG_LEDS_TRIGGER_PANIC=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_DRV_GENERIC=y
CONFIG_EXT2_FS=y
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/4] powerpc: wii_defconfig: Enable Wii SDHCI driver
[not found] <20180507142019.32669-1-j.neuschaefer@gmx.net>
2018-05-07 14:20 ` [PATCH v2 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code Jonathan Neuschäfer
2018-05-07 14:20 ` [PATCH v2 2/4] powerpc: wii_defconfig: Enable GPIO-related options Jonathan Neuschäfer
@ 2018-05-07 14:20 ` Jonathan Neuschäfer
2018-05-07 14:20 ` [PATCH v2 4/4] powerpc: wii_defconfig: Disable BCMA support Jonathan Neuschäfer
2018-05-07 17:47 ` [PATCH v2 0/4] powerpc: wii_defconfig updates Jonathan Neuschäfer
4 siblings, 0 replies; 6+ messages in thread
From: Jonathan Neuschäfer @ 2018-05-07 14:20 UTC (permalink / raw)
To: linuxppc-dev
Cc: Joel Stanley, Jonathan Neuschäfer, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, Benjamin Gilbert,
Robin H. Johnson, Greg Kroah-Hartman, linux-kernel
This allows access to the SD card and the BCM4318 Wifi module.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
Note that until some fixes in the interrupt controller drivers used on
the Wii, the SDHCI controllers will not be usable.
v2:
- Patch added to the series
---
arch/powerpc/configs/wii_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index c5933a38e5ad..a674dd420f0f 100644
--- a/arch/powerpc/configs/wii_defconfig
+++ b/arch/powerpc/configs/wii_defconfig
@@ -93,6 +93,8 @@ CONFIG_HID_APPLE=m
CONFIG_HID_WACOM=m
CONFIG_MMC=y
CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_OF_HLWD=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
CONFIG_LEDS_GPIO=y
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 4/4] powerpc: wii_defconfig: Disable BCMA support
[not found] <20180507142019.32669-1-j.neuschaefer@gmx.net>
` (2 preceding siblings ...)
2018-05-07 14:20 ` [PATCH v2 3/4] powerpc: wii_defconfig: Enable Wii SDHCI driver Jonathan Neuschäfer
@ 2018-05-07 14:20 ` Jonathan Neuschäfer
2018-05-07 17:47 ` [PATCH v2 0/4] powerpc: wii_defconfig updates Jonathan Neuschäfer
4 siblings, 0 replies; 6+ messages in thread
From: Jonathan Neuschäfer @ 2018-05-07 14:20 UTC (permalink / raw)
To: linuxppc-dev
Cc: Joel Stanley, Jonathan Neuschäfer, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, Greg Kroah-Hartman,
Robin H. Johnson, Benjamin Gilbert, linux-kernel
The B43 driver only needs CONFIG_SSB to support the WLAN card found in
the Wii. Configure it accordingly, and disable BCMA bus support to save
a bit of space.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
v2:
- Patch added to the series
---
arch/powerpc/configs/wii_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/configs/wii_defconfig b/arch/powerpc/configs/wii_defconfig
index a674dd420f0f..10940533da71 100644
--- a/arch/powerpc/configs/wii_defconfig
+++ b/arch/powerpc/configs/wii_defconfig
@@ -51,6 +51,7 @@ CONFIG_BLK_DEV_SD=y
CONFIG_NETDEVICES=y
# CONFIG_ETHERNET is not set
CONFIG_B43=y
+CONFIG_B43_BUSES_SSB=y
CONFIG_B43_SDIO=y
# CONFIG_B43_PHY_LP is not set
CONFIG_B43_DEBUG=y
--
2.17.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 0/4] powerpc: wii_defconfig updates
[not found] <20180507142019.32669-1-j.neuschaefer@gmx.net>
` (3 preceding siblings ...)
2018-05-07 14:20 ` [PATCH v2 4/4] powerpc: wii_defconfig: Disable BCMA support Jonathan Neuschäfer
@ 2018-05-07 17:47 ` Jonathan Neuschäfer
4 siblings, 0 replies; 6+ messages in thread
From: Jonathan Neuschäfer @ 2018-05-07 17:47 UTC (permalink / raw)
To: Jonathan Neuschäfer
Cc: linuxppc-dev, Joel Stanley, linux-kernel, Benjamin Gilbert,
Robin H. Johnson, Greg Kroah-Hartman, Michael Ellerman,
Paul Mackerras, Benjamin Herrenschmidt
[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]
I forgot to CC the right set of people/mailing lists on the cover
letter. Sorry. Here it is:
On Mon, May 07, 2018 at 04:20:15PM +0200, Jonathan Neuschäfer wrote:
> v1: https://www.spinics.net/lists/kernel/msg2790389.html
> https://www.spinics.net/lists/kernel/msg2790385.html
>
> In the previous version of patch 2, I forgot to set CONFIG_NEW_LEDS and
> CONFIG_LEDS_TRIGGERS, so the more specific LED-related options weren't
> actually enabled, due to Kconfig dependencies. This is now fixed.
>
> I took the opportunity of a v2 to add two more patches that I wanted to
> send anyway. The SDHCIs in the Wii are currently unusable due to bugs/
> problems in the flipper-pic/hlwd-pic drivers, but I know how to fix
> those, and will send patches.
>
> Jonathan Neuschäfer (4):
> powerpc: wii_defconfig: Disable Ethernet driver support code
> powerpc: wii_defconfig: Enable GPIO-related options
> powerpc: wii_defconfig: Enable Wii SDHCI driver
> powerpc: wii_defconfig: Disable BCMA support
>
> arch/powerpc/configs/wii_defconfig | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> --
> 2.17.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [v2, 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code
2018-05-07 14:20 ` [PATCH v2 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code Jonathan Neuschäfer
@ 2018-05-10 14:06 ` Michael Ellerman
0 siblings, 0 replies; 6+ messages in thread
From: Michael Ellerman @ 2018-05-10 14:06 UTC (permalink / raw)
To: Jonathan Neuschäfer, linuxppc-dev
Cc: Greg Kroah-Hartman, Benjamin Gilbert, Jonathan Neuschäfer,
Robin H. Johnson, linux-kernel, Paul Mackerras, Joel Stanley
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
On Mon, 2018-05-07 at 14:20:16 UTC, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= wrote:
> The Wii doesn't have built-in Ethernet and USB Ethernet adapters are in
> a different menu. Disable CONFIG_ETHERNET to save some space in support
> code for Ethernet drivers.
>
> Note that this patch doesn't disable any Ethernet drivers, because they
> are not enabled by default.
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Series applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/a84813f5bf2948c2a2947b0d684562
cheers
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-05-10 14:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20180507142019.32669-1-j.neuschaefer@gmx.net>
2018-05-07 14:20 ` [PATCH v2 1/4] powerpc: wii_defconfig: Disable Ethernet driver support code Jonathan Neuschäfer
2018-05-10 14:06 ` [v2, " Michael Ellerman
2018-05-07 14:20 ` [PATCH v2 2/4] powerpc: wii_defconfig: Enable GPIO-related options Jonathan Neuschäfer
2018-05-07 14:20 ` [PATCH v2 3/4] powerpc: wii_defconfig: Enable Wii SDHCI driver Jonathan Neuschäfer
2018-05-07 14:20 ` [PATCH v2 4/4] powerpc: wii_defconfig: Disable BCMA support Jonathan Neuschäfer
2018-05-07 17:47 ` [PATCH v2 0/4] powerpc: wii_defconfig updates Jonathan Neuschäfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).