Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c93ebb40 authored by Francisco Jerez's avatar Francisco Jerez Committed by Ben Skeggs
Browse files

drm/i2c/ch7006: Don't use POWER_LEVEL_FULL_POWER_OFF on early chip versions.

parent 1849719e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -470,6 +470,7 @@ static int ch7006_encoder_init(struct i2c_client *client,
	priv->hmargin = 50;
	priv->vmargin = 50;
	priv->last_dpms = -1;
	priv->chip_version = ch7006_read(client, CH7006_VERSION_ID);

	if (ch7006_tv_norm) {
		for (i = 0; i < NUM_TV_NORMS; i++) {
+4 −1
Original line number Diff line number Diff line
@@ -316,7 +316,10 @@ void ch7006_setup_power_state(struct drm_encoder *encoder)
		}

	} else {
		if (priv->chip_version >= 0x20)
			*power |= bitfs(CH7006_POWER_LEVEL, FULL_POWER_OFF);
		else
			*power |= bitfs(CH7006_POWER_LEVEL, POWER_OFF);
	}
}

+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@ struct ch7006_priv {
	int flicker;
	int scale;

	int chip_version;
	int last_dpms;
};