[Fwd: Re: I2C drivers]
(I meant to CC this to the list)
-------- Original Message --------
From: - Tue Aug 26 09:35:07 2003
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Message-ID: <[email protected]>
Date: Tue, 26 Aug 2003 09:35:06 -0700
From: Philip Edelbrock <[email protected]>
Organization: Edge Design
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a)
Gecko/20030401
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ralf Baechle <[email protected]>
Subject: Re: I2C drivers
References: <[email protected]>
In-Reply-To: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi Ralf,
Normally what happens is we get a request for an I2C_DRIVERID and we assign it the next number in our central list. Linus should be using our constants (which I think he is). What we should probably do is add your driver id's to the list and assign them the next available numbers. We try to centralize this to keep things sane, especially if code migrates across trees (as I think you are sensing might be an issue down the road). There are two groups of numbers: for lm_sensors drivers and others included elsewhere. We maintain both lists.
What are the I2C_DRIVERID constants you which to add?
Phil
Quoted 16 lines · Ralf Baechle
Phil,
I got two I2C drivers for both 2.4 and 2.6 pending in my pile of MIPS patches. There's just one little issue I'd like to checkout with you first. The I2C_DRIVERID_* constants which have been used in the MIPS tree for these drivers have in the meantime also been assigned in Linus's and Marcelo's trees. Are these constants somehow visible in the kernel API or can I just go re-assign the next available number?
Thanks,
Ralf
Would anybody mind allocating Ralf a couple ID's? Thanks!
Phil
-------- Original Message --------
From: - Thu Sep 11 09:10:56 2003
X-UIDL: 91ece1abb4709fb9
X-Mozilla-Status: 0011
X-Mozilla-Status2: 00000000
Return-Path: <[email protected]>
Received: from dea.linux-mips.net (p508B58B4.dip.t-dialin.net
[80.139.88.180]) by Ren.netroedge.com (8.12.8p1/8.12.8) with ESMTP id h8BEvcIP004800 for <[email protected]>; Thu, 11 Sep 2003 07:57:40 -0700
Received: from dea.linux-mips.net (localhost [127.0.0.1]) by
dea.linux-mips.net (8.12.8/8.12.8) with ESMTP id h8BF8iLT016983 for <[email protected]>; Thu, 11 Sep 2003 17:08:44 +0200
Received: (from ralf@localhost) by dea.linux-mips.net
(8.12.8/8.12.8/Submit) id h8BF8hiJ016982 for [email protected]; Thu, 11 Sep 2003 17:08:43 +0200
Date: Thu, 11 Sep 2003 17:08:43 +0200
From: Ralf Baechle <[email protected]>
To: Philip Edelbrock <[email protected]>
Subject: Re: I2C drivers
Message-ID: <[email protected]>
References: <[email protected]>
<[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.4.1i
X-Quarentine-Loop: Processed
X-Spambayes-Classification: ham; 0.00
Quoted 10 lines · Philip Edelbrock
Normally what happens is we get a request for an
I2C_DRIVERIDand we assign it the next number in our central list. Linus should be using our constants (which I think he is). What we should probably do is add your driver id's to the list and assign them the next available numbers. We try to centralize this to keep things sane, especially if code migrates across trees (as I think you are sensing might be an issue down the road). There are two groups of numbers: forlm_sensorsdrivers and others included elsewhere. We maintain both lists.What are the
I2C_DRIVERIDconstants you which to add?
The two new driver IDs are:
#define I2C_DRIVERID_MAX1617 56 /* temp sensor */ #define I2C_DRIVERID_SAA7191 57 /* video encoder */ #define I2C_DRIVERID_INDYCAM 50 /* SGI IndyCam */
Also two new algorithms:
#define I2C_ALGO_SIBYTE 0x150000 /* Broadcom SiByte SOCs */
#define I2C_ALGO_SGI 0x160000 /* SGI algorithm */
I need an ID for both 2.4 and 2.6 but I assume you keep those numbers in sync anyway? The numbers above are what I'm currently using.
Thanks,
Ralf
Quoted 4 lines · Jean Delvare
Quoted 2 lines
(...)
The two new driver IDs are:I see three of them. Or I am drunk? ;)
A reminiscence to Douglas Adam's trilogy in five volumes ;)
Ralf
Quoted 8 lines
Would anybody mind allocating Ralf a couple ID's? Thanks!
Phil
-------- Original Message --------
(...)
The two new driver IDs are:
I see three of them. Or I am drunk? ;)
Quoted 3 lines
#define I2C_DRIVERID_MAX1617 56 /* temp sensor */ #define I2C_DRIVERID_SAA7191 57 /* video encoder */ #define I2C_DRIVERID_INDYCAM 50 /* SGI IndyCam */
MAX1617 and SAA7191 are OK, but INDYCAM will be 58.
Quoted 4 lines
Also two new algorithms:
#define
I2C_ALGO_SIBYTE0x150000/* Broadcom SiByte SOCs */
#defineI2C_ALGO_SGI0x160000/* SGI algorithm */
OK, they are yours.
Quoted 2 lines
I need an ID for both 2.4 and 2.6 but I assume you keep those numbers in sync anyway? The numbers above are what I'm currently using.
Yes, the numbers are more or less kept in sync. Sadly enough, not everyone requests IDs before using them, so 2.4, 2.6 and i2c-I2C are sometimes slightly out of sync, but most of the time everything ends up ;)
Quoted 1 line
Thanks,
You're welcome.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/