Commit b36d8d6b authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: only set restart on first cmd of the smu i2c transaction



Not sure how the firmware interprets these.

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
parent 73a5784a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) && !(msg[i].flags & I2C_M_NOSTART))
			if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
				cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
		}
	}
+1 −1
Original line number Diff line number Diff line
@@ -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) && !(msg[i].flags & I2C_M_NOSTART))
			if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
				cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
		}
	}
+1 −1
Original line number Diff line number Diff line
@@ -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) && !(msg[i].flags & I2C_M_NOSTART))
			if ((i > 0) && (j == 0) && !(msg[i].flags & I2C_M_NOSTART))
				cmd->CmdConfig |= CMDCONFIG_RESTART_BIT;
		}
	}