Skip to contentSkip to conversation

2.5.26 i2c tweeks

PATCH New Albert Cranford 1 participant 1 message Jul 18, 2002 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.26 i2c tweeks

Hello Linus,
Reading your latest message with 2.5.26 I see your buried upto your neck with changes.
Could you please apply these two patches to I2C for i2c-id.h updates and a compatability issue in i2c-algo-bit.c

Thanks,
Albert

Signature · 2 lines
Albert Cranford Deerfield Beach FL USA
[email protected]

# i2c-algo-bit.c: Added KERNEL_VERSION check around if (current->need_resched) schedule(); and cond_sched();

drivers/i2c/i2c-algo-bit.c renamed from drivers/i2c/i2c-algo-bit.c.orig +5 -0
@@ -119,7 +119,12 @@
 		if (time_after_eq(jiffies, start+adap->timeout)) {
 			return -ETIMEDOUT;
 		}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+ 		if (current->need_resched)
+ 			schedule();
+#else
 		cond_resched();
+#endif
 	}
 	DEBSTAT(printk(KERN_DEBUG "needed %ld jiffies\n", jiffies-start));
 #ifdef SLO_IO
include/linux/i2c-id.h renamed from include/linux/i2c-id.h.orig +5 -1
@@ -90,7 +90,11 @@
 #define I2C_DRIVERID_DRP3510	43     /* ADR decoder (Astra Radio)	*/
 #define I2C_DRIVERID_SP5055	44     /* Satellite tuner		*/
 #define I2C_DRIVERID_STV0030	45     /* Multipurpose switch		*/
-#define I2C_DRIVERID_SAA7108    46     /* video decoder, image scaler   */
+#define I2C_DRIVERID_SAA7108	46     /* video decoder, image scaler   */
+#define I2C_DRIVERID_DS1307	47     /* DS1307 real time clock	*/
+#define I2C_DRIVERID_ADV717x	48     /* ADV 7175/7176 video encoder	*/
+#define I2C_DRIVERID_ZR36067	49     /* Zoran 36067 video encoder	*/
+#define I2C_DRIVERID_ZR36120	50     /* Zoran 36120 video encoder	*/