]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Drop i > 0 restriction for issuing RESTART
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Sat, 23 Jan 2021 04:15:25 +0000 (23:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:24:40 +0000 (00:24 -0400)
Drop i > 0 restriction for issuing RESTART.

Cc: Jean Delvare <jdelvare@suse.de>
Cc: Alexander Deucher <Alexander.Deucher@amd.com>
Cc: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Cc: Lijo Lazar <Lijo.Lazar@amd.com>
Cc: Stanley Yang <Stanley.Yang@amd.com>
Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c

index 945e25df9165442315da130983502c5d3a6442ad..65b35dc821232f1a7efb944635ec6c46295a7b31 100644 (file)
@@ -1984,7 +1984,7 @@ static int arcturus_i2c_xfer(struct i2c_adapter *i2c_adap,
                        if ((msg[i].flags & I2C_M_STOP) ||
                            (!remaining_bytes))
                                cmd->CmdConfig |= CMDCONFIG_STOP_MASK;
-                       if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
+                       if ((j == 0) && !(msg[i].flags & I2C_M_NOSTART))
                                cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
                }
        }
index b6a2393e346b26ba890e9d28561cb4feadf37193..560eff524a1595dce2150253b5abec25fe6e8219 100644 (file)
@@ -2783,7 +2783,7 @@ static int navi10_i2c_xfer(struct i2c_adapter *i2c_adap,
                        if ((msg[i].flags & I2C_M_STOP) ||
                            (!remaining_bytes))
                                cmd->CmdConfig |= CMDCONFIG_STOP_MASK;
-                       if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
+                       if ((j == 0) && !(msg[i].flags & I2C_M_NOSTART))
                                cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
                }
        }
index 9e49505a6ac109e74b6c141f0770c43f75df245a..93acf3f869227a9f6d723738abd4a3d095956818 100644 (file)
@@ -3490,7 +3490,7 @@ static int sienna_cichlid_i2c_xfer(struct i2c_adapter *i2c_adap,
                        if ((msg[i].flags & I2C_M_STOP) ||
                            (!remaining_bytes))
                                cmd->CmdConfig |= CMDCONFIG_STOP_MASK;
-                       if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
+                       if ((j == 0) && !(msg[i].flags & I2C_M_NOSTART))
                                cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
                }
        }