Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261712AbUCPVjq (ORCPT ); Tue, 16 Mar 2004 16:39:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261707AbUCPVjq (ORCPT ); Tue, 16 Mar 2004 16:39:46 -0500 Received: from mail.kroah.org ([65.200.24.183]:46746 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S261712AbUCPVjp (ORCPT ); Tue, 16 Mar 2004 16:39:45 -0500 Date: Tue, 16 Mar 2004 11:53:26 -0800 From: Greg KH To: linux-kernel@vger.kernel.org, sensors@Stimpy.netroedge.com Cc: Michael Hunold Subject: Re: [RFC][2.6] Additional i2c adapter flags for i2c client isolation Message-ID: <20040316195325.GA22473@kroah.com> References: <4056C805.8090004@convergence.de> <20040316154454.GA13854@kroah.com> <20040316201426.1d01f1d3.khali@linux-fr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040316201426.1d01f1d3.khali@linux-fr.org> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1257 Lines: 34 On Tue, Mar 16, 2004 at 08:14:26PM +0100, Jean Delvare wrote: > > I guess that chip drivers would be allowed to define only one class > while adapters could possibly define more than one? Not necessarily. Just make the class a bit field, showing what kind of devices each expects to handle. > We also would want to introduce an I2C_ADAP_CLASS_ANY define, which > would be what the eeprom driver would use, for example (since it can be > hosted on any kind of bus). Generic bus drivers such as i2c-parport > would also use I2C_ADAP_CLASS_ANY, since the nature of the hosted chips > is unknown. Sure: #define I2C_ADAP_CLASS_ANY 0xffffffff works for me :) > Having clients define a class sounds also interesting from a > user-space's point of view. If we would export this information through > sysfs for example, programs such as "sensors" could limit their work to > chips of the correct class (I2C_ADAP_CLASS_SMBUS at the moment, but a > renaming is planned). That also is a good idea. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/