lkml.org 
[lkml]   [2016]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND PATCH v2 04/13] eeprom: at24: make locking more fine-grained
On Mon, Apr 11, 2016 at 11:57:20AM -0700, Bartosz Golaszewski wrote:
> The only field in struct at24_data that needs locking in the module
> code is u8 *writebuf. Other data is already protected by i2c core.
>
> Rename the lock in at24_data to wrbuf_lock and only use it where
> writebuf is accessed.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

Did you run some tests to verify our assumption?

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-04-16 23:21    [W:0.146 / U:0.948 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site