Skip to content

Commit dc4a684

Browse files
curroBen Skeggs
authored andcommitted
drm/i2c/ch7006: Fix load detection false positives right after system init.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
1 parent 95f158e commit dc4a684

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/gpu/drm/i2c/ch7006_drv.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@ static int ch7006_probe(struct i2c_client *client, const struct i2c_device_id *i
408408

409409
ch7006_info(client, "Detected version ID: %x\n", val);
410410

411+
/* I don't know what this is for, but otherwise I get no
412+
* signal.
413+
*/
414+
ch7006_write(client, 0x3d, 0x0);
415+
411416
return 0;
412417

413418
fail:

‎drivers/gpu/drm/i2c/ch7006_mode.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,6 @@ void ch7006_state_load(struct i2c_client *client,
427427
ch7006_load_reg(client, state, CH7006_SUBC_INC7);
428428
ch7006_load_reg(client, state, CH7006_PLL_CONTROL);
429429
ch7006_load_reg(client, state, CH7006_CALC_SUBC_INC0);
430-
431-
/* I don't know what this is for, but otherwise I get no
432-
* signal.
433-
*/
434-
ch7006_write(client, 0x3d, 0x0);
435430
}
436431

437432
void ch7006_state_save(struct i2c_client *client,

0 commit comments

Comments
 (0)