@@ -417,6 +417,9 @@ static int firehose_erase(struct qdl_device *qdl, struct program *program)
417417 xml_setpropf (node , "num_partition_sectors" , "%d" , program -> num_sectors );
418418 xml_setpropf (node , "physical_partition_number" , "%d" , program -> partition );
419419 xml_setpropf (node , "start_sector" , "%s" , program -> start_sector );
420+ if (qdl -> slot != UINT_MAX ) {
421+ xml_setpropf (node , "slot" , "%u" , qdl -> slot );
422+ }
420423 if (program -> is_nand ) {
421424 xml_setpropf (node , "PAGES_PER_BLOCK" , "%d" , program -> pages_per_block );
422425 }
@@ -495,6 +498,9 @@ static int firehose_program(struct qdl_device *qdl, struct program *program, int
495498 xml_setpropf (node , "num_partition_sectors" , "%d" , num_sectors );
496499 xml_setpropf (node , "physical_partition_number" , "%d" , program -> partition );
497500 xml_setpropf (node , "start_sector" , "%s" , program -> start_sector );
501+ if (qdl -> slot != UINT_MAX ) {
502+ xml_setpropf (node , "slot" , "%u" , qdl -> slot );
503+ }
498504 if (program -> filename )
499505 xml_setpropf (node , "filename" , "%s" , program -> filename );
500506
@@ -652,6 +658,9 @@ static int firehose_issue_read(struct qdl_device *qdl, struct read_op *read_op,
652658 xml_setpropf (node , "num_partition_sectors" , "%d" , read_op -> num_sectors );
653659 xml_setpropf (node , "physical_partition_number" , "%d" , read_op -> partition );
654660 xml_setpropf (node , "start_sector" , "%s" , read_op -> start_sector );
661+ if (qdl -> slot != UINT_MAX ) {
662+ xml_setpropf (node , "slot" , "%u" , qdl -> slot );
663+ }
655664 if (read_op -> filename )
656665 xml_setpropf (node , "filename" , "%s" , read_op -> filename );
657666
@@ -770,6 +779,9 @@ static int firehose_apply_patch(struct qdl_device *qdl, struct patch *patch)
770779 xml_setpropf (node , "size_in_bytes" , "%d" , patch -> size_in_bytes );
771780 xml_setpropf (node , "start_sector" , "%s" , patch -> start_sector );
772781 xml_setpropf (node , "value" , "%s" , patch -> value );
782+ if (qdl -> slot != UINT_MAX ) {
783+ xml_setpropf (node , "slot" , "%u" , qdl -> slot );
784+ }
773785
774786 ret = firehose_write (qdl , doc );
775787 if (ret < 0 )
@@ -826,6 +838,9 @@ int firehose_apply_ufs_common(struct qdl_device *qdl, struct ufs_common *ufs)
826838 xml_setpropf (node_to_send , "bInitActiveICCLevel" , "%d" , ufs -> bInitActiveICCLevel );
827839 xml_setpropf (node_to_send , "wPeriodicRTCUpdate" , "%d" , ufs -> wPeriodicRTCUpdate );
828840 xml_setpropf (node_to_send , "bConfigDescrLock" , "%d" , ufs -> bConfigDescrLock );
841+ if (qdl -> slot != UINT_MAX ) {
842+ xml_setpropf (node_to_send , "slot" , "%u" , qdl -> slot );
843+ }
829844
830845 if (ufs -> wb ) {
831846 xml_setpropf (node_to_send , "bWriteBoosterBufferPreserveUserSpaceEn" ,
@@ -858,6 +873,9 @@ int firehose_apply_ufs_body(struct qdl_device *qdl, struct ufs_body *ufs)
858873 xml_setpropf (node_to_send , "bLogicalBlockSize" , "%d" , ufs -> bLogicalBlockSize );
859874 xml_setpropf (node_to_send , "bProvisioningType" , "%d" , ufs -> bProvisioningType );
860875 xml_setpropf (node_to_send , "wContextCapabilities" , "%d" , ufs -> wContextCapabilities );
876+ if (qdl -> slot != UINT_MAX ) {
877+ xml_setpropf (node_to_send , "slot" , "%u" , qdl -> slot );
878+ }
861879 if (ufs -> desc )
862880 xml_setpropf (node_to_send , "desc" , "%s" , ufs -> desc );
863881
@@ -878,6 +896,9 @@ int firehose_apply_ufs_epilogue(struct qdl_device *qdl, struct ufs_epilogue *ufs
878896
879897 xml_setpropf (node_to_send , "LUNtoGrow" , "%d" , ufs -> LUNtoGrow );
880898 xml_setpropf (node_to_send , "commit" , "%d" , commit );
899+ if (qdl -> slot != UINT_MAX ) {
900+ xml_setpropf (node_to_send , "slot" , "%u" , qdl -> slot );
901+ }
881902
882903 ret = firehose_send_single_tag (qdl , node_to_send );
883904 if (ret )
0 commit comments