Skip to contentSkip to conversation

drm/nouveau/i2c: correct default settings for i2c ports

PATCH In review Dmitry Eremin-Solenikov 2 participants 3 messages Sep 22, 2012 – Sep 26, 2012 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau/i2c: correct default settings for i2c ports

Fix typo introduced when converting to core infrastructure.

---
 drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c +2 -2
index 5fcce5d..ad577db 100644
@@ -112,13 +112,13 @@ dcb_i2c_parse(struct nouveau_bios *bios, u8 idx, struct dcb_i2c_entry *info)
 			info->drive = nv_ro08(bios, ent + 4);
 			if (!info->drive) info->drive = 0x3f;
 			info->sense = nv_ro08(bios, ent + 5);
-			if (!info->sense) info->drive = 0x3e;
+			if (!info->sense) info->sense = 0x3e;
 		} else
 		if (idx == 1) {
 			info->drive = nv_ro08(bios, ent + 6);
 			if (!info->drive) info->drive = 0x37;
 			info->sense = nv_ro08(bios, ent + 7);
-			if (!info->sense) info->drive = 0x36;
+			if (!info->sense) info->sense = 0x36;
 		}
 
 		info->type = DCB_I2C_NV04_BIT;
Signature · 1 line
1.7.10.4

A message that is not in the archive (sent off-list or not yet received): 1348335230-20502-1-git-send-email-dmitry_eremin-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org

#2 lore raw
Quoted 3 lines · Dmitry Eremin-Solenikov

Fix typo introduced when converting to core infrastructure.

Thanks, pushed! I'll likely squash this into the offending commit and note your corrections in the commit log.

Ben.

Quoted 31 lines
---
 drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/nouveau/core/subdev/bios/i2c.c +2 -2
index 5fcce5d..ad577db 100644
@@ -112,13 +112,13 @@ dcb_i2c_parse(struct nouveau_bios *bios, u8 idx, struct dcb_i2c_entry *info)
 			info->drive = nv_ro08(bios, ent + 4);
 			if (!info->drive) info->drive = 0x3f;
 			info->sense = nv_ro08(bios, ent + 5);
-			if (!info->sense) info->drive = 0x3e;
+			if (!info->sense) info->sense = 0x3e;
 		} else
 		if (idx == 1) {
 			info->drive = nv_ro08(bios, ent + 6);
 			if (!info->drive) info->drive = 0x37;
 			info->sense = nv_ro08(bios, ent + 7);
-			if (!info->sense) info->drive = 0x36;
+			if (!info->sense) info->sense = 0x36;
 		}
 
 		info->type = DCB_I2C_NV04_BIT;
Signature · 6 lines
1.7.10.4

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): 20120926010654.GA17068-6RkuLLNOGXsZ315U/[email protected]

#4 lore raw
Quoted 6 lines · Ben Skeggs
Quoted 3 lines · Dmitry Eremin-Solenikov

Fix typo introduced when converting to core infrastructure.

Thanks, pushed! I'll likely squash this into the offending commit and note your corrections in the commit log.

Fine for me, thank you!

Signature · 2 lines
With best wishes
Dmitry