public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] firmware: stratix10-svc: Fix probe failure with old ATF
@ 2026-04-16  7:22 Muhammad Amirul Asyraf Mohamad Jamian
  2026-04-16  7:22 ` [PATCH 1/2] firmware: stratix10-svc: Return -EOPNOTSUPP when ATF async unsupported Muhammad Amirul Asyraf Mohamad Jamian
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Muhammad Amirul Asyraf Mohamad Jamian @ 2026-04-16  7:22 UTC (permalink / raw)
  To: Dinh Nguyen
  Cc: Mahesh Rao, Matthew Gerlach, Anders Hedlund, linux-kernel, stable

Since commit bcb9f4f07061 ("firmware: stratix10-svc: Add support for
async communication"), the SVC driver fails to probe entirely when
running with ATF versions older than 3.0 (e.g. ATF 2.5) that do not
support SIP SVC v3 asynchronous operations.

stratix10_svc_async_init() returns -EINVAL for old ATF, and the probe
function treats any non-zero return as fatal, causing:

  stratix10-svc firmware:svc: probe with driver stratix10-svc failed \
    with error -22

This prevents all dependent client drivers (hwmon, RSU, FCS) from
probing even though they can operate correctly via the synchronous V1
SMC path.

This series fixes the issue in two steps:
  1. Return -EOPNOTSUPP (instead of -EINVAL) when ATF async is
     unsupported, so callers can distinguish "not supported" from
     "bad argument / programming error".
  2. Treat -EOPNOTSUPP as non-fatal in probe, allowing the SVC driver
     to load in sync-only mode so all client drivers can probe normally.

Both patches fix bcb9f4f07061 and are tagged for stable.

Muhammad Amirul Asyraf Mohamad Jamian (2):
  firmware: stratix10-svc: Return -EOPNOTSUPP when ATF async unsupported
  firmware: stratix10-svc: Don't fail probe when async ops unsupported

 drivers/firmware/stratix10-svc.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

-- 
2.43.7

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

end of thread, other threads:[~2026-05-05 12:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-16  7:22 [PATCH 0/2] firmware: stratix10-svc: Fix probe failure with old ATF Muhammad Amirul Asyraf Mohamad Jamian
2026-04-16  7:22 ` [PATCH 1/2] firmware: stratix10-svc: Return -EOPNOTSUPP when ATF async unsupported Muhammad Amirul Asyraf Mohamad Jamian
2026-04-16  7:22 ` [PATCH 2/2] firmware: stratix10-svc: Don't fail probe when async ops unsupported Muhammad Amirul Asyraf Mohamad Jamian
2026-05-05 12:14 ` [PATCH 0/2] firmware: stratix10-svc: Fix probe failure with old ATF Dinh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox