i2ctools/i2cset: Remove obsolete means to specify value mask

2011-01-31 Thread Guenter Roeck
Attached patch removes the obsolete means to specify the value mask from i2cset. It also streamlines and improves parameter validation. -- Index: tools/i2cset.c === --- tools/i2cset.c (revision 5911) +++ tools/i2cset.c

Re: [PATCH v2] i2ctools: Add capability to write block command

2011-01-29 Thread Guenter Roeck
Hi Jean, On Sat, Jan 29, 2011 at 11:43:54AM -0500, Jean Delvare wrote: [ ...] Other than that, it looks alright, feel free to commit (I've just added you to the list of committers - same credentials as lm-sensors repository.) Thanks, and done. Next, I think we can remove the old method

[PATCH] i2ctools: Add capability to write block command

2011-01-27 Thread Guenter Roeck
This patch adds support to write block data to i2cset. I tried to limit the changes as much as possible. Detecting new write modes is a bit tricky since the command supports an undocumented parameter (mask) after the mode. So I decided to handle block data first and bypass the rest of the

[PATCH v2] i2ctools: Add capability to write block command

2011-01-27 Thread Guenter Roeck
Add support to write SMBus and I2C block data to i2cset. Rev 2: Included review feedback -- Index: tools/i2cset.8 === --- tools/i2cset.8 (revision 5909) +++ tools/i2cset.8 (working copy) @@ -12,6 +12,7 @@ .I chip-address

Re: [PATCH] i2c: Fix error return codes

2011-01-27 Thread Guenter Roeck
Guenter Roeck guenter.roeck@... writes: EREMOTEIO is not a valid error return code for I2C drivers. Replace with error codes per Documentation/i2c/fault-codes. Signed-off-by: Guenter Roeck guenter.roeck@... --- ping ... any interest ? -- To unsubscribe from this list: send the line

[PATCH v4] i2c/busses: Add support for Diolan U2C-12 USB-I2C adapter

2011-01-26 Thread Guenter Roeck
This patch adds support for the Diolan U2C-12 USB-I2C adapter. It also updates MAINTAINERS to list the author as maintainer. Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- v4 changes: - Moved buffer to beginning of device data structure to improve cache alignment - Increased maximum

Re: i2ctools: Need capability to write SMBus block command

2011-01-25 Thread Guenter Roeck
On Tue, Jan 25, 2011 at 11:21:06AM -0500, Guenter Roeck wrote: Hi, I need the capability to write a SMBus block command with i2ctools. Not an issue writing it myself. Question is if to expand i2cset to include that capability, or to write a new command (i2csetblock ?) to do it. Thoughts

Re: i2ctools: Need capability to write SMBus block command

2011-01-25 Thread Guenter Roeck
On Tue, Jan 25, 2011 at 11:49:22AM -0500, Jean Delvare wrote: Hi Guenter, On Tue, 25 Jan 2011 08:21:06 -0800, Guenter Roeck wrote: I need the capability to write a SMBus block command with i2ctools. Not an issue writing it myself. Question is if to expand i2cset to include

[PATCH v3] i2c/busses: Add support for Diolan U2C-12 USB/I2C adapter

2011-01-20 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- v3: - Round frequency configuration down (instead of rounding to closest value) - Simplify diolan_usb_transfer() a bit - Introduce diolan_write_cmd() to check if a write is needed and execute it if so. - diolan_fw_version

[PATCH] i2c: Fix error return codes

2011-01-19 Thread Guenter Roeck
EREMOTEIO is not a valid error return code for I2C drivers. Replace with error codes per Documentation/i2c/fault-codes. Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- drivers/i2c/algos/i2c-algo-bit.c| 14 +++--- drivers/i2c/algos/i2c-algo-pca.c|2 +- drivers

[PATCH v2 0/2] Add support for Diolan U2C-12 USB/I2C adapter.

2011-01-19 Thread Guenter Roeck
v2 changes: - Moved receive and transmit buffers to allocated driver memory - diolan_usb_transfer() no longer requires buffer and length arguments - Pass struct i2c_diolan_u2c * instead of struct i2c_adapter * to many of the internal usb access functions. - Introduced diolan_usb_cmd(),

[PATCH v2 2/2] MAINTAINERS: Add maintainer for Diolan U2C-12 I2C adapter driver

2011-01-19 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1af022e..12b0be3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2089,6 +2089,12 @@ F: Documentation/serial

[PATCH v2 1/2] i2c/busses: Diolan U2C-12 USB/I2C adapter driver

2011-01-19 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile |1 + drivers/i2c/busses/i2c-diolan-u2c.c | 529 +++ 3 files changed, 540 insertions(+), 0 deletions(-) create mode

Re: [PATCH v2 2/2] MAINTAINERS: Add maintainer for Diolan U2C-12 I2C adapter driver

2011-01-19 Thread Guenter Roeck
On Wed, 2011-01-19 at 15:56 -0500, Ben Dooks wrote: On Wed, Jan 19, 2011 at 01:26:38PM -0800, Guenter Roeck wrote: Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com meaningful commit messages please. In general I agree, only if the headline says everything what else do you want me

Re: [PATCH v2 1/2] i2c/busses: Diolan U2C-12 USB/I2C adapter driver

2011-01-19 Thread Guenter Roeck
On Wed, 2011-01-19 at 16:14 -0500, Ben Dooks wrote: On Wed, Jan 19, 2011 at 01:26:37PM -0800, Guenter Roeck wrote: Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile |1 + drivers/i2c/busses

Re: [PATCH v2 1/2] i2c/busses: Diolan U2C-12 USB/I2C adapter driver

2011-01-19 Thread Guenter Roeck
On Wed, 2011-01-19 at 16:14 -0500, Ben Dooks wrote: On Wed, Jan 19, 2011 at 01:26:37PM -0800, Guenter Roeck wrote: Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com [ ... ] +/* Structure to hold all of our device specific stuff */ +struct i2c_diolan_u2c { + struct usb_device

Re: [PATCH] I2C: SiByte: Convert the driver to make use of interrupts

2010-12-07 Thread Guenter Roeck
On Tue, Dec 07, 2010 at 09:30:27AM -0500, Maciej W. Rozycki wrote: On Mon, 6 Dec 2010, Guenter Roeck wrote: A quick look through sb1250 vs. sb1480 code shows that the 1480 uses different interrupt numbers. The patch assigns the sb1250 interrupt numbers, so unless I am missing something

Re: [PATCH] I2C: SiByte: Convert the driver to make use of interrupts

2010-12-06 Thread Guenter Roeck
On Mon, Dec 06, 2010 at 01:38:14AM -0500, Matt Turner wrote: From: Maciej W. Rozycki ma...@linux-mips.org This is a rewrite of large parts of the driver mainly so that it uses SMBus interrupts to offload the CPU from busy-waiting on status inputs. As a part of the overhaul of the init and

Re: [PATCH] I2C: SiByte: Convert the driver to make use of interrupts

2010-12-06 Thread Guenter Roeck
On Mon, Dec 06, 2010 at 01:38:14AM -0500, Matt Turner wrote: From: Maciej W. Rozycki ma...@linux-mips.org This is a rewrite of large parts of the driver mainly so that it uses SMBus interrupts to offload the CPU from busy-waiting on status inputs. As a part of the overhaul of the init and

Re: [PATCH] I2C: SiByte: Convert the driver to make use of interrupts

2010-12-06 Thread Guenter Roeck
On Mon, Dec 06, 2010 at 12:40:15PM -0500, Matt Turner wrote: On Mon, Dec 6, 2010 at 5:30 PM, Guenter Roeck guenter.ro...@ericsson.com wrote: On Mon, Dec 06, 2010 at 01:38:14AM -0500, Matt Turner wrote: From: Maciej W. Rozycki ma...@linux-mips.org This is a rewrite of large parts

Re: [PATCH] I2C: SiByte: Convert the driver to make use of interrupts

2010-12-06 Thread Guenter Roeck
On Mon, Dec 06, 2010 at 01:38:14AM -0500, Matt Turner wrote: From: Maciej W. Rozycki ma...@linux-mips.org This is a rewrite of large parts of the driver mainly so that it uses SMBus interrupts to offload the CPU from busy-waiting on status inputs. As a part of the overhaul of the init and

Re: [RFC/PATCH] i2c/busses: Add support for Diolan U2C-12 USB/I2C adapter

2010-11-04 Thread Guenter Roeck
Hi Jean, On Thu, 2010-11-04 at 08:43 -0400, Jean Delvare wrote: On Wed, 3 Nov 2010 17:26:29 -0700, Guenter Roeck wrote: Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- This is an usb-i2c adapter I am using to connect to i2c evaluation and test boards. Not sure if it is worth

Re: [RFC/PATCH] i2c/busses: Add support for Diolan U2C-12 USB/I2C adapter

2010-11-04 Thread Guenter Roeck
Hi Ben, wow, this is creating way more interest than I thought... On Thu, 2010-11-04 at 08:47 -0400, Ben Dooks wrote: On Wed, Nov 03, 2010 at 05:26:29PM -0700, Guenter Roeck wrote: Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- This is an usb-i2c adapter I am using to connect

Re: [RFC/PATCH] i2c/busses: Add support for Diolan U2C-12 USB/I2C adapter

2010-11-04 Thread Guenter Roeck
Hi Jean, On Thu, 2010-11-04 at 16:18 -0400, Jean Delvare wrote: Hi Guenter, On Thu, 4 Nov 2010 09:41:42 -0700, Guenter Roeck wrote: On Thu, 2010-11-04 at 08:43 -0400, Jean Delvare wrote: I'm also unsure what is the point of having such a large buffer when the largest block you ever

[RFC/PATCH] i2c/busses: Add support for Diolan U2C-12 USB/I2C adapter

2010-11-03 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- This is an usb-i2c adapter I am using to connect to i2c evaluation and test boards. Not sure if it is worth adding it into the kernel. If yes, I'll be happy to add myself as maintainer. drivers/i2c/busses/Kconfig | 10

Re: [PATCH 00/12] lis3 accelerator feature update

2010-10-24 Thread Guenter Roeck
On Sun, Oct 24, 2010 at 11:05:33AM -0400, Éric Piel wrote: Op 22-10-10 13:57, Samu Onkalo schreef: Changes are tested only with I2C interface using 8bit sensor since I don't have other possibilities. Some features are not enabled by default since I can't test them with all possible

Re: [lm-sensors] [PATCH 00/12] lis3 accelerator feature update

2010-10-24 Thread Guenter Roeck
On Sun, Oct 24, 2010 at 11:35:48AM -0400, Guenter Roeck wrote: On Sun, Oct 24, 2010 at 11:05:33AM -0400, Éric Piel wrote: Op 22-10-10 13:57, Samu Onkalo schreef: Changes are tested only with I2C interface using 8bit sensor since I don't have other possibilities. Some features

Re: [PATCH 00/12] lis3 accelerator feature update

2010-10-22 Thread Guenter Roeck
On Fri, 2010-10-22 at 07:57 -0400, Samu Onkalo wrote: Changes are tested only with I2C interface using 8bit sensor since I don't have other possibilities. Some features are not enabled by default since I can't test them with all possible configurations. Platform data contains field which

Re: [PATCH 00/12] lis3 accelerator feature update

2010-10-22 Thread Guenter Roeck
On Fri, Oct 22, 2010 at 07:44:48PM -0400, Éric Piel wrote: Op 22-10-10 22:08, Guenter Roeck schreef: On Fri, 2010-10-22 at 07:57 -0400, Samu Onkalo wrote: Changes are tested only with I2C interface using 8bit sensor since I don't have other possibilities. Some features are not enabled

Re: [PATCH v3] i2c/mux: Driver for PCA9541 I2C Master Selector

2010-10-21 Thread Guenter Roeck
On Thu, Oct 21, 2010 at 10:43:04AM -0400, Jean Delvare wrote: On Tue, 19 Oct 2010 20:55:08 -0700, Guenter Roeck wrote: This patch adds support for PCA9541, an I2C Bus Master Selector. The driver is modeled as single channel I2C Multiplexer to be able to utilize the I2C multiplexer

[PATCH] MAINTAINERS: Add maintainer for PCA9541 I2C bus master selector driver

2010-10-21 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f46d8e6..f96e8a3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4458,6 +4458,12 @@ S: Maintained F

[PATCH] i2c/muxes: (pca954x) Remove __devinit and __devexit from probe and remove functions

2010-10-20 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- drivers/i2c/muxes/pca954x.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index 6f9accf..54e1ce7 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b

Re: [PATCH v2] i2c/mux: Driver for PCA9541 I2C Master Selector

2010-10-19 Thread Guenter Roeck
Hi Jean, On Tue, Oct 19, 2010 at 01:06:47PM -0400, Jean Delvare wrote: Hi Guenter, On Tue, 12 Oct 2010 18:15:16 -0700, Guenter Roeck wrote: This patch adds support for PCA9541, an I2C Bus Master Selector. The driver is modeled as single channel I2C Multiplexer to be able to utilize

Re: [PATCH v2] i2c/mux: Driver for PCA9541 I2C Master Selector

2010-10-19 Thread Guenter Roeck
On Tue, 2010-10-19 at 17:49 -0400, Jean Delvare wrote: On Tue, 19 Oct 2010 13:50:53 -0700, Guenter Roeck wrote: Hi Jean, On Tue, 2010-10-19 at 13:06 -0400, Jean Delvare wrote: [ ... ] + +/* + * I2C init/probing/exit functions + */ +static int __devinit pca9541_probe

[PATCH v3] i2c/mux: Driver for PCA9541 I2C Master Selector

2010-10-19 Thread Guenter Roeck
This patch adds support for PCA9541, an I2C Bus Master Selector. The driver is modeled as single channel I2C Multiplexer to be able to utilize the I2C multiplexer framework. Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com Reviewed-by: Tom Grennan tom.gren...@ericsson.com --- v3 changes

Re: [PATCH v2] i2c/mux: Driver for PCA9541 I2C Master Selector

2010-10-15 Thread Guenter Roeck
On Tue, Oct 12, 2010 at 09:15:16PM -0400, Guenter Roeck wrote: This patch adds support for PCA9541, an I2C Bus Master Selector. The driver is modeled as single channel I2C Multiplexer to be able to utilize the I2C multiplexer framework. Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com

Re: Driver for pca9541 bus master selector

2010-10-13 Thread Guenter Roeck
Jean Delvare kh...@... writes: [...] I don't quite see the point of such chips, BTW. I2C supports multi-master already, so two masters talking to the same slave sequentially is already supported. To follow up on this, turns out there are (at least) two good reasons for having such a chip.

Re: Driver for pca9541 bus master selector

2010-10-13 Thread Guenter Roeck
On Wed, Sep 29, 2010 at 03:19:28AM -0400, Jean Delvare wrote: [ ... ] I don't quite see the point of such chips, BTW. I2C supports multi-master already, so two masters talking to the same slave sequentially is already supported. To follow up on this, turns out there are (at least) two good

[PATCH v2] i2c/mux: Driver for PCA9541 I2C Master Selector

2010-10-12 Thread Guenter Roeck
This patch adds support for PCA9541, an I2C Bus Master Selector. The driver is modeled as single channel I2C Multiplexer to be able to utilize the I2C multiplexer framework. Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com Reviewed-by: Tom Grennan tom.gren...@ericsson.com --- v2 changes

Re: [lm-sensors] [RFC PATCH 0/9] lis3 accelerator feature update

2010-10-02 Thread Guenter Roeck
On Sat, Oct 02, 2010 at 08:27:05AM -0400, Jonathan Cameron wrote: On 10/02/10 09:25, Jean Delvare wrote: Hi Guenter, On Fri, 1 Oct 2010 19:53:11 -0700, Guenter Roeck wrote: On Fri, Oct 01, 2010 at 07:46:47AM -0400, Samu Onkalo wrote: This patch set is done to top of 2.6.36-RC5

Re: Driver for pca9541 bus master selector

2010-09-30 Thread Guenter Roeck
On Thu, Sep 30, 2010 at 01:59:44AM -0400, Michael Lawnick wrote: [ ... ] I only took a rough look, but it seemed to me that the pca is part of the main device. Yes From abstraction side of view your problem seems a matter of synchronization of two independent computer systems. You will need

Re: Driver for pca9541 bus master selector

2010-09-29 Thread Guenter Roeck
On Wed, Sep 29, 2010 at 03:19:28AM -0400, Jean Delvare wrote: [ ... ] I was speaking of the PCA9540. I don't think anyone ever wrote a driver for the PCA9541. And in all honestly I don't think the new i2c-mux infrastructure is ready for this. It was written with single-master topologies in

Driver for pca9541 bus master selector

2010-09-28 Thread Guenter Roeck
Hi all, I am in the process of writing a driver for the pca9541 bus master selector. I using the i2c multiplexer framework, which fits the requirements quite nicely. If anyone happens to know about an existing driver for this chip, please let me know. I would love to get some input for the

Re: Driver for pca9541 bus master selector

2010-09-28 Thread Guenter Roeck
Hi Jean, On Tue, Sep 28, 2010 at 12:42:15PM -0400, Jean Delvare wrote: On Tue, 28 Sep 2010 09:07:46 -0700, Guenter Roeck wrote: On Tue, Sep 28, 2010 at 11:16:07AM -0400, Jean Delvare wrote: Hi Guenter, On Tue, 28 Sep 2010 07:33:02 -0700, Guenter Roeck wrote: I am in the process

[PATCH] hwmon: Add tempX_emergency to sysfs ABI

2010-08-26 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- tempX_emergency will be used by max6696. It can also be used for other chips supporting three upper temperature limits. Documentation/hwmon/sysfs-interface |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

Re: [lm-sensors] [PATCH] hwmon: Add tempX_emergency to sysfs ABI

2010-08-26 Thread Guenter Roeck
On Thu, Aug 26, 2010 at 12:10:23PM -0400, Henrique de Moraes Holschuh wrote: On Thu, 26 Aug 2010, Guenter Roeck wrote: Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- tempX_emergency will be used by max6696. It can also be used for other chips supporting three upper

Re: [lm-sensors] [PATCH] hwmon: Add tempX_emergency to sysfs ABI

2010-08-26 Thread Guenter Roeck
On Thu, Aug 26, 2010 at 12:10:23PM -0400, Henrique de Moraes Holschuh wrote: On Thu, 26 Aug 2010, Guenter Roeck wrote: Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- tempX_emergency will be used by max6696. It can also be used for other chips supporting three upper

Re: Status of multiplexed i2c support

2010-08-10 Thread Guenter Roeck
On Tue, Aug 10, 2010 at 08:29:38AM -0400, Jean Delvare wrote: Hi Guenter, Sorry for the late answer, I am just returning from vacation. Hi Jean, I figured that much... On Tue, 20 Jul 2010 21:29:22 -0700, Guenter Roeck wrote: what is the current status of i2c mux support, specifically

[PATCH v2] hwmon: Add support for JEDEC JC 42.4 compliant temperature sensors

2010-07-11 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- v2 changes: - Added support for MAX6604 - Added support for TSE2002B3 and TS3000B3 (IDT) - Define Manufacturer IDs separately and only once per manufacturer - Rearranged chip defines to alphabetic order --- Documentation/hwmon/jc42

Re: [PATCH v2] hwmon: Add support for JEDEC JC 42.4 compliant temperature sensors

2010-07-11 Thread Guenter Roeck
On Sun, Jul 11, 2010 at 11:31:06AM -0400, Joe Perches wrote: On Sun, 2010-07-11 at 07:53 -0700, Guenter Roeck wrote: diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c new file mode 100644 index 000..685057d --- /dev/null +++ b/drivers/hwmon/jc42.c [] +struct jc42_chips

[PATCH] hwmon: Add support for JEDEC JC 42.4 compliant temperature sensors

2010-07-08 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- Documentation/hwmon/jc42 | 86 +++ MAINTAINERS |7 + drivers/hwmon/Kconfig| 11 + drivers/hwmon/Makefile |1 + drivers/hwmon/jc42.c | 575 ++ 5 files

[PATCH/RFC v2 0/4] hwmon: PMBus device driver

2010-07-04 Thread Guenter Roeck
This patchset adds support for hardware monitoring features of PMBus devices. The driver has not yet been tested with actual hardware. It is submitted for early review and to solicit test coverage. A PMBus device emulator is provided for reference, to show the level of testing performed. I don't

[PATCH/RFC v2 1/4] hwmon: PMBus device driver

2010-07-04 Thread Guenter Roeck
This driver adds support for hardware monitoring features of various PMBus devices. Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- drivers/hwmon/Kconfig | 12 + drivers/hwmon/Makefile |1 + drivers/hwmon/pmbus.c | 1396

[PATCH/RFC v2 4/4] hwmon: sysfs API updates

2010-07-04 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- Documentation/hwmon/sysfs-interface | 37 +- 1 files changed, 31 insertions(+), 6 deletions(-) diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface index d4e2917

[PATCH/RFC v2 2/4] hwmon: i2c PMBus device emulator

2010-07-04 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- Documentation/i2c/i2c-pmbus| 41 ++ drivers/i2c/busses/Kconfig | 13 + drivers/i2c/busses/Makefile|1 + drivers/i2c/busses/i2c-pmbus.c | 877 4 files changed, 932 insertions

[PATCH/RFC v2 3/4] hwmon: pmbus driver documentation

2010-07-04 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- Documentation/hwmon/pmbus | 139 + 1 files changed, 139 insertions(+), 0 deletions(-) create mode 100644 Documentation/hwmon/pmbus diff --git a/Documentation/hwmon/pmbus b/Documentation

[PATCH/RFC 2/4] hwmon: PMBus device driver

2010-06-28 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- drivers/hwmon/Kconfig | 12 + drivers/hwmon/Makefile |1 + drivers/hwmon/pmbus.c | 1227 drivers/hwmon/pmbus.h | 209 4 files changed, 1449 insertions(+), 0 deletions

[PATCH/RFC 3/4] hwmon: pmbus driver documentation

2010-06-28 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- Documentation/hwmon/pmbus | 117 + 1 files changed, 117 insertions(+), 0 deletions(-) create mode 100644 Documentation/hwmon/pmbus diff --git a/Documentation/hwmon/pmbus b/Documentation

[PATCH/RFC 4/4] hwmon: sysfs API updates

2010-06-28 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- Documentation/hwmon/sysfs-interface | 27 ++- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface index d4e2917..b183d94

[PATCH/RFC 0/4] hwmon: PMBus device driver

2010-06-28 Thread Guenter Roeck
This patchset adds support for hardware monitoring features of PMBus devices. The driver has not yet been tested with actual hardware. It is submitted for early review and, hopefully, to get some test coverage. A PMBus device emulator is provided for reference, to show the level of testing

[PATCH/RFC 1/4] hwmon: i2c PMBus device emulator

2010-06-28 Thread Guenter Roeck
Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- Documentation/i2c/i2c-pmbus| 41 ++ drivers/i2c/busses/Kconfig | 13 + drivers/i2c/busses/Makefile|1 + drivers/i2c/busses/i2c-pmbus.c | 874 4 files changed, 929 insertions

Re: [PATCH] i2c/mips: Fix error return codes from Sibyte i2c bus driver

2010-06-22 Thread Guenter Roeck
On Mon, Jun 21, 2010 at 01:02:52PM -0400, Jean Delvare wrote: Hi Guenter, On Sun, 20 Jun 2010 10:57:53 -0700, Guenter Roeck wrote: Sibyte i2c bus driver returns non-descriptive error values. Update to return error values as defined in Documentation/i2c/fault-codes. Signed-off

[PATCH v2] i2c/mips: Fix error return codes from Sibyte i2c bus driver

2010-06-22 Thread Guenter Roeck
Sibyte i2c bus driver returns non-descriptive error values. Update to return error values as defined in Documentation/i2c/fault-codes. Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- v2: Return -ENXIO for missing ACK and -EIO for other errors --- drivers/i2c/busses/i2c-sibyte.c

[PATCH] i2c/mips: Fix error return codes from Sibyte i2c bus driver

2010-06-20 Thread Guenter Roeck
Sibyte i2c bus driver returns non-descriptive error values. Update to return error values as defined in Documentation/i2c/fault-codes. Signed-off-by: Guenter Roeck guenter.ro...@ericsson.com --- drivers/i2c/busses/i2c-sibyte.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

Re: PMBus support in Linux

2010-05-30 Thread Guenter Roeck
On Sun, May 30, 2010 at 12:15:07AM -0400, Wolfram Sang wrote: So, the approach I see (unless I miss something) would be writing an hwmon-I2C-driver named pmbus-devices.c or so which covers the generic functionality and provides some hooks for manufacturer extensions, if those are

Re: PMBus support in Linux

2010-05-29 Thread Guenter Roeck
On Sat, May 29, 2010 at 11:47:41AM -0400, Wolfram Sang wrote: Yes. PMBus uses i2c as transport, so it can use the existing i2c/smbus infrastructure. Data reported is voltage, temperature, current, power, and fan data as available from the individual chip. Chips support a chip

PMBus support in Linux

2010-05-28 Thread Guenter Roeck
Hi, does anyone know if there is an effort to add infrastructure for PMBus support (or support for specific PMBus devices) to Linux ? I'll have to write a driver for a couple of PMBus chips (LTC2978 and BMR453), and it would help to know if there is a starting point. Thanks, Guenter -- To

<    1   2   3