lkml.org 
[lkml]   [2020]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] i2c: at91: support atomic write xfer

> + /* FIXME: only single write request supported to 7-bit addr */

Hmm, this is quite limited. Would it be very hard to support multiple
messages? Or reads? 10 bits don't matter.

> + if (!dev->pdata->has_alt_cmd)
> + return -EOPNOTSUPP;

We should handle this in probe(), I think:

if (dev->pdata->has_alt_cmd)
at91_twi_algorithm.master_xfer_atomic = at91_twi_xfer_atomic;

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-03-22 15:30    [W:0.047 / U:6.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site