mbox series

[v2,0/5] firmware: arm_scmi: Minor cleanups in the scmi bus layer

Message ID 20250317-b4-scmi_minor_cleanup-v2-0-f4be99bd9864@arm.com (mailing list archive)
Headers show
Series firmware: arm_scmi: Minor cleanups in the scmi bus layer | expand

Message

Sudeep Holla March 17, 2025, 10:31 a.m. UTC
These cleanup centralizes error logging for SCMI device creation into a
single helper function, _scmi_device_create(), consolidates the device
matching logic into a single function, and ensures that devices must
have a name for registration, removing support for unnamed devices while
matching the devices and drivers for probing. It ensures the transport
devices are excluded from the bus matching and the correct assignment
of parent device for the arm-scmi platform device created in the
transport drivers.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
Changes in v2:
- Added exclusion of transport devices from bus matching
- Added correct assignment of parent to arm-scmi platform device
- Link to v1: https://lore.kernel.org/r/20250312-b4-scmi_minor_cleanup-v1-0-c62c6cb4111a@arm.com

---
Sudeep Holla (5):
      firmware: arm_scmi: Ensure scmi_devices are always matched by name as well
      firmware: arm_scmi: Refactor device matching logic to eliminate duplication
      firmware: arm_scmi: Refactor error logging from SCMI device creation to single helper
      firmware: arm_scmi: Assign correct parent to arm-scmi platform device
      firmware: arm_scmi: Exclude transport devices from bus matching

 drivers/firmware/arm_scmi/bus.c    | 79 ++++++++++++++++++++------------------
 drivers/firmware/arm_scmi/common.h |  1 +
 drivers/firmware/arm_scmi/driver.c | 13 ++-----
 3 files changed, 46 insertions(+), 47 deletions(-)
---
base-commit: 80e54e84911a923c40d7bee33a34c1b4be148d7a
change-id: 20250312-b4-scmi_minor_cleanup-8f85228d435c