mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] qcom_tzmem: Enhance Error Handling for shmbridge
@ 2024-10-05 14:01 Kuldeep Singh
  2024-10-05 14:01 ` [PATCH 1/2] firmware: qcom: scm: Return -EOPNOTSUPP for unsupported SHM bridge enabling Kuldeep Singh
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Kuldeep Singh @ 2024-10-05 14:01 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Bartosz Golaszewski
  Cc: linux-arm-msm, linux-kernel

This patchset addresses the tzmem driver probe failure caused by
incorrect error handling. The qcom_scm_shm_bridge_enable() SCM call
captures SCM success/failure in a0 and E_NOT_SUPPORTED in a1.

Previously, qcom_scm returned values based solely on a0, without
capturing not_supported scenario. This patchset corrects that behavior.

Along with this, add sanity checks on input parameters passed to exposed
APIs as it is missing currently.

Kuldeep Singh (1):
  firmware: qcom: qcom_tzmem: Implement sanity checks

Qingqing Zhou (1):
  firmware: qcom: scm: Return -EOPNOTSUPP for unsupported SHM bridge
    enabling

 drivers/firmware/qcom/qcom_scm.c   | 12 +++++++++++-
 drivers/firmware/qcom/qcom_tzmem.c | 17 ++++++++++++++++-
 2 files changed, 27 insertions(+), 2 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-10-07 21:45 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-05 14:01 [PATCH 0/2] qcom_tzmem: Enhance Error Handling for shmbridge Kuldeep Singh
2024-10-05 14:01 ` [PATCH 1/2] firmware: qcom: scm: Return -EOPNOTSUPP for unsupported SHM bridge enabling Kuldeep Singh
2024-10-06 17:35   ` Dmitry Baryshkov
2024-10-06 22:01     ` Kuldeep Singh
2024-10-07 18:11     ` Mukesh Ojha
2024-10-07  1:40   ` Bjorn Andersson
2024-10-07 20:40     ` Kuldeep Singh
2024-10-07 21:45       ` Bjorn Andersson
2024-10-05 14:01 ` [PATCH 2/2] firmware: qcom: qcom_tzmem: Implement sanity checks Kuldeep Singh
2024-10-06 19:30   ` Dmitry Baryshkov
2024-10-07 19:17     ` Kuldeep Singh
2024-10-07 20:13       ` Dmitry Baryshkov
2024-10-07 20:44         ` Kuldeep Singh
2024-10-07 20:56           ` Bartosz Golaszewski
2024-10-07  1:18   ` Bjorn Andersson
2024-10-07 14:23     ` Bartosz Golaszewski
2024-10-07 19:23       ` Kuldeep Singh
2024-10-07 14:25 ` [PATCH 0/2] qcom_tzmem: Enhance Error Handling for shmbridge Bartosz Golaszewski
2024-10-07 19:35   ` Kuldeep Singh

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

all inboxes | Powered by JetHome®