From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: i2c_smbus_write_block_data does not send all bytes?! Date: Tue, 15 Jul 2008 19:52:06 +0200 Message-ID: <20080715195206.3db84fce@hyperion.delvare> References: <20080715185223.7f2f39aa@hyperion.delvare> <968764.38783.qm@web27601.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <968764.38783.qm-fkCdBXra523GRxTy+Q50vsz6deESKz/lQQ4Iyu8u01E@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: xpage_de-LWAfsSFWpa4@public.gmane.org Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Tue, 15 Jul 2008 17:28:34 +0000 (GMT), Nick Teen wrote: > --- Jean Delvare wrote: > > Which bus do you see the device on in i2cdetect? You said > > earlier that you were using the i2c-i801 driver, which is expected for > > an Intel motherboard. However you say that the PIC is connected to > > an SMSC chip, and not the Intel south bridge? Are you sure? If you are, > > what is the name of the SMSC chip in question? > > Okay, i was wrong. The smsc47m192 _and_ the PIC is connected to the > SMBus I801 (at a040). If i type "sensors", i get sensor data from 0x2d. > > > Which i2c bus are you running your program on? The > > "SMBus I801" one? > > I'm afraid so. > > > Note that it is not entirely impossible that the block > > write support in the i2c-i801 driver is broken. This is a driver which is > > mostly used to access SPD EEPROMs and hardware monitoring chips, to which > > you never write blocks. > > Okay... so i've no chance to send the PIC block data. :'-( > > Thanks a lot! I give up. ;-) This is free software. The i2c-i801 driver is open for you to look at, and the datasheets are also available for download from Intel. For example: http://www.intel.com/design/chipsets/datashts/252516.htm So if you are really motivated, you could compare what the code does for the block write transactions with what the datasheet says, and contribute the fix if you find something. -- Jean Delvare _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c