Skip to contentSkip to conversation

I2C fix for ice1724

PATCH Applied Pavel Hofman 2 participants 2 messages Dec 1, 2007 – Dec 3, 2007

lore
Share & tools
lore
#0 lore raw

Hello Takashi,

Below is a patch for ice1724 I2C read code.

Thanks,

Pavel.

* adding i2c busy wait before sending device address to prevent reading bogus data

pci/ice1712/ice1724.c Fri Nov 30 21:17:36 2007 +0100 renamed from pci/ice1712/ice1724.c Fri Nov 30 17:59:25 2007 +0100 +1 -0
diff -r 7f4b25ff79d6 pci/ice1712/ice1724.c
@@ -1958,6 +1958,7 @@ unsigned char snd_vt1724_read_i2c(struct
         unsigned char val;
 
         mutex_lock(&ice->i2c_mutex);
+ wait_i2c_busy(ice);
         outb(addr, ICEREG1724(ice, I2C_BYTE_ADDR));
         outb(dev & ~VT1724_I2C_WRITE, ICEREG1724(ice, I2C_DEV_ADDR));
         wait_i2c_busy(ice);
Applied
#1 lore raw

At Sat, 01 Dec 2007 13:05:25 +0100,

Quoted 8 lines · Pavel Hofman

Hello Takashi,

Below is a patch for ice1724 I2C read code.

Thanks,

Quoted 7 lines

Pavel.

* adding i2c busy wait before sending device address to prevent reading bogus data

Applied. Thanks.

Takashi