* [PATCH 0/3] ARCH_BCM2835 Kconfig changes
@ 2024-05-13 23:52 Florian Fainelli
2024-05-13 23:52 ` [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 Florian Fainelli
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Florian Fainelli @ 2024-05-13 23:52 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Florian Fainelli, Michael Turquette, Stephen Boyd, Jassi Brar,
Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold,
Michael S. Tsirkin, Sudeep Holla, Conor Dooley,
Bartosz Golaszewski, open list:COMMON CLK FRAMEWORK, open list,
Stefan Wahren
This patch series updates a number of Kconfig entries such that enable
ARCH_BCM2835 guarantees that essential drivers are also enabled, saves a
lot of configuration and troubleshooting time for when they are not.
Florian Fainelli (3):
mailbox: Make BCM2835_MBOX default to ARCH_BCM2835
firmware: Default RASPBERRYPI_FIRMWARE to ARCH_BCM2835
clk: bcm: Make CLK_RASPBERRYPI default to RASPBERRYPI_FIRMWARE
drivers/clk/bcm/Kconfig | 1 +
drivers/firmware/Kconfig | 1 +
drivers/mailbox/Kconfig | 1 +
3 files changed, 3 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 2024-05-13 23:52 [PATCH 0/3] ARCH_BCM2835 Kconfig changes Florian Fainelli @ 2024-05-13 23:52 ` Florian Fainelli 2024-05-14 12:29 ` Conor Dooley 2024-05-13 23:52 ` [PATCH 2/3] firmware: Default RASPBERRYPI_FIRMWARE " Florian Fainelli 2024-05-13 23:52 ` [PATCH 3/3] clk: bcm: Make CLK_RASPBERRYPI default to RASPBERRYPI_FIRMWARE Florian Fainelli 2 siblings, 1 reply; 9+ messages in thread From: Florian Fainelli @ 2024-05-13 23:52 UTC (permalink / raw) To: linux-arm-kernel Cc: Florian Fainelli, Michael Turquette, Stephen Boyd, Jassi Brar, Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold, Michael S. Tsirkin, Sudeep Holla, Conor Dooley, Bartosz Golaszewski, open list:COMMON CLK FRAMEWORK, open list, Stefan Wahren This driver is depended on by CONFIG_FIRMWARE_RASPBERRYPI which provides a number of essential services, including but not limited to a Linux common clock framework provider. Make sure that enable CONFIG_ARCH_BCM2835 does enable the corresponding mailbox driver. Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> --- drivers/mailbox/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig index 42940108a187..2b4cde562a90 100644 --- a/drivers/mailbox/Kconfig +++ b/drivers/mailbox/Kconfig @@ -109,6 +109,7 @@ config ALTERA_MBOX config BCM2835_MBOX tristate "BCM2835 Mailbox" depends on ARCH_BCM2835 + default ARCH_BCM2835 help An implementation of the BCM2385 Mailbox. It is used to invoke the services of the Videocore. Say Y here if you want to use the -- 2.34.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 2024-05-13 23:52 ` [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 Florian Fainelli @ 2024-05-14 12:29 ` Conor Dooley 2024-05-14 16:20 ` Florian Fainelli 0 siblings, 1 reply; 9+ messages in thread From: Conor Dooley @ 2024-05-14 12:29 UTC (permalink / raw) To: Florian Fainelli Cc: linux-arm-kernel, Michael Turquette, Stephen Boyd, Jassi Brar, Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold, Michael S. Tsirkin, Sudeep Holla, Conor Dooley, Bartosz Golaszewski, open list:COMMON CLK FRAMEWORK, open list, Stefan Wahren [-- Attachment #1: Type: text/plain, Size: 1248 bytes --] On Mon, May 13, 2024 at 04:52:32PM -0700, Florian Fainelli wrote: > This driver is depended on by CONFIG_FIRMWARE_RASPBERRYPI which provides > a number of essential services, including but not limited to a Linux > common clock framework provider. Make sure that enable > CONFIG_ARCH_BCM2835 does enable the corresponding mailbox driver. > > Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> > --- > drivers/mailbox/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig > index 42940108a187..2b4cde562a90 100644 > --- a/drivers/mailbox/Kconfig > +++ b/drivers/mailbox/Kconfig > @@ -109,6 +109,7 @@ config ALTERA_MBOX > config BCM2835_MBOX > tristate "BCM2835 Mailbox" > depends on ARCH_BCM2835 > + default ARCH_BCM2835 This is just "default y", since I doubt ARCH_BCM2835 can be a module? If so, patch 2 could also just be "default y" and I think patch 3 can have the same logic applied to it, given you're defaulting it to a dependency also? Thanks, Conor. > help > An implementation of the BCM2385 Mailbox. It is used to invoke > the services of the Videocore. Say Y here if you want to use the > -- > 2.34.1 > [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 2024-05-14 12:29 ` Conor Dooley @ 2024-05-14 16:20 ` Florian Fainelli 2024-05-15 7:54 ` Conor Dooley 0 siblings, 1 reply; 9+ messages in thread From: Florian Fainelli @ 2024-05-14 16:20 UTC (permalink / raw) To: Conor Dooley Cc: linux-arm-kernel, Michael Turquette, Stephen Boyd, Jassi Brar, Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold, Michael S. Tsirkin, Sudeep Holla, Conor Dooley, Bartosz Golaszewski, open list:COMMON CLK FRAMEWORK, open list, Stefan Wahren [-- Attachment #1: Type: text/plain, Size: 1243 bytes --] On 5/14/24 05:29, Conor Dooley wrote: > On Mon, May 13, 2024 at 04:52:32PM -0700, Florian Fainelli wrote: >> This driver is depended on by CONFIG_FIRMWARE_RASPBERRYPI which provides >> a number of essential services, including but not limited to a Linux >> common clock framework provider. Make sure that enable >> CONFIG_ARCH_BCM2835 does enable the corresponding mailbox driver. >> >> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> >> --- >> drivers/mailbox/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig >> index 42940108a187..2b4cde562a90 100644 >> --- a/drivers/mailbox/Kconfig >> +++ b/drivers/mailbox/Kconfig >> @@ -109,6 +109,7 @@ config ALTERA_MBOX >> config BCM2835_MBOX >> tristate "BCM2835 Mailbox" >> depends on ARCH_BCM2835 >> + default ARCH_BCM2835 > > This is just "default y", since I doubt ARCH_BCM2835 can be a module? Right, although I intend to also add COMPILE_TEST, by then, it might be preferable to have it "default ARCH_BCM2835". > > If so, patch 2 could also just be "default y" and I think patch 3 can > have the same logic applied to it, given you're defaulting it to a > dependency also? Right. -- Florian [-- Attachment #2: S/MIME Cryptographic Signature --] [-- Type: application/pkcs7-signature, Size: 4221 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 2024-05-14 16:20 ` Florian Fainelli @ 2024-05-15 7:54 ` Conor Dooley 2024-05-31 21:36 ` Florian Fainelli 0 siblings, 1 reply; 9+ messages in thread From: Conor Dooley @ 2024-05-15 7:54 UTC (permalink / raw) To: Florian Fainelli Cc: Conor Dooley, linux-arm-kernel, Michael Turquette, Stephen Boyd, Jassi Brar, Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold, Michael S. Tsirkin, Sudeep Holla, Bartosz Golaszewski, open list:COMMON CLK FRAMEWORK, open list, Stefan Wahren [-- Attachment #1: Type: text/plain, Size: 1342 bytes --] On Tue, May 14, 2024 at 09:20:06AM -0700, Florian Fainelli wrote: > On 5/14/24 05:29, Conor Dooley wrote: > > On Mon, May 13, 2024 at 04:52:32PM -0700, Florian Fainelli wrote: > > > This driver is depended on by CONFIG_FIRMWARE_RASPBERRYPI which provides > > > a number of essential services, including but not limited to a Linux > > > common clock framework provider. Make sure that enable > > > CONFIG_ARCH_BCM2835 does enable the corresponding mailbox driver. > > > > > > Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> > > > --- > > > drivers/mailbox/Kconfig | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig > > > index 42940108a187..2b4cde562a90 100644 > > > --- a/drivers/mailbox/Kconfig > > > +++ b/drivers/mailbox/Kconfig > > > @@ -109,6 +109,7 @@ config ALTERA_MBOX > > > config BCM2835_MBOX > > > tristate "BCM2835 Mailbox" > > > depends on ARCH_BCM2835 > > > + default ARCH_BCM2835 > > > > This is just "default y", since I doubt ARCH_BCM2835 can be a module? > > Right, although I intend to also add COMPILE_TEST, by then, it might be > preferable to have it "default ARCH_BCM2835". I'm not sure what COMPILE_TEST would have to do with the default, the default shouldn't be important there, right? [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 2024-05-15 7:54 ` Conor Dooley @ 2024-05-31 21:36 ` Florian Fainelli 0 siblings, 0 replies; 9+ messages in thread From: Florian Fainelli @ 2024-05-31 21:36 UTC (permalink / raw) To: Conor Dooley Cc: Conor Dooley, linux-arm-kernel, Michael Turquette, Stephen Boyd, Jassi Brar, Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold, Michael S. Tsirkin, Sudeep Holla, Bartosz Golaszewski, open list:COMMON CLK FRAMEWORK, open list, Stefan Wahren [-- Attachment #1: Type: text/plain, Size: 1585 bytes --] On 5/15/24 00:54, Conor Dooley wrote: > On Tue, May 14, 2024 at 09:20:06AM -0700, Florian Fainelli wrote: >> On 5/14/24 05:29, Conor Dooley wrote: >>> On Mon, May 13, 2024 at 04:52:32PM -0700, Florian Fainelli wrote: >>>> This driver is depended on by CONFIG_FIRMWARE_RASPBERRYPI which provides >>>> a number of essential services, including but not limited to a Linux >>>> common clock framework provider. Make sure that enable >>>> CONFIG_ARCH_BCM2835 does enable the corresponding mailbox driver. >>>> >>>> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> >>>> --- >>>> drivers/mailbox/Kconfig | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig >>>> index 42940108a187..2b4cde562a90 100644 >>>> --- a/drivers/mailbox/Kconfig >>>> +++ b/drivers/mailbox/Kconfig >>>> @@ -109,6 +109,7 @@ config ALTERA_MBOX >>>> config BCM2835_MBOX >>>> tristate "BCM2835 Mailbox" >>>> depends on ARCH_BCM2835 >>>> + default ARCH_BCM2835 >>> >>> This is just "default y", since I doubt ARCH_BCM2835 can be a module? >> >> Right, although I intend to also add COMPILE_TEST, by then, it might be >> preferable to have it "default ARCH_BCM2835". > > I'm not sure what COMPILE_TEST would have to do with the default, > the default shouldn't be important there, right? Sorry for the late feedback, what I meant is that when you do enable COMPILE_TEST, you might not want everything to be defaulted to 'y' by default, but that can be fixed when I add COMPILE_TEST after this patch series land. -- Florian [-- Attachment #2: S/MIME Cryptographic Signature --] [-- Type: application/pkcs7-signature, Size: 4221 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/3] firmware: Default RASPBERRYPI_FIRMWARE to ARCH_BCM2835 2024-05-13 23:52 [PATCH 0/3] ARCH_BCM2835 Kconfig changes Florian Fainelli 2024-05-13 23:52 ` [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 Florian Fainelli @ 2024-05-13 23:52 ` Florian Fainelli 2024-05-13 23:52 ` [PATCH 3/3] clk: bcm: Make CLK_RASPBERRYPI default to RASPBERRYPI_FIRMWARE Florian Fainelli 2 siblings, 0 replies; 9+ messages in thread From: Florian Fainelli @ 2024-05-13 23:52 UTC (permalink / raw) To: linux-arm-kernel Cc: Florian Fainelli, Michael Turquette, Stephen Boyd, Jassi Brar, Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold, Michael S. Tsirkin, Sudeep Holla, Conor Dooley, Bartosz Golaszewski, open list:COMMON CLK FRAMEWORK, open list, Stefan Wahren The firmware driver provides the communication interface for a number of other essential drivers, including a clock provider. Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> --- drivers/firmware/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index 71d8b26c4103..ae9b28703165 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig @@ -116,6 +116,7 @@ config ISCSI_IBFT config RASPBERRYPI_FIRMWARE tristate "Raspberry Pi Firmware Driver" depends on BCM2835_MBOX + default ARCH_BCM2835 help This option enables support for communicating with the firmware on the Raspberry Pi. -- 2.34.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/3] clk: bcm: Make CLK_RASPBERRYPI default to RASPBERRYPI_FIRMWARE 2024-05-13 23:52 [PATCH 0/3] ARCH_BCM2835 Kconfig changes Florian Fainelli 2024-05-13 23:52 ` [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 Florian Fainelli 2024-05-13 23:52 ` [PATCH 2/3] firmware: Default RASPBERRYPI_FIRMWARE " Florian Fainelli @ 2024-05-13 23:52 ` Florian Fainelli 2024-05-14 21:06 ` Stephen Boyd 2 siblings, 1 reply; 9+ messages in thread From: Florian Fainelli @ 2024-05-13 23:52 UTC (permalink / raw) To: linux-arm-kernel Cc: Florian Fainelli, Michael Turquette, Stephen Boyd, Jassi Brar, Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold, Michael S. Tsirkin, Sudeep Holla, Conor Dooley, Bartosz Golaszewski, open list:COMMON CLK FRAMEWORK, open list, Stefan Wahren The clock driver is essential in providing clocks for UARTs and other peripherals, make it enabled by default. Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> --- drivers/clk/bcm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig index a972d763eb77..90e7bab851ae 100644 --- a/drivers/clk/bcm/Kconfig +++ b/drivers/clk/bcm/Kconfig @@ -106,6 +106,7 @@ config CLK_BCM_SR config CLK_RASPBERRYPI tristate "Raspberry Pi firmware based clock support" depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE) + default RASPBERRYPI_FIRMWARE help Enable common clock framework support for Raspberry Pi's firmware dependent clocks -- 2.34.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 3/3] clk: bcm: Make CLK_RASPBERRYPI default to RASPBERRYPI_FIRMWARE 2024-05-13 23:52 ` [PATCH 3/3] clk: bcm: Make CLK_RASPBERRYPI default to RASPBERRYPI_FIRMWARE Florian Fainelli @ 2024-05-14 21:06 ` Stephen Boyd 0 siblings, 0 replies; 9+ messages in thread From: Stephen Boyd @ 2024-05-14 21:06 UTC (permalink / raw) To: Florian Fainelli, linux-arm-kernel Cc: Florian Fainelli, Michael Turquette, Jassi Brar, Bjorn Andersson, Maximilian Luz, Ard Biesheuvel, Johan Hovold, Michael S. Tsirkin, Sudeep Holla, Conor Dooley, Bartosz Golaszewski, linux-clk, linux-kernel, Stefan Wahren Quoting Florian Fainelli (2024-05-13 16:52:34) > The clock driver is essential in providing clocks for UARTs and other > peripherals, make it enabled by default. > > Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> > --- Acked-by: Stephen Boyd <sboyd@kernel.org> ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-05-31 21:36 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-05-13 23:52 [PATCH 0/3] ARCH_BCM2835 Kconfig changes Florian Fainelli 2024-05-13 23:52 ` [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 Florian Fainelli 2024-05-14 12:29 ` Conor Dooley 2024-05-14 16:20 ` Florian Fainelli 2024-05-15 7:54 ` Conor Dooley 2024-05-31 21:36 ` Florian Fainelli 2024-05-13 23:52 ` [PATCH 2/3] firmware: Default RASPBERRYPI_FIRMWARE " Florian Fainelli 2024-05-13 23:52 ` [PATCH 3/3] clk: bcm: Make CLK_RASPBERRYPI default to RASPBERRYPI_FIRMWARE Florian Fainelli 2024-05-14 21:06 ` Stephen Boyd
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox