public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Using regmap_update_bits to update a write only register
@ 2015-03-05 17:35 Daniel Baluta
  2015-03-05 17:53 ` Mark Brown
  0 siblings, 1 reply; 12+ messages in thread
From: Daniel Baluta @ 2015-03-05 17:35 UTC (permalink / raw)
  To: Linux Kernel Mailing List, broonie

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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-03-07 16:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-05 17:35 Using regmap_update_bits to update a write only register Daniel Baluta
2015-03-05 17:53 ` Mark Brown
     [not found]   ` <CAEnQRZCb0k7_W1gt7qCTqbQqDwzJ_bJkDYS1FHthKTA8sP19Qg@mail.gmail.com>
2015-03-06 11:21     ` Mark Brown
2015-03-06 12:45       ` Lars-Peter Clausen
2015-03-06 13:27         ` Daniel Baluta
2015-03-06 17:26           ` Daniel Baluta
2015-03-06 17:36             ` Lars-Peter Clausen
2015-03-06 17:39               ` Lars-Peter Clausen
2015-03-06 19:48               ` Daniel Baluta
2015-03-07 11:06                 ` Mark Brown
2015-03-07 16:07                 ` Lars-Peter Clausen
2015-03-07 11:05           ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox