Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 10-16-2017, 01:05 PM   #1
LQ Newbie
Registered: Oct 2017
Distribution: Yocto/Kubuntu
Posts: 2

Rep: Reputation: Disabled
What is the difference between reg_defaults and reg_defaults_raw in regmap facility?

When configuring regmap, it is possible to include a list of power on defaults for the registers. As I understand it, the purpose is to pre-populate the cache in order to avoid an initial read after power on or after waking up. I'm confused by the fact that there is both a reg_defaults and a reg_defaults_raw field. The comments in include/linux/regmap.h for those two fields are identical. It appears that only one or the other is ever used, the vast majority of drivers using reg_defaults however there's a small handful that use reg_defaults_raw. I did look through the git history and found the commit that introduced reg_defaults and the later commit that introduced reg_defaults_raw. Unfortunately I wasn't able to divine the reason for that new field.

Does anyone know the difference between those fields?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux search facility? Dajoca Linux - Newbie 7 02-16-2013 06:26 PM
Single Sign in Facility turiyain Linux - Security 10 06-21-2012 08:45 AM
How to use clipboard facility ? m.parthiban Red Hat 1 09-19-2005 04:40 AM
pure-ftpd syslog facility devacom Linux - Software 0 01-05-2005 07:11 AM
syslog facility gunter *BSD 3 08-21-2004 04:22 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration