Re: [PATCH 2/2] i2c-stub: Add support for banked register ranges

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 10 Jul 2014 11:40:36 -0700, Guenter Roeck wrote:
> On Thu, Jul 10, 2014 at 12:56:59PM +0200, Jean Delvare wrote:
> > Some chips implement banked register ranges. This allows implementing
> > more registers than the limited 8-bit address space originally allows.
> > In order to access a register on these chips, you must first select
> > the proper bank. Add support for this mechanism to the i2c-stub driver
> > so that such chips can be emulated. All the bank settings are passed
> > as module parameters.
> > 
> > Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
> > Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
> > ---
> > Tested successfully with:
> > http://jdelvare.nerim.net/devel/lm-sensors/dumps/w83793-for-stub.dump
> > 
> Also with NCT7802Y.
> 
> Tested-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Thanks.

> Would it make sense to use devm_ functions for memory allocations ?
> That would simplify cleanup.

Sure, no objection from me.

-- 
Jean Delvare
SUSE L3 Support
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux