firehose: Increase image write timeout to 60 seconds

The somewhat arbitrary timeout of 30 seconds was chosen by observing a
worst case time of ~15 seconds when flashing Hamoa and Nord. But, as
reported, flashing SAIL on Nord sometimes needs this timeout to be ~35
seconds.

While the relationship between the different factors and the needed
timeout isn't fully understood, bump the value to 60 seconds to make it
work for this case as well.

Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
This commit is contained in:
Bjorn Andersson
2025-12-16 18:25:36 -06:00
committed by Bjorn Andersson
parent e033f0f205
commit a10cf7f5da

View File

@@ -465,7 +465,7 @@ static int firehose_program(struct qdl_device *qdl, struct program *program, int
* let's double it to be on the safe side...
*/
if (qdl->storage_type == QDL_STORAGE_SPINOR)
zlp_timeout = 30000;
zlp_timeout = 60000;
num_sectors = program->num_sectors;
sector_size = program->sector_size ? : qdl->sector_size;