* [PATCH 0/2] irq-meson-gpio: make it possible to build as a module
@ 2021-09-02 13:49 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
In order to reduce the kernel Image size on multi-platform distributions,
make it possible to build the Amlogic GPIO IRQ controller as a module
by switching it to a platform driver.
The second patch removes MESON_IRQ_GPIO selection from ARCH_MESON to allow
building the driver as module.
Changes since v1:
- makes usage of IRQCHIP_PLATFORM_DRIVER_BEGIN/MATCH/PLATFORM_DRIVER_END
Neil Armstrong (2):
irqchip: irq-meson-gpio: make it possible to build as a module
arm64: meson: remove MESON_IRQ_GPIO selection
arch/arm64/Kconfig.platforms | 1 -
drivers/irqchip/Kconfig | 5 +++--
drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
3 files changed, 12 insertions(+), 9 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 0/2] irq-meson-gpio: make it possible to build as a module
@ 2021-09-02 13:49 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
In order to reduce the kernel Image size on multi-platform distributions,
make it possible to build the Amlogic GPIO IRQ controller as a module
by switching it to a platform driver.
The second patch removes MESON_IRQ_GPIO selection from ARCH_MESON to allow
building the driver as module.
Changes since v1:
- makes usage of IRQCHIP_PLATFORM_DRIVER_BEGIN/MATCH/PLATFORM_DRIVER_END
Neil Armstrong (2):
irqchip: irq-meson-gpio: make it possible to build as a module
arm64: meson: remove MESON_IRQ_GPIO selection
arch/arm64/Kconfig.platforms | 1 -
drivers/irqchip/Kconfig | 5 +++--
drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
3 files changed, 12 insertions(+), 9 deletions(-)
--
2.25.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 0/2] irq-meson-gpio: make it possible to build as a module
@ 2021-09-02 13:49 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
In order to reduce the kernel Image size on multi-platform distributions,
make it possible to build the Amlogic GPIO IRQ controller as a module
by switching it to a platform driver.
The second patch removes MESON_IRQ_GPIO selection from ARCH_MESON to allow
building the driver as module.
Changes since v1:
- makes usage of IRQCHIP_PLATFORM_DRIVER_BEGIN/MATCH/PLATFORM_DRIVER_END
Neil Armstrong (2):
irqchip: irq-meson-gpio: make it possible to build as a module
arm64: meson: remove MESON_IRQ_GPIO selection
arch/arm64/Kconfig.platforms | 1 -
drivers/irqchip/Kconfig | 5 +++--
drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
3 files changed, 12 insertions(+), 9 deletions(-)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
2021-09-02 13:49 ` Neil Armstrong
(?)
@ 2021-09-02 13:49 ` Neil Armstrong
-1 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
In order to reduce the kernel Image size on multi-platform distributions,
make it possible to build the Amlogic GPIO IRQ controller as a module
by switching it to a platform driver.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/irqchip/Kconfig | 5 +++--
drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 4d5924e9f766..2aba485025fd 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
Support for the UniPhier AIDET (ARM Interrupt Detector).
config MESON_IRQ_GPIO
- bool "Meson GPIO Interrupt Multiplexer"
- depends on ARCH_MESON
+ tristate "Meson GPIO Interrupt Multiplexer"
+ depends on ARCH_MESON || COMPILE_TEST
+ default ARCH_MESON
select IRQ_DOMAIN_HIERARCHY
help
Support Meson SoC Family GPIO Interrupt Multiplexer
diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index e50676ce2ec8..d90ff0b92480 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
.translate = meson_gpio_irq_domain_translate,
};
-static int __init meson_gpio_irq_parse_dt(struct device_node *node,
- struct meson_gpio_irq_controller *ctl)
+static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
{
const struct of_device_id *match;
int ret;
@@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
return 0;
}
-static int __init meson_gpio_irq_of_init(struct device_node *node,
- struct device_node *parent)
+static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
{
struct irq_domain *domain, *parent_domain;
struct meson_gpio_irq_controller *ctl;
@@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
return ret;
}
-IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
- meson_gpio_irq_of_init);
+IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
+IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
+IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
+
+MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:meson-gpio-intc");
--
2.25.1
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-02 13:49 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
In order to reduce the kernel Image size on multi-platform distributions,
make it possible to build the Amlogic GPIO IRQ controller as a module
by switching it to a platform driver.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/irqchip/Kconfig | 5 +++--
drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 4d5924e9f766..2aba485025fd 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
Support for the UniPhier AIDET (ARM Interrupt Detector).
config MESON_IRQ_GPIO
- bool "Meson GPIO Interrupt Multiplexer"
- depends on ARCH_MESON
+ tristate "Meson GPIO Interrupt Multiplexer"
+ depends on ARCH_MESON || COMPILE_TEST
+ default ARCH_MESON
select IRQ_DOMAIN_HIERARCHY
help
Support Meson SoC Family GPIO Interrupt Multiplexer
diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index e50676ce2ec8..d90ff0b92480 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
.translate = meson_gpio_irq_domain_translate,
};
-static int __init meson_gpio_irq_parse_dt(struct device_node *node,
- struct meson_gpio_irq_controller *ctl)
+static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
{
const struct of_device_id *match;
int ret;
@@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
return 0;
}
-static int __init meson_gpio_irq_of_init(struct device_node *node,
- struct device_node *parent)
+static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
{
struct irq_domain *domain, *parent_domain;
struct meson_gpio_irq_controller *ctl;
@@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
return ret;
}
-IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
- meson_gpio_irq_of_init);
+IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
+IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
+IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
+
+MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:meson-gpio-intc");
--
2.25.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-02 13:49 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
In order to reduce the kernel Image size on multi-platform distributions,
make it possible to build the Amlogic GPIO IRQ controller as a module
by switching it to a platform driver.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/irqchip/Kconfig | 5 +++--
drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 4d5924e9f766..2aba485025fd 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
Support for the UniPhier AIDET (ARM Interrupt Detector).
config MESON_IRQ_GPIO
- bool "Meson GPIO Interrupt Multiplexer"
- depends on ARCH_MESON
+ tristate "Meson GPIO Interrupt Multiplexer"
+ depends on ARCH_MESON || COMPILE_TEST
+ default ARCH_MESON
select IRQ_DOMAIN_HIERARCHY
help
Support Meson SoC Family GPIO Interrupt Multiplexer
diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index e50676ce2ec8..d90ff0b92480 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
.translate = meson_gpio_irq_domain_translate,
};
-static int __init meson_gpio_irq_parse_dt(struct device_node *node,
- struct meson_gpio_irq_controller *ctl)
+static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
{
const struct of_device_id *match;
int ret;
@@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
return 0;
}
-static int __init meson_gpio_irq_of_init(struct device_node *node,
- struct device_node *parent)
+static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
{
struct irq_domain *domain, *parent_domain;
struct meson_gpio_irq_controller *ctl;
@@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
return ret;
}
-IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
- meson_gpio_irq_of_init);
+IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
+IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
+IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
+
+MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:meson-gpio-intc");
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
2021-09-02 13:49 ` Neil Armstrong
(?)
@ 2021-09-02 13:49 ` Neil Armstrong
-1 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
as a module, thus remove it here and let the "default ARCH_MESON" build as
built-in by default with the option to switch it to module.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index b0ce18d4cc98..ff2d83fbbde1 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -167,7 +167,6 @@ config ARCH_MEDIATEK
config ARCH_MESON
bool "Amlogic Platforms"
select COMMON_CLK
- select MESON_IRQ_GPIO
help
This enables support for the arm64 based Amlogic SoCs
such as the s905, S905X/D, S912, A113X/D or S905X/D2
--
2.25.1
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
@ 2021-09-02 13:49 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
as a module, thus remove it here and let the "default ARCH_MESON" build as
built-in by default with the option to switch it to module.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index b0ce18d4cc98..ff2d83fbbde1 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -167,7 +167,6 @@ config ARCH_MEDIATEK
config ARCH_MESON
bool "Amlogic Platforms"
select COMMON_CLK
- select MESON_IRQ_GPIO
help
This enables support for the arm64 based Amlogic SoCs
such as the s905, S905X/D, S912, A113X/D or S905X/D2
--
2.25.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
@ 2021-09-02 13:49 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2021-09-02 13:49 UTC (permalink / raw)
To: maz, tglx, jbrunet
Cc: khilman, lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
as a module, thus remove it here and let the "default ARCH_MESON" build as
built-in by default with the option to switch it to module.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index b0ce18d4cc98..ff2d83fbbde1 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -167,7 +167,6 @@ config ARCH_MEDIATEK
config ARCH_MESON
bool "Amlogic Platforms"
select COMMON_CLK
- select MESON_IRQ_GPIO
help
This enables support for the arm64 based Amlogic SoCs
such as the s905, S905X/D, S912, A113X/D or S905X/D2
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
2021-09-02 13:49 ` Neil Armstrong
(?)
@ 2021-09-02 17:00 ` Saravana Kannan
-1 siblings, 0 replies; 32+ messages in thread
From: Saravana Kannan @ 2021-09-02 17:00 UTC (permalink / raw)
To: Neil Armstrong
Cc: maz, tglx, jbrunet, khilman, lee.jones, linux-amlogic,
linux-arm-kernel, linux-kernel
On Thu, Sep 2, 2021 at 6:49 AM Neil Armstrong <narmstrong@baylibre.com> wrote:
>
> In order to reduce the kernel Image size on multi-platform distributions,
> make it possible to build the Amlogic GPIO IRQ controller as a module
> by switching it to a platform driver.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
> drivers/irqchip/Kconfig | 5 +++--
> drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
> 2 files changed, 12 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> index 4d5924e9f766..2aba485025fd 100644
> --- a/drivers/irqchip/Kconfig
> +++ b/drivers/irqchip/Kconfig
> @@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
> Support for the UniPhier AIDET (ARM Interrupt Detector).
>
> config MESON_IRQ_GPIO
> - bool "Meson GPIO Interrupt Multiplexer"
> - depends on ARCH_MESON
> + tristate "Meson GPIO Interrupt Multiplexer"
> + depends on ARCH_MESON || COMPILE_TEST
> + default ARCH_MESON
> select IRQ_DOMAIN_HIERARCHY
> help
> Support Meson SoC Family GPIO Interrupt Multiplexer
> diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
> index e50676ce2ec8..d90ff0b92480 100644
> --- a/drivers/irqchip/irq-meson-gpio.c
> +++ b/drivers/irqchip/irq-meson-gpio.c
> @@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
> .translate = meson_gpio_irq_domain_translate,
> };
>
> -static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> - struct meson_gpio_irq_controller *ctl)
> +static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
> {
> const struct of_device_id *match;
> int ret;
> @@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> return 0;
> }
>
> -static int __init meson_gpio_irq_of_init(struct device_node *node,
> - struct device_node *parent)
> +static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
> {
> struct irq_domain *domain, *parent_domain;
> struct meson_gpio_irq_controller *ctl;
> @@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
> return ret;
> }
>
> -IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
> - meson_gpio_irq_of_init);
> +IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
> +IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
> +IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
> +
> +MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
> +MODULE_LICENSE("GPL v2");
> +MODULE_ALIAS("platform:meson-gpio-intc");
> --
Acked-by: Saravana Kannan <saravanak@google.com>
Marc, my mdio-mux patches have landed.
-Saravana
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-02 17:00 ` Saravana Kannan
0 siblings, 0 replies; 32+ messages in thread
From: Saravana Kannan @ 2021-09-02 17:00 UTC (permalink / raw)
To: Neil Armstrong
Cc: maz, tglx, jbrunet, khilman, lee.jones, linux-amlogic,
linux-arm-kernel, linux-kernel
On Thu, Sep 2, 2021 at 6:49 AM Neil Armstrong <narmstrong@baylibre.com> wrote:
>
> In order to reduce the kernel Image size on multi-platform distributions,
> make it possible to build the Amlogic GPIO IRQ controller as a module
> by switching it to a platform driver.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
> drivers/irqchip/Kconfig | 5 +++--
> drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
> 2 files changed, 12 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> index 4d5924e9f766..2aba485025fd 100644
> --- a/drivers/irqchip/Kconfig
> +++ b/drivers/irqchip/Kconfig
> @@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
> Support for the UniPhier AIDET (ARM Interrupt Detector).
>
> config MESON_IRQ_GPIO
> - bool "Meson GPIO Interrupt Multiplexer"
> - depends on ARCH_MESON
> + tristate "Meson GPIO Interrupt Multiplexer"
> + depends on ARCH_MESON || COMPILE_TEST
> + default ARCH_MESON
> select IRQ_DOMAIN_HIERARCHY
> help
> Support Meson SoC Family GPIO Interrupt Multiplexer
> diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
> index e50676ce2ec8..d90ff0b92480 100644
> --- a/drivers/irqchip/irq-meson-gpio.c
> +++ b/drivers/irqchip/irq-meson-gpio.c
> @@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
> .translate = meson_gpio_irq_domain_translate,
> };
>
> -static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> - struct meson_gpio_irq_controller *ctl)
> +static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
> {
> const struct of_device_id *match;
> int ret;
> @@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> return 0;
> }
>
> -static int __init meson_gpio_irq_of_init(struct device_node *node,
> - struct device_node *parent)
> +static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
> {
> struct irq_domain *domain, *parent_domain;
> struct meson_gpio_irq_controller *ctl;
> @@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
> return ret;
> }
>
> -IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
> - meson_gpio_irq_of_init);
> +IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
> +IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
> +IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
> +
> +MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
> +MODULE_LICENSE("GPL v2");
> +MODULE_ALIAS("platform:meson-gpio-intc");
> --
Acked-by: Saravana Kannan <saravanak@google.com>
Marc, my mdio-mux patches have landed.
-Saravana
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-02 17:00 ` Saravana Kannan
0 siblings, 0 replies; 32+ messages in thread
From: Saravana Kannan @ 2021-09-02 17:00 UTC (permalink / raw)
To: Neil Armstrong
Cc: maz, tglx, jbrunet, khilman, lee.jones, linux-amlogic,
linux-arm-kernel, linux-kernel
On Thu, Sep 2, 2021 at 6:49 AM Neil Armstrong <narmstrong@baylibre.com> wrote:
>
> In order to reduce the kernel Image size on multi-platform distributions,
> make it possible to build the Amlogic GPIO IRQ controller as a module
> by switching it to a platform driver.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
> drivers/irqchip/Kconfig | 5 +++--
> drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
> 2 files changed, 12 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> index 4d5924e9f766..2aba485025fd 100644
> --- a/drivers/irqchip/Kconfig
> +++ b/drivers/irqchip/Kconfig
> @@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
> Support for the UniPhier AIDET (ARM Interrupt Detector).
>
> config MESON_IRQ_GPIO
> - bool "Meson GPIO Interrupt Multiplexer"
> - depends on ARCH_MESON
> + tristate "Meson GPIO Interrupt Multiplexer"
> + depends on ARCH_MESON || COMPILE_TEST
> + default ARCH_MESON
> select IRQ_DOMAIN_HIERARCHY
> help
> Support Meson SoC Family GPIO Interrupt Multiplexer
> diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
> index e50676ce2ec8..d90ff0b92480 100644
> --- a/drivers/irqchip/irq-meson-gpio.c
> +++ b/drivers/irqchip/irq-meson-gpio.c
> @@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
> .translate = meson_gpio_irq_domain_translate,
> };
>
> -static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> - struct meson_gpio_irq_controller *ctl)
> +static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
> {
> const struct of_device_id *match;
> int ret;
> @@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> return 0;
> }
>
> -static int __init meson_gpio_irq_of_init(struct device_node *node,
> - struct device_node *parent)
> +static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
> {
> struct irq_domain *domain, *parent_domain;
> struct meson_gpio_irq_controller *ctl;
> @@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
> return ret;
> }
>
> -IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
> - meson_gpio_irq_of_init);
> +IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
> +IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
> +IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
> +
> +MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
> +MODULE_LICENSE("GPL v2");
> +MODULE_ALIAS("platform:meson-gpio-intc");
> --
Acked-by: Saravana Kannan <saravanak@google.com>
Marc, my mdio-mux patches have landed.
-Saravana
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
2021-09-02 13:49 ` Neil Armstrong
` (2 preceding siblings ...)
(?)
@ 2021-09-02 20:01 ` kernel test robot
-1 siblings, 0 replies; 32+ messages in thread
From: kernel test robot @ 2021-09-02 20:01 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1820 bytes --]
Hi Neil,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/irq/core]
[also build test ERROR on arm64/for-next/core arm/for-next soc/for-next clk/clk-next kvmarm/next v5.14 next-20210902]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Neil-Armstrong/irq-meson-gpio-make-it-possible-to-build-as-a-module/20210902-215046
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 47fb0cfdb7a71a8a0ff8fe1d117363dc81f6ca77
config: parisc-randconfig-r023-20210903 (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/90a6017feb62f008db14c9e8a2722d96dfca3a12
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Neil-Armstrong/irq-meson-gpio-make-it-possible-to-build-as-a-module/20210902-215046
git checkout 90a6017feb62f008db14c9e8a2722d96dfca3a12
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: "platform_irqchip_probe" [drivers/irqchip/irq-meson-gpio.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38948 bytes --]
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
2021-09-02 13:49 ` Neil Armstrong
@ 2021-09-02 22:10 ` kernel test robot
-1 siblings, 0 replies; 32+ messages in thread
From: kernel test robot @ 2021-09-02 22:10 UTC (permalink / raw)
To: Neil Armstrong; +Cc: llvm, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3500 bytes --]
Hi Neil,
I love your patch! Perhaps something to improve:
[auto build test WARNING on tip/irq/core]
[also build test WARNING on arm64/for-next/core xlnx/master arm/for-next soc/for-next clk/clk-next kvmarm/next v5.14 next-20210902]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Neil-Armstrong/irq-meson-gpio-make-it-possible-to-build-as-a-module/20210902-215046
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 47fb0cfdb7a71a8a0ff8fe1d117363dc81f6ca77
config: mips-randconfig-r016-20210903 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c9948e9254fbb6ea00f66c7b4542311d21e060be)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/0day-ci/linux/commit/90a6017feb62f008db14c9e8a2722d96dfca3a12
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Neil-Armstrong/irq-meson-gpio-make-it-possible-to-build-as-a-module/20210902-215046
git checkout 90a6017feb62f008db14c9e8a2722d96dfca3a12
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/irqchip/irq-meson-gpio.c:124:34: warning: unused variable 'meson_irq_gpio_matches' [-Wunused-const-variable]
static const struct of_device_id meson_irq_gpio_matches[] = {
^
1 warning generated.
vim +/meson_irq_gpio_matches +124 drivers/irqchip/irq-meson-gpio.c
8f78bd62bdd7a7 Qianggui Song 2019-12-16 123
215f4cc0fb2086 Jerome Brunet 2017-09-18 @124 static const struct of_device_id meson_irq_gpio_matches[] = {
4e4cb1b183d6e9 Martin Blumenstingl 2017-10-30 125 { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
215f4cc0fb2086 Jerome Brunet 2017-09-18 126 { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
215f4cc0fb2086 Jerome Brunet 2017-09-18 127 { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
215f4cc0fb2086 Jerome Brunet 2017-09-18 128 { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params },
868c4e07533c67 Yixun Lan 2018-04-08 129 { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params },
c64a9e804ccf86 Xingyu Chen 2019-06-08 130 { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &axg_params },
b2fb4b77994abc Jerome Brunet 2019-08-29 131 { .compatible = "amlogic,meson-sm1-gpio-intc", .data = &sm1_params },
8f78bd62bdd7a7 Qianggui Song 2019-12-16 132 { .compatible = "amlogic,meson-a1-gpio-intc", .data = &a1_params },
215f4cc0fb2086 Jerome Brunet 2017-09-18 133 { }
215f4cc0fb2086 Jerome Brunet 2017-09-18 134 };
215f4cc0fb2086 Jerome Brunet 2017-09-18 135
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27063 bytes --]
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-02 22:10 ` kernel test robot
0 siblings, 0 replies; 32+ messages in thread
From: kernel test robot @ 2021-09-02 22:10 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3558 bytes --]
Hi Neil,
I love your patch! Perhaps something to improve:
[auto build test WARNING on tip/irq/core]
[also build test WARNING on arm64/for-next/core xlnx/master arm/for-next soc/for-next clk/clk-next kvmarm/next v5.14 next-20210902]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Neil-Armstrong/irq-meson-gpio-make-it-possible-to-build-as-a-module/20210902-215046
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 47fb0cfdb7a71a8a0ff8fe1d117363dc81f6ca77
config: mips-randconfig-r016-20210903 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c9948e9254fbb6ea00f66c7b4542311d21e060be)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/0day-ci/linux/commit/90a6017feb62f008db14c9e8a2722d96dfca3a12
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Neil-Armstrong/irq-meson-gpio-make-it-possible-to-build-as-a-module/20210902-215046
git checkout 90a6017feb62f008db14c9e8a2722d96dfca3a12
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/irqchip/irq-meson-gpio.c:124:34: warning: unused variable 'meson_irq_gpio_matches' [-Wunused-const-variable]
static const struct of_device_id meson_irq_gpio_matches[] = {
^
1 warning generated.
vim +/meson_irq_gpio_matches +124 drivers/irqchip/irq-meson-gpio.c
8f78bd62bdd7a7 Qianggui Song 2019-12-16 123
215f4cc0fb2086 Jerome Brunet 2017-09-18 @124 static const struct of_device_id meson_irq_gpio_matches[] = {
4e4cb1b183d6e9 Martin Blumenstingl 2017-10-30 125 { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
215f4cc0fb2086 Jerome Brunet 2017-09-18 126 { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
215f4cc0fb2086 Jerome Brunet 2017-09-18 127 { .compatible = "amlogic,meson-gxbb-gpio-intc", .data = &gxbb_params },
215f4cc0fb2086 Jerome Brunet 2017-09-18 128 { .compatible = "amlogic,meson-gxl-gpio-intc", .data = &gxl_params },
868c4e07533c67 Yixun Lan 2018-04-08 129 { .compatible = "amlogic,meson-axg-gpio-intc", .data = &axg_params },
c64a9e804ccf86 Xingyu Chen 2019-06-08 130 { .compatible = "amlogic,meson-g12a-gpio-intc", .data = &axg_params },
b2fb4b77994abc Jerome Brunet 2019-08-29 131 { .compatible = "amlogic,meson-sm1-gpio-intc", .data = &sm1_params },
8f78bd62bdd7a7 Qianggui Song 2019-12-16 132 { .compatible = "amlogic,meson-a1-gpio-intc", .data = &a1_params },
215f4cc0fb2086 Jerome Brunet 2017-09-18 133 { }
215f4cc0fb2086 Jerome Brunet 2017-09-18 134 };
215f4cc0fb2086 Jerome Brunet 2017-09-18 135
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27063 bytes --]
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
2021-09-02 17:00 ` Saravana Kannan
(?)
@ 2021-09-28 10:45 ` Lee Jones
-1 siblings, 0 replies; 32+ messages in thread
From: Lee Jones @ 2021-09-28 10:45 UTC (permalink / raw)
To: Saravana Kannan
Cc: Neil Armstrong, maz, tglx, jbrunet, khilman, linux-amlogic,
linux-arm-kernel, linux-kernel
On Thu, 02 Sep 2021, Saravana Kannan wrote:
> On Thu, Sep 2, 2021 at 6:49 AM Neil Armstrong <narmstrong@baylibre.com> wrote:
> >
> > In order to reduce the kernel Image size on multi-platform distributions,
> > make it possible to build the Amlogic GPIO IRQ controller as a module
> > by switching it to a platform driver.
> >
> > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> > ---
> > drivers/irqchip/Kconfig | 5 +++--
> > drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
> > 2 files changed, 12 insertions(+), 8 deletions(-)
> >
> > diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> > index 4d5924e9f766..2aba485025fd 100644
> > --- a/drivers/irqchip/Kconfig
> > +++ b/drivers/irqchip/Kconfig
> > @@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
> > Support for the UniPhier AIDET (ARM Interrupt Detector).
> >
> > config MESON_IRQ_GPIO
> > - bool "Meson GPIO Interrupt Multiplexer"
> > - depends on ARCH_MESON
> > + tristate "Meson GPIO Interrupt Multiplexer"
> > + depends on ARCH_MESON || COMPILE_TEST
> > + default ARCH_MESON
> > select IRQ_DOMAIN_HIERARCHY
> > help
> > Support Meson SoC Family GPIO Interrupt Multiplexer
> > diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
> > index e50676ce2ec8..d90ff0b92480 100644
> > --- a/drivers/irqchip/irq-meson-gpio.c
> > +++ b/drivers/irqchip/irq-meson-gpio.c
> > @@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
> > .translate = meson_gpio_irq_domain_translate,
> > };
> >
> > -static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> > - struct meson_gpio_irq_controller *ctl)
> > +static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
> > {
> > const struct of_device_id *match;
> > int ret;
> > @@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> > return 0;
> > }
> >
> > -static int __init meson_gpio_irq_of_init(struct device_node *node,
> > - struct device_node *parent)
> > +static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
> > {
> > struct irq_domain *domain, *parent_domain;
> > struct meson_gpio_irq_controller *ctl;
> > @@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
> > return ret;
> > }
> >
> > -IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
> > - meson_gpio_irq_of_init);
> > +IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
> > +IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
> > +IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
> > +
> > +MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
> > +MODULE_LICENSE("GPL v2");
> > +MODULE_ALIAS("platform:meson-gpio-intc");
> > --
>
> Acked-by: Saravana Kannan <saravanak@google.com>
>
> Marc, my mdio-mux patches have landed.
Reviewed-by: Lee Jones <lee.jones@linaro.org>
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-28 10:45 ` Lee Jones
0 siblings, 0 replies; 32+ messages in thread
From: Lee Jones @ 2021-09-28 10:45 UTC (permalink / raw)
To: Saravana Kannan
Cc: Neil Armstrong, maz, tglx, jbrunet, khilman, linux-amlogic,
linux-arm-kernel, linux-kernel
On Thu, 02 Sep 2021, Saravana Kannan wrote:
> On Thu, Sep 2, 2021 at 6:49 AM Neil Armstrong <narmstrong@baylibre.com> wrote:
> >
> > In order to reduce the kernel Image size on multi-platform distributions,
> > make it possible to build the Amlogic GPIO IRQ controller as a module
> > by switching it to a platform driver.
> >
> > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> > ---
> > drivers/irqchip/Kconfig | 5 +++--
> > drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
> > 2 files changed, 12 insertions(+), 8 deletions(-)
> >
> > diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> > index 4d5924e9f766..2aba485025fd 100644
> > --- a/drivers/irqchip/Kconfig
> > +++ b/drivers/irqchip/Kconfig
> > @@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
> > Support for the UniPhier AIDET (ARM Interrupt Detector).
> >
> > config MESON_IRQ_GPIO
> > - bool "Meson GPIO Interrupt Multiplexer"
> > - depends on ARCH_MESON
> > + tristate "Meson GPIO Interrupt Multiplexer"
> > + depends on ARCH_MESON || COMPILE_TEST
> > + default ARCH_MESON
> > select IRQ_DOMAIN_HIERARCHY
> > help
> > Support Meson SoC Family GPIO Interrupt Multiplexer
> > diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
> > index e50676ce2ec8..d90ff0b92480 100644
> > --- a/drivers/irqchip/irq-meson-gpio.c
> > +++ b/drivers/irqchip/irq-meson-gpio.c
> > @@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
> > .translate = meson_gpio_irq_domain_translate,
> > };
> >
> > -static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> > - struct meson_gpio_irq_controller *ctl)
> > +static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
> > {
> > const struct of_device_id *match;
> > int ret;
> > @@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> > return 0;
> > }
> >
> > -static int __init meson_gpio_irq_of_init(struct device_node *node,
> > - struct device_node *parent)
> > +static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
> > {
> > struct irq_domain *domain, *parent_domain;
> > struct meson_gpio_irq_controller *ctl;
> > @@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
> > return ret;
> > }
> >
> > -IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
> > - meson_gpio_irq_of_init);
> > +IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
> > +IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
> > +IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
> > +
> > +MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
> > +MODULE_LICENSE("GPL v2");
> > +MODULE_ALIAS("platform:meson-gpio-intc");
> > --
>
> Acked-by: Saravana Kannan <saravanak@google.com>
>
> Marc, my mdio-mux patches have landed.
Reviewed-by: Lee Jones <lee.jones@linaro.org>
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-28 10:45 ` Lee Jones
0 siblings, 0 replies; 32+ messages in thread
From: Lee Jones @ 2021-09-28 10:45 UTC (permalink / raw)
To: Saravana Kannan
Cc: Neil Armstrong, maz, tglx, jbrunet, khilman, linux-amlogic,
linux-arm-kernel, linux-kernel
On Thu, 02 Sep 2021, Saravana Kannan wrote:
> On Thu, Sep 2, 2021 at 6:49 AM Neil Armstrong <narmstrong@baylibre.com> wrote:
> >
> > In order to reduce the kernel Image size on multi-platform distributions,
> > make it possible to build the Amlogic GPIO IRQ controller as a module
> > by switching it to a platform driver.
> >
> > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> > ---
> > drivers/irqchip/Kconfig | 5 +++--
> > drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
> > 2 files changed, 12 insertions(+), 8 deletions(-)
> >
> > diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> > index 4d5924e9f766..2aba485025fd 100644
> > --- a/drivers/irqchip/Kconfig
> > +++ b/drivers/irqchip/Kconfig
> > @@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
> > Support for the UniPhier AIDET (ARM Interrupt Detector).
> >
> > config MESON_IRQ_GPIO
> > - bool "Meson GPIO Interrupt Multiplexer"
> > - depends on ARCH_MESON
> > + tristate "Meson GPIO Interrupt Multiplexer"
> > + depends on ARCH_MESON || COMPILE_TEST
> > + default ARCH_MESON
> > select IRQ_DOMAIN_HIERARCHY
> > help
> > Support Meson SoC Family GPIO Interrupt Multiplexer
> > diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
> > index e50676ce2ec8..d90ff0b92480 100644
> > --- a/drivers/irqchip/irq-meson-gpio.c
> > +++ b/drivers/irqchip/irq-meson-gpio.c
> > @@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
> > .translate = meson_gpio_irq_domain_translate,
> > };
> >
> > -static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> > - struct meson_gpio_irq_controller *ctl)
> > +static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
> > {
> > const struct of_device_id *match;
> > int ret;
> > @@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
> > return 0;
> > }
> >
> > -static int __init meson_gpio_irq_of_init(struct device_node *node,
> > - struct device_node *parent)
> > +static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
> > {
> > struct irq_domain *domain, *parent_domain;
> > struct meson_gpio_irq_controller *ctl;
> > @@ -521,5 +519,10 @@ static int __init meson_gpio_irq_of_init(struct device_node *node,
> > return ret;
> > }
> >
> > -IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
> > - meson_gpio_irq_of_init);
> > +IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
> > +IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
> > +IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
> > +
> > +MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
> > +MODULE_LICENSE("GPL v2");
> > +MODULE_ALIAS("platform:meson-gpio-intc");
> > --
>
> Acked-by: Saravana Kannan <saravanak@google.com>
>
> Marc, my mdio-mux patches have landed.
Reviewed-by: Lee Jones <lee.jones@linaro.org>
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
2021-09-02 13:49 ` Neil Armstrong
(?)
@ 2021-09-28 23:27 ` Kevin Hilman
-1 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2021-09-28 23:27 UTC (permalink / raw)
To: Neil Armstrong, maz, tglx, jbrunet
Cc: lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Neil Armstrong <narmstrong@baylibre.com> writes:
> In order to reduce the kernel Image size on multi-platform distributions,
> make it possible to build the Amlogic GPIO IRQ controller as a module
> by switching it to a platform driver.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-28 23:27 ` Kevin Hilman
0 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2021-09-28 23:27 UTC (permalink / raw)
To: Neil Armstrong, maz, tglx, jbrunet
Cc: lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Neil Armstrong <narmstrong@baylibre.com> writes:
> In order to reduce the kernel Image size on multi-platform distributions,
> make it possible to build the Amlogic GPIO IRQ controller as a module
> by switching it to a platform driver.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 1/2] irqchip: irq-meson-gpio: make it possible to build as a module
@ 2021-09-28 23:27 ` Kevin Hilman
0 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2021-09-28 23:27 UTC (permalink / raw)
To: Neil Armstrong, maz, tglx, jbrunet
Cc: lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Neil Armstrong <narmstrong@baylibre.com> writes:
> In order to reduce the kernel Image size on multi-platform distributions,
> make it possible to build the Amlogic GPIO IRQ controller as a module
> by switching it to a platform driver.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
2021-09-02 13:49 ` Neil Armstrong
(?)
@ 2021-09-28 23:28 ` Kevin Hilman
-1 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2021-09-28 23:28 UTC (permalink / raw)
To: Neil Armstrong, maz, tglx, jbrunet
Cc: lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Neil Armstrong <narmstrong@baylibre.com> writes:
> Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
> as a module, thus remove it here and let the "default ARCH_MESON" build as
> built-in by default with the option to switch it to module.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
@ 2021-09-28 23:28 ` Kevin Hilman
0 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2021-09-28 23:28 UTC (permalink / raw)
To: Neil Armstrong, maz, tglx, jbrunet
Cc: lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Neil Armstrong <narmstrong@baylibre.com> writes:
> Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
> as a module, thus remove it here and let the "default ARCH_MESON" build as
> built-in by default with the option to switch it to module.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
@ 2021-09-28 23:28 ` Kevin Hilman
0 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2021-09-28 23:28 UTC (permalink / raw)
To: Neil Armstrong, maz, tglx, jbrunet
Cc: lee.jones, saravanak, linux-amlogic, linux-arm-kernel,
linux-kernel, Neil Armstrong
Neil Armstrong <narmstrong@baylibre.com> writes:
> Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
> as a module, thus remove it here and let the "default ARCH_MESON" build as
> built-in by default with the option to switch it to module.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 32+ messages in thread
* [irqchip: irq/irqchip-next] arm64: meson: remove MESON_IRQ_GPIO selection
2021-09-02 13:49 ` Neil Armstrong
` (2 preceding siblings ...)
(?)
@ 2021-10-20 18:47 ` irqchip-bot for Neil Armstrong
-1 siblings, 0 replies; 32+ messages in thread
From: irqchip-bot for Neil Armstrong @ 2021-10-20 18:47 UTC (permalink / raw)
To: linux-kernel; +Cc: Neil Armstrong, Kevin Hilman, Marc Zyngier, tglx
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: dfd8c90eb28b8f7c77ce7173c4bae591b26ea51a
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/dfd8c90eb28b8f7c77ce7173c4bae591b26ea51a
Author: Neil Armstrong <narmstrong@baylibre.com>
AuthorDate: Thu, 02 Sep 2021 15:49:14 +02:00
Committer: Marc Zyngier <maz@kernel.org>
CommitterDate: Wed, 20 Oct 2021 19:38:21 +01:00
arm64: meson: remove MESON_IRQ_GPIO selection
Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
as a module, thus remove it here and let the "default ARCH_MESON" build as
built-in by default with the option to switch it to module.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210902134914.176986-3-narmstrong@baylibre.com
---
arch/arm64/Kconfig.platforms | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index b0ce18d..ff2d83f 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -167,7 +167,6 @@ config ARCH_MEDIATEK
config ARCH_MESON
bool "Amlogic Platforms"
select COMMON_CLK
- select MESON_IRQ_GPIO
help
This enables support for the arm64 based Amlogic SoCs
such as the s905, S905X/D, S912, A113X/D or S905X/D2
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [irqchip: irq/irqchip-next] irqchip/meson-gpio: Make it possible to build as a module
2021-09-02 13:49 ` Neil Armstrong
` (5 preceding siblings ...)
(?)
@ 2021-10-20 18:47 ` irqchip-bot for Neil Armstrong
-1 siblings, 0 replies; 32+ messages in thread
From: irqchip-bot for Neil Armstrong @ 2021-10-20 18:47 UTC (permalink / raw)
To: linux-kernel
Cc: Neil Armstrong, Saravana Kannan, kernel test robot, Lee Jones,
Kevin Hilman, Marc Zyngier, tglx
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: a947aa00edd4d465f89fdb6029ed40c00a344bc2
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/a947aa00edd4d465f89fdb6029ed40c00a344bc2
Author: Neil Armstrong <narmstrong@baylibre.com>
AuthorDate: Thu, 02 Sep 2021 15:49:13 +02:00
Committer: Marc Zyngier <maz@kernel.org>
CommitterDate: Wed, 20 Oct 2021 19:38:01 +01:00
irqchip/meson-gpio: Make it possible to build as a module
In order to reduce the kernel Image size on multi-platform distributions,
make it possible to build the Amlogic GPIO IRQ controller as a module
by switching it to a platform driver.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Saravana Kannan <saravanak@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210902134914.176986-2-narmstrong@baylibre.com
---
drivers/irqchip/Kconfig | 5 +++--
drivers/irqchip/irq-meson-gpio.c | 15 +++++++++------
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index aca7b59..6a4496f 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -400,8 +400,9 @@ config IRQ_UNIPHIER_AIDET
Support for the UniPhier AIDET (ARM Interrupt Detector).
config MESON_IRQ_GPIO
- bool "Meson GPIO Interrupt Multiplexer"
- depends on ARCH_MESON
+ tristate "Meson GPIO Interrupt Multiplexer"
+ depends on ARCH_MESON || COMPILE_TEST
+ default ARCH_MESON
select IRQ_DOMAIN_HIERARCHY
help
Support Meson SoC Family GPIO Interrupt Multiplexer
diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c
index e50676c..d90ff0b 100644
--- a/drivers/irqchip/irq-meson-gpio.c
+++ b/drivers/irqchip/irq-meson-gpio.c
@@ -436,8 +436,7 @@ static const struct irq_domain_ops meson_gpio_irq_domain_ops = {
.translate = meson_gpio_irq_domain_translate,
};
-static int __init meson_gpio_irq_parse_dt(struct device_node *node,
- struct meson_gpio_irq_controller *ctl)
+static int meson_gpio_irq_parse_dt(struct device_node *node, struct meson_gpio_irq_controller *ctl)
{
const struct of_device_id *match;
int ret;
@@ -463,8 +462,7 @@ static int __init meson_gpio_irq_parse_dt(struct device_node *node,
return 0;
}
-static int __init meson_gpio_irq_of_init(struct device_node *node,
- struct device_node *parent)
+static int meson_gpio_irq_of_init(struct device_node *node, struct device_node *parent)
{
struct irq_domain *domain, *parent_domain;
struct meson_gpio_irq_controller *ctl;
@@ -521,5 +519,10 @@ free_ctl:
return ret;
}
-IRQCHIP_DECLARE(meson_gpio_intc, "amlogic,meson-gpio-intc",
- meson_gpio_irq_of_init);
+IRQCHIP_PLATFORM_DRIVER_BEGIN(meson_gpio_intc)
+IRQCHIP_MATCH("amlogic,meson-gpio-intc", meson_gpio_irq_of_init)
+IRQCHIP_PLATFORM_DRIVER_END(meson_gpio_intc)
+
+MODULE_AUTHOR("Jerome Brunet <jbrunet@baylibre.com>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:meson-gpio-intc");
^ permalink raw reply related [flat|nested] 32+ messages in thread
* Re: [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
2020-10-20 7:25 ` Neil Armstrong
(?)
@ 2020-10-20 23:18 ` Kevin Hilman
-1 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2020-10-20 23:18 UTC (permalink / raw)
To: Neil Armstrong, maz
Cc: jbrunet, linux-amlogic, linux-arm-kernel, linux-kernel, Neil Armstrong
Neil Armstrong <narmstrong@baylibre.com> writes:
> Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
> as a module, thus remove it here and let the "default ARCH_MESON" build as
> built-in by default with the option to switch it to module.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
I'll queue this one via the amlogic tree since we'll likely be removing
the rest of these selects soon too.
Kevin
> ---
> arch/arm64/Kconfig.platforms | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index cd58f8495c45..dfb66917f665 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -157,7 +157,6 @@ config ARCH_MESON
> select COMMON_CLK_GXBB
> select COMMON_CLK_AXG
> select COMMON_CLK_G12A
> - select MESON_IRQ_GPIO
> help
> This enables support for the arm64 based Amlogic SoCs
> such as the s905, S905X/D, S912, A113X/D or S905X/D2
> --
> 2.25.1
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
@ 2020-10-20 23:18 ` Kevin Hilman
0 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2020-10-20 23:18 UTC (permalink / raw)
To: Neil Armstrong, maz
Cc: linux-amlogic, Neil Armstrong, linux-kernel, linux-arm-kernel, jbrunet
Neil Armstrong <narmstrong@baylibre.com> writes:
> Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
> as a module, thus remove it here and let the "default ARCH_MESON" build as
> built-in by default with the option to switch it to module.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
I'll queue this one via the amlogic tree since we'll likely be removing
the rest of these selects soon too.
Kevin
> ---
> arch/arm64/Kconfig.platforms | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index cd58f8495c45..dfb66917f665 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -157,7 +157,6 @@ config ARCH_MESON
> select COMMON_CLK_GXBB
> select COMMON_CLK_AXG
> select COMMON_CLK_G12A
> - select MESON_IRQ_GPIO
> help
> This enables support for the arm64 based Amlogic SoCs
> such as the s905, S905X/D, S912, A113X/D or S905X/D2
> --
> 2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
@ 2020-10-20 23:18 ` Kevin Hilman
0 siblings, 0 replies; 32+ messages in thread
From: Kevin Hilman @ 2020-10-20 23:18 UTC (permalink / raw)
To: Neil Armstrong, maz
Cc: linux-amlogic, Neil Armstrong, linux-kernel, linux-arm-kernel, jbrunet
Neil Armstrong <narmstrong@baylibre.com> writes:
> Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
> as a module, thus remove it here and let the "default ARCH_MESON" build as
> built-in by default with the option to switch it to module.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
I'll queue this one via the amlogic tree since we'll likely be removing
the rest of these selects soon too.
Kevin
> ---
> arch/arm64/Kconfig.platforms | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index cd58f8495c45..dfb66917f665 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -157,7 +157,6 @@ config ARCH_MESON
> select COMMON_CLK_GXBB
> select COMMON_CLK_AXG
> select COMMON_CLK_G12A
> - select MESON_IRQ_GPIO
> help
> This enables support for the arm64 based Amlogic SoCs
> such as the s905, S905X/D, S912, A113X/D or S905X/D2
> --
> 2.25.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 32+ messages in thread
* [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
2020-10-20 7:25 [PATCH 0/2] irq-meson-gpio: make it possible to build as a module Neil Armstrong
2020-10-20 7:25 ` Neil Armstrong
@ 2020-10-20 7:25 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2020-10-20 7:25 UTC (permalink / raw)
To: maz
Cc: jbrunet, linux-amlogic, khilman, linux-arm-kernel, linux-kernel,
Neil Armstrong
Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
as a module, thus remove it here and let the "default ARCH_MESON" build as
built-in by default with the option to switch it to module.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index cd58f8495c45..dfb66917f665 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -157,7 +157,6 @@ config ARCH_MESON
select COMMON_CLK_GXBB
select COMMON_CLK_AXG
select COMMON_CLK_G12A
- select MESON_IRQ_GPIO
help
This enables support for the arm64 based Amlogic SoCs
such as the s905, S905X/D, S912, A113X/D or S905X/D2
--
2.25.1
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
@ 2020-10-20 7:25 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2020-10-20 7:25 UTC (permalink / raw)
To: maz
Cc: Neil Armstrong, khilman, linux-kernel, linux-amlogic,
linux-arm-kernel, jbrunet
Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
as a module, thus remove it here and let the "default ARCH_MESON" build as
built-in by default with the option to switch it to module.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index cd58f8495c45..dfb66917f665 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -157,7 +157,6 @@ config ARCH_MESON
select COMMON_CLK_GXBB
select COMMON_CLK_AXG
select COMMON_CLK_G12A
- select MESON_IRQ_GPIO
help
This enables support for the arm64 based Amlogic SoCs
such as the s905, S905X/D, S912, A113X/D or S905X/D2
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 32+ messages in thread
* [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection
@ 2020-10-20 7:25 ` Neil Armstrong
0 siblings, 0 replies; 32+ messages in thread
From: Neil Armstrong @ 2020-10-20 7:25 UTC (permalink / raw)
To: maz
Cc: Neil Armstrong, khilman, linux-kernel, linux-amlogic,
linux-arm-kernel, jbrunet
Selecting MESON_IRQ_GPIO forces it as built-in, but we may need to build it
as a module, thus remove it here and let the "default ARCH_MESON" build as
built-in by default with the option to switch it to module.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
arch/arm64/Kconfig.platforms | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index cd58f8495c45..dfb66917f665 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -157,7 +157,6 @@ config ARCH_MESON
select COMMON_CLK_GXBB
select COMMON_CLK_AXG
select COMMON_CLK_G12A
- select MESON_IRQ_GPIO
help
This enables support for the arm64 based Amlogic SoCs
such as the s905, S905X/D, S912, A113X/D or S905X/D2
--
2.25.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply related [flat|nested] 32+ messages in thread
end of thread, other threads:[~2021-10-20 18:47 UTC | newest]
Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 13:49 [PATCH 0/2] irq-meson-gpio: make it possible to build as a module Neil Armstrong
2021-09-02 13:49 ` Neil Armstrong
2021-09-02 13:49 ` Neil Armstrong
2021-09-02 13:49 ` [PATCH 1/2] irqchip: " Neil Armstrong
2021-09-02 13:49 ` Neil Armstrong
2021-09-02 13:49 ` Neil Armstrong
2021-09-02 17:00 ` Saravana Kannan
2021-09-02 17:00 ` Saravana Kannan
2021-09-02 17:00 ` Saravana Kannan
2021-09-28 10:45 ` Lee Jones
2021-09-28 10:45 ` Lee Jones
2021-09-28 10:45 ` Lee Jones
2021-09-02 20:01 ` kernel test robot
2021-09-02 22:10 ` kernel test robot
2021-09-02 22:10 ` kernel test robot
2021-09-28 23:27 ` Kevin Hilman
2021-09-28 23:27 ` Kevin Hilman
2021-09-28 23:27 ` Kevin Hilman
2021-10-20 18:47 ` [irqchip: irq/irqchip-next] irqchip/meson-gpio: Make " irqchip-bot for Neil Armstrong
2021-09-02 13:49 ` [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection Neil Armstrong
2021-09-02 13:49 ` Neil Armstrong
2021-09-02 13:49 ` Neil Armstrong
2021-09-28 23:28 ` Kevin Hilman
2021-09-28 23:28 ` Kevin Hilman
2021-09-28 23:28 ` Kevin Hilman
2021-10-20 18:47 ` [irqchip: irq/irqchip-next] " irqchip-bot for Neil Armstrong
-- strict thread matches above, loose matches on Subject: below --
2020-10-20 7:25 [PATCH 0/2] irq-meson-gpio: make it possible to build as a module Neil Armstrong
2020-10-20 7:25 ` [PATCH 2/2] arm64: meson: remove MESON_IRQ_GPIO selection Neil Armstrong
2020-10-20 7:25 ` Neil Armstrong
2020-10-20 7:25 ` Neil Armstrong
2020-10-20 23:18 ` Kevin Hilman
2020-10-20 23:18 ` Kevin Hilman
2020-10-20 23:18 ` Kevin Hilman
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.