LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-16-2017, 02:05 PM   #1
daveolson
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?
 
  


Reply


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 07:26 PM
Single Sign in Facility turiyain Linux - Security 10 06-21-2012 09:45 AM
How to use clipboard facility ? m.parthiban Red Hat 1 09-19-2005 05:40 AM
pure-ftpd syslog facility devacom Linux - Software 0 01-05-2005 08:11 AM
syslog facility gunter *BSD 3 08-21-2004 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:21 PM.

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