diff options
| author | Qingqing Zhou <[email protected]> | 2024-10-22 19:21:48 +0000 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2024-10-23 00:05:18 +0000 |
| commit | f489f6c6eb26482010470d77bad3901a3de1b166 (patch) | |
| tree | 99a012a5828b62968a9571bf3533fe52e87a7f2f /drivers/usb/cdns3/cdns3-ti.c | |
| parent | EDAC/qcom: Make irq configuration optional (diff) | |
| download | kernel-f489f6c6eb26482010470d77bad3901a3de1b166.tar.gz kernel-f489f6c6eb26482010470d77bad3901a3de1b166.zip | |
firmware: qcom: scm: Return -EOPNOTSUPP for unsupported SHM bridge enabling
When enabling SHM bridge, QTEE returns 0 and sets error 4 in result to
qcom_scm for unsupported platforms. Currently, tzmem interprets this as
an unknown error rather than recognizing it as an unsupported platform.
Error log:
[ 0.177224] qcom_scm firmware:scm: error (____ptrval____): Failed to enable the TrustZone memory allocator
[ 0.177244] qcom_scm firmware:scm: probe with driver qcom_scm failed with error 4
To address this, modify the function call qcom_scm_shm_bridge_enable()
to remap result to indicate an unsupported error. This way, tzmem will
correctly identify it as an unsupported platform case instead of
reporting it as an error.
Fixes: 178e19c0df1b ("firmware: qcom: scm: add support for SHM bridge operations")
Signed-off-by: Qingqing Zhou <[email protected]>
Co-developed-by: Kuldeep Singh <[email protected]>
Signed-off-by: Kuldeep Singh <[email protected]>
Reviewed-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
