# Re: \[PATCH RFC 2/3\] media: i2c: adv7842: remove open coded version of SMBus block read

- From: Wolfram Sang \<wsa+renesas@sang-engineering.com\>
- Date: 2021-01-12 16:45:22 
- List: lkml
- Page: https://ratatoskr.run/lkml/2021/01/6232066
- Thread: https://ratatoskr.run/linux-i2c/2021/01/6232056/t.md

```text
On Tue, Jan 12, 2021 at 05:41:28PM +0100, Wolfram Sang wrote:
> The open coded version differs from the one in the core in one way: the
> buffer will be always copied back, even when the transfer failed. It
> looks like it is expected that the sanity check for a correct CRC and
> header will bail out later.
> 
> Use the block read from the I2C core and propagate a potential errno
> further to the sanity check.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

$subject should say "adv7511", sorry!

```

## Attachments

- [signature.asc](https://ratatoskr.run/lkml/2021/01/6232066/attachment/0) (application/pgp-signature, 833 bytes)
