lkml.org 
[lkml]   [2016]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 05/14] i2c-octeon: Make adapter timeout tunable
On Mon, Mar 07, 2016 at 04:10:48PM +0100, Jan Glauber wrote:
> From: Peter Swain <pswain@cavium.com>
>
> Make the i2c adapter timeout a module parameter to allow upper-level
> target device drivers to retry with their own logic before their own
> timeouts abort operations.
>
> For example, at24 eeprom driver retries for 25ms when -EAGAIN
> indicates that an eeprom has gone unresponsive while committing
> a newly written page (5ms on typical devices).
>
> Signed-off-by: Peter Swain <pswain@cavium.com>
> Signed-off-by: Jan Glauber <jglauber@cavium.com>

i2c-dev has IOCTLs for timeout and retries. Can't you use those?

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-03-12 17:21    [W:0.209 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site