sahara: Improve error message about missing images

It might not be obvious to the user that an "invalid image id" is the
result of them not providing the correct programmer loaders.

Make the error message more user friendly.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
This commit is contained in:
Bjorn Andersson
2026-01-26 22:43:31 -06:00
committed by Bjorn Andersson
parent 44e7be00ac
commit 2d8ea742a8

View File

@@ -160,7 +160,8 @@ static void sahara_read(struct qdl_device *qdl, struct sahara_pkt *pkt,
image_idx = pkt->read_req.image;
if (image_idx >= MAPPING_SZ || !images[image_idx].ptr) {
ux_err("device requested invalid image: %u\n", image_idx);
ux_err("device requested unknown image id %u, ensure that all Sahara images are provided\n",
image_idx);
sahara_send_reset(qdl);
return;
}
@@ -195,7 +196,8 @@ static void sahara_read64(struct qdl_device *qdl, struct sahara_pkt *pkt,
image_idx = pkt->read64_req.image;
if (image_idx >= MAPPING_SZ || !images[image_idx].ptr) {
ux_err("device requested invalid image: %u\n", image_idx);
ux_err("device requested unknown image id %u, ensure that all Sahara images are provided\n",
image_idx);
sahara_send_reset(qdl);
return;
}