@@ -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 }
@@ -496,6 +499,9 @@ static int firehose_program(struct qdl_device *qdl, struct program *program, int
496499 xml_setpropf (node , "num_partition_sectors" , "%d" , num_sectors );
497500 xml_setpropf (node , "physical_partition_number" , "%d" , program -> partition );
498501 xml_setpropf (node , "start_sector" , "%s" , program -> start_sector );
502+ if (qdl -> slot != UINT_MAX ) {
503+ xml_setpropf (node , "slot" , "%u" , qdl -> slot );
504+ }
499505 if (program -> filename )
500506 xml_setpropf (node , "filename" , "%s" , program -> filename );
501507
@@ -653,6 +659,9 @@ static int firehose_issue_read(struct qdl_device *qdl, struct read_op *read_op,
653659 xml_setpropf (node , "num_partition_sectors" , "%d" , read_op -> num_sectors );
654660 xml_setpropf (node , "physical_partition_number" , "%d" , read_op -> partition );
655661 xml_setpropf (node , "start_sector" , "%s" , read_op -> start_sector );
662+ if (qdl -> slot != UINT_MAX ) {
663+ xml_setpropf (node , "slot" , "%u" , qdl -> slot );
664+ }
656665 if (read_op -> filename )
657666 xml_setpropf (node , "filename" , "%s" , read_op -> filename );
658667
@@ -771,6 +780,9 @@ static int firehose_apply_patch(struct qdl_device *qdl, struct patch *patch)
771780 xml_setpropf (node , "size_in_bytes" , "%d" , patch -> size_in_bytes );
772781 xml_setpropf (node , "start_sector" , "%s" , patch -> start_sector );
773782 xml_setpropf (node , "value" , "%s" , patch -> value );
783+ if (qdl -> slot != UINT_MAX ) {
784+ xml_setpropf (node , "slot" , "%u" , qdl -> slot );
785+ }
774786
775787 ret = firehose_write (qdl , doc );
776788 if (ret < 0 )
@@ -827,6 +839,9 @@ int firehose_apply_ufs_common(struct qdl_device *qdl, struct ufs_common *ufs)
827839 xml_setpropf (node_to_send , "bInitActiveICCLevel" , "%d" , ufs -> bInitActiveICCLevel );
828840 xml_setpropf (node_to_send , "wPeriodicRTCUpdate" , "%d" , ufs -> wPeriodicRTCUpdate );
829841 xml_setpropf (node_to_send , "bConfigDescrLock" , "%d" , ufs -> bConfigDescrLock );
842+ if (qdl -> slot != UINT_MAX ) {
843+ xml_setpropf (node_to_send , "slot" , "%u" , qdl -> slot );
844+ }
830845
831846 if (ufs -> wb ) {
832847 xml_setpropf (node_to_send , "bWriteBoosterBufferPreserveUserSpaceEn" ,
@@ -859,6 +874,9 @@ int firehose_apply_ufs_body(struct qdl_device *qdl, struct ufs_body *ufs)
859874 xml_setpropf (node_to_send , "bLogicalBlockSize" , "%d" , ufs -> bLogicalBlockSize );
860875 xml_setpropf (node_to_send , "bProvisioningType" , "%d" , ufs -> bProvisioningType );
861876 xml_setpropf (node_to_send , "wContextCapabilities" , "%d" , ufs -> wContextCapabilities );
877+ if (qdl -> slot != UINT_MAX ) {
878+ xml_setpropf (node_to_send , "slot" , "%u" , qdl -> slot );
879+ }
862880 if (ufs -> desc )
863881 xml_setpropf (node_to_send , "desc" , "%s" , ufs -> desc );
864882
@@ -879,6 +897,9 @@ int firehose_apply_ufs_epilogue(struct qdl_device *qdl, struct ufs_epilogue *ufs
879897
880898 xml_setpropf (node_to_send , "LUNtoGrow" , "%d" , ufs -> LUNtoGrow );
881899 xml_setpropf (node_to_send , "commit" , "%d" , commit );
900+ if (qdl -> slot != UINT_MAX ) {
901+ xml_setpropf (node_to_send , "slot" , "%u" , qdl -> slot );
902+ }
882903
883904 ret = firehose_send_single_tag (qdl , node_to_send );
884905 if (ret )
0 commit comments