# Re: \[PATCH v5\] i2c: Adding support for Intel iSMT SMBus 2.0 host controller

- List: linux-i2c
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-i2c/2013/01/15595387/t

## Re: \[PATCH v5\] i2c: Adding support for Intel iSMT SMBus 2.0 host controller

- From: Jean Delvare \<hidden\>
- Date: 2013-01-30 21:55:57 
- Message: https://ratatoskr.run/linux-i2c/2013/01/15595387.md

```text
On Wed, 30 Jan 2013 09:15:04 -0500, Neil Horman wrote:
> On Tue, Jan 29, 2013 at 11:10:28PM +0100, Jean Delvare wrote:
> > This won't fix it, unless the hardware happens to update dma_size when
> > receiving a block from a slave. If not then dma_size will always be
> > I2C_SMBUS_BLOCK_MAX, while what we need is the number of bytes actually
> > received.
>
> I'm sorry, I misspoke.  Its the rxbytes field in the descriptor that we need to use.  I
> believe that field gets updated by the firmware on dmas from the device to the
> cpu.

I couldn't find a description of the hardware descriptor in the
datasheets, so I'm afraid I can't help here. If it is really there then
I'd be grateful if you can point me to the right file and page.

> (...)
> I'll have some tomorrow.  I've got all your trivial changes fixed up, and will
> hopefully be able to sort out the convoluted stuff with you and Seth in the next
> few days

Great. I'll be happy to test whatever you have then.

-- 
Jean Delvare
```
