Re: [PATCH] hw/nvram: at24 return 0xff if 1 byte address

2021-12-20 Thread Philippe Mathieu-Daudé
On 12/20/21 16:32, Patrick Venture wrote: > On Mon, Dec 20, 2021 at 1:12 AM Philippe Mathieu-Daudé > mailto:phi...@redhat.com>> wrote: > > Hi Patrick, > > On 12/20/21 01:32, Patrick Venture wrote: > > The at24 eeproms are 2 byte devices that return 0xff when they are > read >

Re: [PATCH] hw/nvram: at24 return 0xff if 1 byte address

2021-12-20 Thread Patrick Venture
On Mon, Dec 20, 2021 at 1:12 AM Philippe Mathieu-Daudé wrote: > Hi Patrick, > > On 12/20/21 01:32, Patrick Venture wrote: > > The at24 eeproms are 2 byte devices that return 0xff when they are read > > from with a partial (1-byte) address written. This distinction was > > found comparing model

Re: [PATCH] hw/nvram: at24 return 0xff if 1 byte address

2021-12-20 Thread Philippe Mathieu-Daudé
Hi Patrick, On 12/20/21 01:32, Patrick Venture wrote: > The at24 eeproms are 2 byte devices that return 0xff when they are read > from with a partial (1-byte) address written. This distinction was > found comparing model behavior to real hardware testing. > > Tested: `i2ctransfer -f -y 45 w1@85

[PATCH] hw/nvram: at24 return 0xff if 1 byte address

2021-12-19 Thread Patrick Venture
The at24 eeproms are 2 byte devices that return 0xff when they are read from with a partial (1-byte) address written. This distinction was found comparing model behavior to real hardware testing. Tested: `i2ctransfer -f -y 45 w1@85 0 r1` returns 0xff instead of next byte Signed-off-by: Patrick