Hi Jonathan
On Tue, Mar 30, 2021 at 06:34:04PM +0100, Jonathan Cameron wrote:
> On Tue, 30 Mar 2021 13:51:13 +0100
> Cristian Marussi wrote:
>
> > Hi Jonathan,
> >
> > On Tue, Mar 30, 2021 at 12:33:25PM +0100, Jonathan Cameron wrote:
> > > On Tue, 16 Ma
-by: Jonathan Cameron
Signed-off-by: Cristian Marussi
Signed-off-by: Sudeep Holla
v7 --> v8
- make sensor_ops NON global
---
drivers/iio/common/scmi_sensors/scmi_iio.c | 100 ++---
1 file changed, 50 insertions(+), 50 deletions(-)
diff --git a/drivers/iio/com
Hi Jonathan,
On Tue, Mar 30, 2021 at 12:33:25PM +0100, Jonathan Cameron wrote:
> On Tue, 16 Mar 2021 12:48:50 +
> Cristian Marussi wrote:
>
> > Port driver to the new SCMI Sensor interface based on protocol handles
> > and common devm_get_ops().
> >
> > Cc
Port driver to the new SCMI Clock interface based on protocol handles
and common devm_get_ops().
Cc: Michael Turquette
Cc: Stephen Boyd
Signed-off-by: Cristian Marussi
---
v7 -> v8
- renamed local clk_ops to scmi_proto_clk_ops
v6 -> v7
- fixed Copyright
- renamed non-static function
On Thu, Mar 25, 2021 at 09:09:52PM -0700, Florian Fainelli wrote:
>
>
> On 3/16/2021 5:48 AM, Cristian Marussi wrote:
> > Hi all,
> >
> > The current SCMI implementation does not provide an interface to easily
> > develop and include a custom vendor protocol im
On Thu, Mar 25, 2021 at 05:08:59PM -0700, Stephen Boyd wrote:
> Sorry didn't notice because linux-...@vger.kernel.org wasn't Cced
>
Ah, sorry my bad.
> Quoting Cristian Marussi (2021-03-16 05:48:43)
> > Port driver to the new SCMI Clock interface based on protoc
27 314546618368.00
-3144 -3135 -3126 314647052288.00
^CCaught signal 2
Disabling: in_accel_x_en
Disabling: in_accel_z_en
Disabling: in_timestamp_en
Disabling: in_accel_y_en
> Thanks,
> Jyoti
>
> On Tue, Mar 16, 2021 at 5:50 AM Cristian Marussi
> wrote:
> >
> > Port
Hi
I reposted my series on top of the take3 immutable branch from Jonathan
at:
https://lore.kernel.org/lkml/20210316124903.35011-1-cristian.maru...@arm.com/T/#t
You should have received an email regarding the relevant IIO SCMI patch
v7-0025-iio-scmi-port-driver-to-the-new-scmi_sensor_proto.patc
Remove all the events registration code used to ease the transition to the
new interface based on protocol handles..
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/base.c| 4 ++--
drivers/firmware/arm_scmi/notify.h | 6 +++---
drivers/firmware/arm_scmi/perf.c| 9
long as the requested
underlying protocol is defined in the DT.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- renamed non-static function to fit scmi__ naming pattern
v4 --> v5
- using klist instead of custom lists
v3 --> v4
- add a few comments
---
drivers/firmware/arm_scmi/bus.c
Extend SCMI protocols accounting mechanism to address possible module
usage and add the support to possibly define new protocols as loadable
modules.
Keep Standard protocols built into the SCMI core.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- rename used IDR scmi_available_protoc
Rename non devres managed notify_ops to use a naming pattern which exposes
the performed action verb as last token.
No functional change.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- renamed non-static function to fit scmi__ naming pattern
---
drivers/firmware/arm_scmi/notify.c |
Remove unused core scmi_xfer wrappers now that we have migrated all
protocols to the new interface based on protocol handles.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/common.h | 15 -
drivers/firmware/arm_scmi/driver.c | 91 --
2 files
ted
helpers.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- renamed non-static function to fit scmi__ naming pattern
---
drivers/firmware/arm_scmi/common.h | 4 +++
drivers/firmware/arm_scmi/driver.c | 21 ++
drivers/firmware/arm_scmi/notify.c | 45 ++
i
Now that all protocols and drivers have been ported to the new interface
based on protocol handles and get/put operations, remove all the legacy
transient initialization code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/bus.c| 26 +-
drivers
Now that all the protocol private variable data have been moved out of
struct scmi_handle, mark all of its references as const.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- reworks to fit into refactored scmi_get_protocol_instance()
---
drivers/firmware/arm_scmi/common.h | 4 ++--
driv
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/voltage.c | 67 -
include/linux/scmi_protocol.h | 16 ---
2
Port driver to the new SCMI Voltage interface based on protocol handles
and common devm_get_ops().
Cc: Mark Brown
Acked-by: Mark Brown
Signed-off-by: Cristian Marussi
---
v6 -> v7
- fixed Copyright
v4 --> v5
- using renamed devm_get/put_protocol
---
drivers/regulator/scmi-regulator.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/voltage.c | 179 ++--
include/linux/scmi_protocol.h | 24 ++--
2 files changed, 136 insertions(+), 67 deletions(-)
diff --git a/drivers/firmware/arm_scmi/voltage.c
b/drivers/firmware/arm_scmi/voltage.c
Convert internals of protocol implementation to use protocol handles and
expose a new protocol operations interface for SCMI driver using the new
get/put common operations.
Remove handle->system_priv now unused.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/system.c |
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/sensors.c | 82 -
include/linux/scmi_protocol.h | 19 ---
2
Port driver to the new SCMI Sensor interface based on protocol handles
and common devm_get_ops().
Cc: Jyoti Bhayana
Cc: Jonathan Cameron
Signed-off-by: Cristian Marussi
---
drivers/iio/common/scmi_sensors/scmi_iio.c | 91 ++
1 file changed, 41 insertions(+), 50 deletions
Port driver to the new SCMI Sensor interface based on protocol handles
and common devm_get_ops().
Cc: Guenter Roeck
Cc: Jean Delvare
Acked-by: Guenter Roeck
Signed-off-by: Cristian Marussi
---
v6 -> v7
- fixed Copyright
- renamed non-static function to fit scmi__ naming pattern
v4 --&
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/reset.c | 68 ---
include/linux/scmi_protocol.h | 11 -
2 files
ed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/sensors.c | 275 ++--
include/linux/scmi_protocol.h | 22 ++-
2 files changed, 194 insertions(+), 103 deletions(-)
diff --git a/drivers/firmware/arm_scmi/sensors.c
b/drivers/firmware/arm_scmi/sensors.c
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/clock.c | 67 ---
include/linux/scmi_protocol.h | 15 ---
2 files
Port driver to the new SCMI Reset interface based on protocol handles
and common devm_get_ops().
Cc: Philipp Zabel
Acked-by: Philipp Zabel
Signed-off-by: Cristian Marussi
---
v6 -> v7
- fixed Copyright
- renamed non-static function to fit scmi__ naming pattern
v4 --> v5
- using r
ed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/reset.c | 172 +-
include/linux/scmi_protocol.h | 14 ++-
2 files changed, 129 insertions(+), 57 deletions(-)
diff --git a/drivers/firmware/arm_scmi/reset.c
b/drivers/firmware/arm_scmi/reset.c
index 572dc1
Port driver to the new SCMI Clock interface based on protocol handles
and common devm_get_ops().
Cc: Michael Turquette
Cc: Stephen Boyd
Signed-off-by: Cristian Marussi
---
v6 -> v7
- fixed Copyright
- renamed non-static function to fit scmi__ naming pattern
v4 --> v5
- using renamed de
Port driver to the new SCMI Power interface based on protocol handles
and common devm_get_ops().
Signed-off-by: Cristian Marussi
---
v6 -> v7
- fixed Copyrigths
- renamed non-static function to fit scmi__ naming pattern
v4 --> v5
- using renamed devm_get/put_protocol
---
drivers/fi
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/power.c | 47 ---
include/linux/scmi_protocol.h | 11
2 files
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/perf.c | 120 ---
include/linux/scmi_protocol.h| 27 ---
2 files
off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/clock.c | 182 --
include/linux/scmi_protocol.h | 20 +++-
2 files changed, 139 insertions(+), 63 deletions(-)
diff --git a/drivers/firmware/arm_scmi/clock.c
b/drivers/firmware/arm_scmi/clock.c
index 2312e8
ed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/power.c | 141 +++---
include/linux/scmi_protocol.h | 20 +++--
2 files changed, 105 insertions(+), 56 deletions(-)
diff --git a/drivers/firmware/arm_scmi/power.c
b/drivers/firmware/arm_scmi/power.c
index 5f43c4
off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/perf.c | 349 ---
include/linux/scmi_protocol.h| 30 ++-
2 files changed, 258 insertions(+), 121 deletions(-)
diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c
index 6e37a6
Port driver to the new SCMI Perf interface based on protocol handles
and common devm_get_ops().
Cc: Rafael J. Wysocki
Cc: Viresh Kumar
Acked-by: Viresh Kumar
Signed-off-by: Cristian Marussi
---
v6 -> v7
- fixed Copyright
- reworked on top of recent cpufreq changes:
dac7a57d2a89 s
Add an helper to grab, from a protocol handle, the handle common memory
area allocated to store SCMI version data which is exposed on sysfs.
Such helper will be needed by SCMI Base protocol initialization once it
will be moved to new protocol handles scheme.
Signed-off-by: Cristian Marussi
Port Base protocol to new protocol handles based interface.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- renamed non-static function to fit scmi__ naming pattern
---
drivers/firmware/arm_scmi/base.c | 117 +++--
drivers/firmware/arm_scmi/common.h | 3 +-
driv
protocol migration.
In order to support such migration the above wrappers and some additional
transient code is also introduced in this commit: it will be later removed
as a whole once the full migration of protocols and SCMI drivers will have
been completed.
Signed-off-by: Cristian Marussi
---
An
to ease such transition.
Signed-off-by: Cristian Marussi
---
In particular void* argument typing will be reverted later on once all
the protocols have been ported.
v6 --> v7
- reworks to fit into refactored scmi_get_protocol_instance()
---
drivers/firmware/arm_scmi/base.c| 4 ++--
driv
the
legacy protocol init routines.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- reworks to fit into refactored scmi_get_protocol_instance()
- check, warn and ignore scmi_register_protocol_events errors
- fixed Copyright
---
drivers/firmware/arm_scmi/base.c| 15 +++--
drivers/firmw
Expose to the SCMI drivers a new alternative devres managed notifications
API based on protocol handles.
All drivers still keep using the old API, no functional change.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- constify src_id parameter
- renamed non-static function to fit scmi__ nam
Account for any active registered notifier against the proper related
protocol; do not consider pending event handlers, only active handlers
will concur to protocol usage accounting.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- renamed non-static function to fit scmi__ naming patt
Expose to the SCMI drivers a new devres managed common protocols API based
on generic get/put methods and protocol handles.
All drivers still keep using the old API, no functional change.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- renamed non-static function to fit scmi__ naming pattern
probing is still based on the old
interface, so no functional change.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- reworks to fit into refactored scmi_get_protocol_instance()
---
drivers/firmware/arm_scmi/common.h | 59 ++
drivers/firmware/arm_scmi/driver.c |
while
keeping them all still using the usual initialization logic bound to SCMI
devices probing.
Signed-off-by: Cristian Marussi
---
v6 --> v7
- fixed Copyrights
- reverted to scmi_protocols IDR naming
- fixed pr_* (.init()/GOT ==> init/Found)
- fixed checkpatch complaint about macros duplic
m_ variant for protocols operations
- made all scmi_protocol refs const
- introduced IDR to handle protocols instead of static array
- refactored code around fast path
[1]:https://gitlab.arm.com/linux-arm/linux-cm/-/commits/scmi_modules_ext_V7/
[2]:https://git.kernel.org/pub/scm/linux/kernel/git/s
Hi
On Mon, Mar 15, 2021 at 08:33:27AM +, Sudeep Holla wrote:
> Hi Cristian,
>
> Sorry for the delay.
>
No worries.
> On Tue, Feb 02, 2021 at 10:15:55PM +, Cristian Marussi wrote:
> > Having added the support for SCMI protocols as modules in order to let
> &
Hi Jonathan,
thanks for this, I was starting working on top of this new immutable
branch BUT I spotted a thing that I wanted to check.
You latest immutable:
https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/log/?h=ib-iio-scmi-5.12-rc2
looking at the code in the SCMI IIO Jyoti drive
:37PM +, Cristian Marussi wrote:
> Port driver to the new SCMI Clock interface based on protocol handles
> and common devm_get_ops().
>
> Cc: Michael Turquette
> Cc: Stephen Boyd
> Signed-off-by: Cristian Marussi
> ---
> v4 --> v5
> - using renamed devm_get/put
Hi Jonathan,
On Tue, Mar 09, 2021 at 10:27:01AM +, Jonathan Cameron wrote:
> On Tue, 9 Mar 2021 07:38:13 +
> Cristian Marussi wrote:
>
> > Hi
> >
> > On Tue, Mar 09, 2021 at 06:37:27AM +, Sudeep Holla wrote:
> > > On Mon, Mar 08, 2021 at 07:4
Hi Sudeep,
On Mon, Mar 08, 2021 at 07:34:25AM +, Sudeep Holla wrote:
> On Tue, Feb 02, 2021 at 10:15:54PM +0000, Cristian Marussi wrote:
> > Extend SCMI protocols accounting mechanism to address possible module
> > usage and add the support to possibly define new protoc
Hi
On Tue, Mar 09, 2021 at 06:37:27AM +, Sudeep Holla wrote:
> On Mon, Mar 08, 2021 at 07:48:41PM +, Jonathan Cameron wrote:
> > On Mon, 8 Mar 2021 04:28:42 +
> > Sudeep Holla wrote:
> >
> > > Hi Jonathan,
> > >
> > > On Tue, Feb 23, 2021 at 10:30:37AM -0800, Jyoti Bhayana wrote:
> >
On Mon, Mar 08, 2021 at 06:12:29AM +, Sudeep Holla wrote:
> On Tue, Feb 02, 2021 at 10:15:53PM +0000, Cristian Marussi wrote:
> > Notification private data is currently accessible via handle->notify_priv;
> > this data was indeed meant to be private to the notification core s
On Mon, Mar 08, 2021 at 05:50:30AM +, Sudeep Holla wrote:
> On Tue, Feb 02, 2021 at 10:15:20PM +0000, Cristian Marussi wrote:
> > Add basic protocol handles definitions and private data helpers support.
> >
> > A protocol handle identifies a protocol instance
Hi Sudeep,
thanks for reviewing this.
On Mon, Mar 08, 2021 at 04:38:30AM +, Sudeep Holla wrote:
> On Tue, Feb 02, 2021 at 10:15:19PM +0000, Cristian Marussi wrote:
> > Extend common protocol registration routines and provide some new generic
> > protocols get/put helpers
Hi,
thanks for reporting this, you're right but you've missed the braces
around the if block in your patch, because we really want to exit
only on -ENOMEM. Something like:
if (ret == -ENOMEM) {
of_node_put(child);
return ret;
}
Regards,
Cristian
e same v5.13 but as distinct patches. (so you can still backport
yours on v5.4 as you're doing now.)
Thanks
Cristian
>
> Thanks,
> Jyoti
>
> On Mon, Feb 15, 2021 at 6:48 AM Cristian Marussi
> wrote:
>
> > On Mon, Feb 15, 2021 at 11:07:56AM +, Jonathan C
On Mon, Feb 15, 2021 at 11:07:56AM +, Jonathan Cameron wrote:
> On Mon, 15 Feb 2021 09:25:26 +
> Cristian Marussi wrote:
>
> > On Fri, Feb 12, 2021 at 07:18:58PM +, Jonathan Cameron wrote:
> > > On Wed, 10 Feb 2021 21:46:19 +0000
> > > Cristian Ma
On Fri, Feb 12, 2021 at 07:18:58PM +, Jonathan Cameron wrote:
> On Wed, 10 Feb 2021 21:46:19 +
> Cristian Marussi wrote:
>
> > Hi Jyoti,
> >
> > On Wed, Feb 10, 2021 at 11:19:35AM -0800, Jyoti Bhayana wrote:
> > > Hi Cristian,
> > >
> &g
eneral moving
registration to the probe phase (which should be fine by the spec) poses
any kind of problem. (and that's reason why asked it)
Hope to have been clear despite the flood of words :D
Thanks
Cristian
>
> Thanks,
> Jyoti
>
> On Tue, Feb 9, 2021 at 3:56 AM Cristian M
Hi Jyoti
some minor things down below.
Other than that, FWIW about the SCMI side of this:
Reviewed-by: Cristian Marussi
Thanks
Cristian
On Mon, Feb 08, 2021 at 09:19:18PM +, Jyoti Bhayana wrote:
> This change provides ARM SCMI Protocol based IIO device.
> This driver provides s
SCMI System Power Protocol series now merged
Cristian Marussi (3):
firmware: arm_scmi: support only one single SystemPower device
firmware: arm_scmi: add System Power utility macro
firmware: arm_scmi: add SCMI System Power Control driver
drivers/firmware/Kconfig | 1
Add a trivial macro to check the kind of SCMI SystemPower request.
Signed-off-by: Cristian Marussi
---
include/linux/scmi_protocol.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h
index fb8c8f16a49b..ecc14251a547 100644
--- a
system tries to register different SystemPower devices from
multiple platforms.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/bus.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/drivers/firmware/arm_scmi/bus.c b/drivers/firmware/arm_scmi/bus.c
Graceful requests are relayed to userspace using the same Kernel API used
to handle ACPI Shutdown bus events.
Signed-off-by: Cristian Marussi
---
v4 --> v5
- rebased on SCMI Modules v5 series to use new SCMI protocols interface
- removed signal based shutdown/reboot
- removed all module parameters
-
Hi Mark
On Wed, Feb 03, 2021 at 01:24:32PM +, Mark Brown wrote:
> On Tue, Feb 02, 2021 at 10:15:47PM +0000, Cristian Marussi wrote:
> > Port driver to the new SCMI Voltage interface based on protocol handles
> > and common devm_get_ops().
>
> I have no cover letter or o
Hi Viresh
On Wed, Feb 03, 2021 at 08:33:45AM +0530, Viresh Kumar wrote:
> On 02-02-21, 22:15, Cristian Marussi wrote:
> > Port driver to the new SCMI Perf interface based on protocol handles
> > and common devm_get_ops().
> >
> > Cc: Rafael J. Wysocki
> > Cc
ed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/sensors.c | 275 ++--
include/linux/scmi_protocol.h | 22 ++-
2 files changed, 194 insertions(+), 103 deletions(-)
diff --git a/drivers/firmware/arm_scmi/sensors.c
b/drivers/firmware/arm_scmi/sensors.c
ed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/reset.c | 172 +-
include/linux/scmi_protocol.h | 14 ++-
2 files changed, 129 insertions(+), 57 deletions(-)
diff --git a/drivers/firmware/arm_scmi/reset.c
b/drivers/firmware/arm_scmi/reset.c
index 7047e5
Convert internals of protocol implementation to use protocol handles and
expose a new protocol operations interface for SCMI driver using the new
get/put common operations.
Remove handle->system_priv now unused.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/system.c |
Port driver to the new SCMI Voltage interface based on protocol handles
and common devm_get_ops().
Cc: Mark Brown
Signed-off-by: Cristian Marussi
---
v4 --> v5
- using renamed devm_get/put_protocol
---
drivers/regulator/scmi-regulator.c | 40 --
1 file changed,
Now that all protocols and drivers have been ported to the new interface
based on protocol handles and get/put operations, remove all the legacy
transient initialization code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/bus.c| 26 +-
drivers
Remove unused core scmi_xfer wrappers now that we have migrated all
protocols to the new interface based on protocol handles.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/common.h | 15 -
drivers/firmware/arm_scmi/driver.c | 91 --
2 files
long as the requested
underlying protocol is defined in the DT.
Signed-off-by: Cristian Marussi
---
v4 --> v5
- using klist instead of custom lists
v3 --> v4
- add a few comments
---
drivers/firmware/arm_scmi/bus.c| 30 +++
drivers/firmware/arm_scmi/common.h | 5 +
drivers/fi
Extend SCMI protocols accounting mechanism to address possible module
usage and add the support to possibly define new protocols as loadable
modules.
Keep Standard protocols built into the SCMI core.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/base.c| 2 ++
drivers
ted
helpers.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/common.h | 4 +++
drivers/firmware/arm_scmi/driver.c | 21 ++
drivers/firmware/arm_scmi/notify.c | 45 ++
include/linux/scmi_protocol.h | 3 --
4 files changed, 40 insertions(+),
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/sensors.c | 82 -
include/linux/scmi_protocol.h | 19 ---
2
ed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/power.c | 141 +++---
include/linux/scmi_protocol.h | 20 +++--
2 files changed, 105 insertions(+), 56 deletions(-)
diff --git a/drivers/firmware/arm_scmi/power.c
b/drivers/firmware/arm_scmi/power.c
index e4c084
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/power.c | 47 ---
include/linux/scmi_protocol.h | 11
2 files
Now that all the protocol private variable data have been moved out of
struct scmi_handle, mark all of its references as const.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/common.h | 4 ++--
drivers/firmware/arm_scmi/driver.c | 8
2 files changed, 6 insertions(+), 6
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/reset.c | 68 ---
include/linux/scmi_protocol.h | 11 -
2 files
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/clock.c | 67 ---
include/linux/scmi_protocol.h | 15 ---
2 files
Remove all the events registration code used to ease the transition to the
new interface based on protocol handles..
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/base.c| 4 ++--
drivers/firmware/arm_scmi/notify.h | 6 +++---
drivers/firmware/arm_scmi/perf.c| 9
Port driver to the new SCMI Sensor interface based on protocol handles
and common devm_get_ops().
Cc: Guenter Roeck
Cc: Jean Delvare
Signed-off-by: Cristian Marussi
---
v4 --> v5
- using renamed devm_get/put_protocol
---
drivers/hwmon/scmi-hwmon.c | 24 +++-
1 file chan
the
legacy protocol init routines.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/base.c| 15 +++---
drivers/firmware/arm_scmi/common.h | 2 +
drivers/firmware/arm_scmi/driver.c | 7 +++
drivers/firmware/arm_scmi/notify.c | 77 -
drivers/firmware
Port driver to the new SCMI Clock interface based on protocol handles
and common devm_get_ops().
Cc: Michael Turquette
Cc: Stephen Boyd
Signed-off-by: Cristian Marussi
---
v4 --> v5
- using renamed devm_get/put_protocol
---
drivers/clk/clk-scmi.c | 27 +--
1 f
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/voltage.c | 179 ++--
include/linux/scmi_protocol.h | 24 ++--
2 files changed, 136 insertions(+), 67 deletions(-)
diff --git a/drivers/firmware/arm_scmi/voltage.c
b/drivers/firmware/arm_scmi/voltage.c
Port driver to the new SCMI Reset interface based on protocol handles
and common devm_get_ops().
Cc: Philipp Zabel
Signed-off-by: Cristian Marussi
---
v4 --> v5
- using renamed devm_get/put_protocol
---
drivers/reset/reset-scmi.c | 33 -
1 file changed,
off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/clock.c | 182 --
include/linux/scmi_protocol.h | 20 +++-
2 files changed, 139 insertions(+), 63 deletions(-)
diff --git a/drivers/firmware/arm_scmi/clock.c
b/drivers/firmware/arm_scmi/clock.c
index e8c84c
Port driver to the new SCMI Power interface based on protocol handles
and common devm_get_ops().
Signed-off-by: Cristian Marussi
---
v4 --> v5
- using renamed devm_get/put_protocol
---
drivers/firmware/arm_scmi/scmi_pm_domain.c | 26 +-
1 file changed, 16 insertions(+),
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/voltage.c | 67 -
include/linux/scmi_protocol.h | 16 ---
2
Port driver to the new SCMI Perf interface based on protocol handles
and common devm_get_ops().
Cc: Rafael J. Wysocki
Cc: Viresh Kumar
Signed-off-by: Cristian Marussi
---
v4 --> v5
- using renamed devm_get/put_protocol
---
drivers/cpufreq/scmi-cpufreq.c |
protocol migration.
In order to support such migration the above wrappers and some additional
transient code is also introduced in this commit: it will be later removed
as a whole once the full migration of protocols and SCMI drivers will have
been completed.
Signed-off-by: Cristian Marussi
---
An
off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/perf.c | 349 ---
include/linux/scmi_protocol.h| 30 ++-
2 files changed, 258 insertions(+), 121 deletions(-)
diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c
index f27a0a
Now that all the SCMI driver users have been migrated to the new interface
remove the legacy interface and all the transient code.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/perf.c | 120 ---
include/linux/scmi_protocol.h| 27 ---
2 files
Port Base protocol to new protocol handles based interface.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/base.c | 117 +++--
drivers/firmware/arm_scmi/common.h | 3 +-
drivers/firmware/arm_scmi/driver.c | 14 +++-
3 files changed, 71 insertions
to ease such transition.
Signed-off-by: Cristian Marussi
---
In particular void* argument typing will be reverted later on once all
the protocols have been ported.
---
drivers/firmware/arm_scmi/base.c| 4 ++--
drivers/firmware/arm_scmi/driver.c | 1 +
drivers/firmware/arm_scmi/notify.c
Add an helper to grab, from a protocol handle, the handle common memory
area allocated to store SCMI version data which is exposed on sysfs.
Such helper will be needed by SCMI Base protocol initialization once it
will be moved to new protocol handles scheme.
Signed-off-by: Cristian Marussi
Account for any active registered notifier against the proper related
protocol; do not consider pending event handlers, only active handlers
will concur to protocol usage accounting.
Signed-off-by: Cristian Marussi
---
drivers/firmware/arm_scmi/notify.c | 51 ++
1
1 - 100 of 505 matches
Mail list logo