firmware: arm_scmi: Exclude transport devices from bus matching
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Mar 2025 10:31:25 +0000 (10:31 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 14 Apr 2025 09:12:02 +0000 (10:12 +0100)
commit9593804c44c24545e1b0496786dcb765d7b0e193
tree8d63ae3ba8d51d39d5d529c31db6cc640f7f0dbc
parent953f4ce0a8d38ad87cade45355f5647071272a3a
firmware: arm_scmi: Exclude transport devices from bus matching

Transport devices are currently being unintentionally matched to
drivers with the same name, allowing their probe function to be
invoked. However, the bus notifier prevents them from setting up
handles, rendering them unable to utilize SCMI core functionality.

Instead of relying on the bus notifier which can't prevent bus matching
even if it returns early or error, move the check into the bus matching
logic itself. This change ensures that transport devices are entirely
excluded from driver matching, preventing any unintended probe attempts.

Message-Id: <20250317-b4-scmi_minor_cleanup-v2-5-f4be99bd9864@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/bus.c
drivers/firmware/arm_scmi/driver.c