linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V6 0/3] firmware: arm_scmi: Make scmi core independent of the transport type
@ 2020-01-31  5:28 Viresh Kumar
  2020-01-31  5:28 ` [PATCH V6 1/3] firmware: arm_scmi: Update doc style comments Viresh Kumar
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Viresh Kumar @ 2020-01-31  5:28 UTC (permalink / raw)
  To: arnd, Sudeep Holla
  Cc: Viresh Kumar, jassisinghbrar, cristian.marussi, peng.fan,
	peter.hilber, Vincent Guittot, linux-arm-kernel, linux-kernel

Hello,

This patchset makes the scmi core (driver.c) independent of mailbox
transport.

V5->V6:
- Divide the patchset into multiple logical patches.
- Create shmem.c to separate out shared mem related helpers.
- Make mark_txdone() optional.
- Drop inclusion of stddef.h.

V4->V5:
- struct scmi_shared_mem is moved to mailbox.c and it is completely
  handled by transport layer now.
- And so lots of ops change due to this.
- Fixed a bug from previous version where wrong dev structure was
  getting passed to devm_kzalloc().

V3->V4:
- Rebased on top of linux-next.

V2->V3:
- Added more ops to the structure to read/write/memcpy data
- Payload is moved to mailbox.c and is handled in transport specific way
  now. This resulted in lots of changes.

V1->V2:
- Dropped __iomem from payload data.
- Moved transport ops to scmi_desc, and that has a per transport
  instance now which is differentiated using the compatible string.
- Converted IS_ERR_OR_NULL to IS_ERR.

Viresh Kumar (3):
  firmware: arm_scmi: Update doc style comments
  firmware: arm_scmi: Move macros and helpers to common.h
  firmware: arm_scmi: Make scmi core independent of the transport type

 drivers/firmware/arm_scmi/Makefile  |   3 +-
 drivers/firmware/arm_scmi/common.h  | 112 ++++++++++-
 drivers/firmware/arm_scmi/driver.c  | 293 ++++------------------------
 drivers/firmware/arm_scmi/mailbox.c | 184 +++++++++++++++++
 drivers/firmware/arm_scmi/shmem.c   |  82 ++++++++
 5 files changed, 412 insertions(+), 262 deletions(-)
 create mode 100644 drivers/firmware/arm_scmi/mailbox.c
 create mode 100644 drivers/firmware/arm_scmi/shmem.c

-- 
2.21.0.rc0.269.g1a574e7a288b


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-31 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-31  5:28 [PATCH V6 0/3] firmware: arm_scmi: Make scmi core independent of the transport type Viresh Kumar
2020-01-31  5:28 ` [PATCH V6 1/3] firmware: arm_scmi: Update doc style comments Viresh Kumar
2020-01-31  5:28 ` [PATCH V6 2/3] firmware: arm_scmi: Move macros and helpers to common.h Viresh Kumar
2020-01-31  5:28 ` [PATCH V6 3/3] firmware: arm_scmi: Make scmi core independent of the transport type Viresh Kumar
2020-01-31 15:28 ` [PATCH V6 0/3] " Sudeep Holla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).