diff mbox series

[3/5] firmware: arm_scmi: add config dependency for smc transport

Message ID 20201008143722.21888-3-etienne.carriere@linaro.org (mailing list archive)
State New, archived
Headers show
Series [1/5] firmware: arm_scmi: always initialize protocols | expand

Commit Message

Etienne Carriere Oct. 8, 2020, 2:37 p.m. UTC
Fix dependencies for configuration switch ARM_SCMI_PROTOCOL that
is not exclusively dependent on MAILBOX since the alternate
smc transport that is depends on HAVE_ARM_SMCCC_DISCOVERY since [1].

Link: [1] d76428237784 ("firmware: arm_scmi: Use HAVE_ARM_SMCCC_DISCOVERY instead of ARM_PSCI_FW")
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
---
 drivers/firmware/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sudeep Holla Oct. 8, 2020, 9:08 p.m. UTC | #1
On Thu, Oct 08, 2020 at 04:37:20PM +0200, Etienne Carriere wrote:
> Fix dependencies for configuration switch ARM_SCMI_PROTOCOL that
> is not exclusively dependent on MAILBOX since the alternate
> smc transport that is depends on HAVE_ARM_SMCCC_DISCOVERY since [1].
>

Do you need any build issues ? I don't see why this is needed.
Etienne Carriere Oct. 9, 2020, 12:33 p.m. UTC | #2
On Thu, 8 Oct 2020 at 23:08, Sudeep Holla <sudeep.holla@arm.com> wrote:
>
> On Thu, Oct 08, 2020 at 04:37:20PM +0200, Etienne Carriere wrote:
> > Fix dependencies for configuration switch ARM_SCMI_PROTOCOL that
> > is not exclusively dependent on MAILBOX since the alternate
> > smc transport that is depends on HAVE_ARM_SMCCC_DISCOVERY since [1].
> >
>
> Do you need any build issues ? I don't see why this is needed.
>

This change is for consistency of the kernel configuration.
Without this change, a kernel configured without CONFIG_MAILBOX
cannot embed SCMI support even is using only the SMC transport
enabled thanks to HAVE_ARM_SMCCC_DISCOVERY.

Regards,
Etienne

> --
> Regards,
> Sudeep
Sudeep Holla Oct. 9, 2020, 3:58 p.m. UTC | #3
On Fri, Oct 09, 2020 at 02:33:41PM +0200, Etienne Carriere wrote:
> On Thu, 8 Oct 2020 at 23:08, Sudeep Holla <sudeep.holla@arm.com> wrote:
> >
> > On Thu, Oct 08, 2020 at 04:37:20PM +0200, Etienne Carriere wrote:
> > > Fix dependencies for configuration switch ARM_SCMI_PROTOCOL that
> > > is not exclusively dependent on MAILBOX since the alternate
> > > smc transport that is depends on HAVE_ARM_SMCCC_DISCOVERY since [1].
> > >
> >
> > Do you need any build issues ? I don't see why this is needed.
> >
> 
> This change is for consistency of the kernel configuration.
> Without this change, a kernel configured without CONFIG_MAILBOX
> cannot embed SCMI support even is using only the SMC transport
> enabled thanks to HAVE_ARM_SMCCC_DISCOVERY.
> 

Fair enough, however instead of adding to the list for each added transport
we need to do better transport abstraction now that we have multiple.
I don't see this as critical, let me know if you disagree.
Etienne Carriere Oct. 12, 2020, 10:11 a.m. UTC | #4
On Fri, 9 Oct 2020 at 17:58, Sudeep Holla <sudeep.holla@arm.com> wrote:
>
> On Fri, Oct 09, 2020 at 02:33:41PM +0200, Etienne Carriere wrote:
> > On Thu, 8 Oct 2020 at 23:08, Sudeep Holla <sudeep.holla@arm.com> wrote:
> > >
> > > On Thu, Oct 08, 2020 at 04:37:20PM +0200, Etienne Carriere wrote:
> > > > Fix dependencies for configuration switch ARM_SCMI_PROTOCOL that
> > > > is not exclusively dependent on MAILBOX since the alternate
> > > > smc transport that is depends on HAVE_ARM_SMCCC_DISCOVERY since [1].
> > > >
> > >
> > > Do you need any build issues ? I don't see why this is needed.
> > >
> >
> > This change is for consistency of the kernel configuration.
> > Without this change, a kernel configured without CONFIG_MAILBOX
> > cannot embed SCMI support even is using only the SMC transport
> > enabled thanks to HAVE_ARM_SMCCC_DISCOVERY.
> >
>
> Fair enough, however instead of adding to the list for each added transport
> we need to do better transport abstraction now that we have multiple.
> I don't see this as critical, let me know if you disagree.

Not critical, I agree :)

etienne

>
> --
> Regards,
> Sudeep
diff mbox series

Patch

diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index 3315e3c21586..5bdd411206ff 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -9,7 +9,7 @@  menu "Firmware Drivers"
 config ARM_SCMI_PROTOCOL
 	tristate "ARM System Control and Management Interface (SCMI) Message Protocol"
 	depends on ARM || ARM64 || COMPILE_TEST
-	depends on MAILBOX
+	depends on MAILBOX || HAVE_ARM_SMCCC_DISCOVERY
 	help
 	  ARM System Control and Management Interface (SCMI) protocol is a
 	  set of operating system-independent software interfaces that are