diff options
| author | NĂcolas F. R. A. Prado <[email protected]> | 2024-06-27 21:20:55 +0000 |
|---|---|---|
| committer | Mathieu Poirier <[email protected]> | 2024-06-28 17:56:24 +0000 |
| commit | 67ca3f98070ffdf308b91e08a477fcb1e9684ae8 (patch) | |
| tree | 754f8ef5fe67a70d9daa174630ff2e8674c41181 /scripts/make_fit.py | |
| parent | remoteproc: qcom: enable in-kernel PD mapper (diff) | |
| download | kernel-67ca3f98070ffdf308b91e08a477fcb1e9684ae8.tar.gz kernel-67ca3f98070ffdf308b91e08a477fcb1e9684ae8.zip | |
remoteproc: mediatek: Don't attempt to remap l1tcm memory if missing
The current code doesn't check whether platform_get_resource_byname()
succeeded to get the l1tcm memory, which is optional, before attempting
to map it. This results in the following error message when it is
missing:
mtk-scp 10500000.scp: error -EINVAL: invalid resource (null)
Add a check so that the remapping is only attempted if the memory region
exists. This also allows to simplify the logic handling failure to
remap, since a failure then is always a failure.
Fixes: ca23ecfdbd44 ("remoteproc/mediatek: support L1TCM")
Signed-off-by: NĂcolas F. R. A. Prado <[email protected]>
Reviewed-by: Tzung-Bi Shih <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://lore.kernel.org/r/20240627-scp-invalid-resource-l1tcm-v1-1-7d221e6c495a@collabora.com
Signed-off-by: Mathieu Poirier <[email protected]>
Diffstat (limited to 'scripts/make_fit.py')
0 files changed, 0 insertions, 0 deletions
