qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] i2c: Allow I2C devices to NAK start events


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] i2c: Allow I2C devices to NAK start events
Date: Thu, 5 Jan 2017 15:42:35 +0000

On 20 December 2016 at 21:26,  <address@hidden> wrote:
> From: Corey Minyard <address@hidden>
>
> Add a return value to the event handler.  Some I2C devices will
> NAK if they have no data, so allow them to do this.  This required
> the following changes:
>
> Go through all the event handlers and change them to return int
> and return 0.
>
> Modify i2c_start_transfer to terminate the transaction on a NAK.
>
> Modify smbus handing to not assert if a NAK occurs on a second
> operation, and terminate the transaction and return -1 instead.
>
> Add some information on semantics to I2CSlaveClass.
>
> Signed-off-by: Corey Minyard <address@hidden>

Thanks; added to target-arm.next.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]