lkml.org 
[lkml]   [2015]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectUsing regmap_update_bits to update a write only register
From
Hi Mark,

Is it possible to use regmap_update_bits to update the values
of some bits in a write only register?

I was hoping that by filling the .reg_defaults field of regmap_config
the regmap_update_bits function will not try to read the register
from hardware.

Instead I think first call of regmap_update_bits will try to read the register
from hardware, but this fails with -EIO because the register is marked as
write only.

Am I doing something wrong?

thanks,
Daniel.


\
 
 \ /
  Last update: 2015-03-05 18:41    [W:0.129 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site