From: Albert Cranford <ac9410@bellsouth.net>
To: Linus Torvalds <torvalds@transmeta.com>,
Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: [PATCH] 2.5.26 i2c tweeks
Date: Wed, 17 Jul 2002 23:04:21 -0400 [thread overview]
Message-ID: <3D363035.E4C0CFB1@bellsouth.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
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
--
Albert Cranford Deerfield Beach FL USA
ac9410@bellsouth.net
[-- Attachment #2: 47-i2c-5-patch --]
[-- Type: text/plain, Size: 581 bytes --]
# i2c-algo-bit.c: Added KERNEL_VERSION check around if (current->need_resched) schedule(); and cond_sched();
--- linux/drivers/i2c/i2c-algo-bit.c.orig 2002-07-05 13:08:27.000000000 -0400
+++ linux/drivers/i2c/i2c-algo-bit.c 2002-07-05 13:09:58.000000000 -0400
@@ -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
[-- Attachment #3: 47-i2c-7-patch --]
[-- Type: text/plain, Size: 783 bytes --]
--- linux/include/linux/i2c-id.h.orig 2002-07-10 19:12:15.000000000 -0400
+++ linux/include/linux/i2c-id.h 2002-07-10 19:13:42.000000000 -0400
@@ -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 */
reply other threads:[~2002-07-18 3:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D363035.E4C0CFB1@bellsouth.net \
--to=ac9410@bellsouth.net \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®