diff options
| author | Mark Brown <broonie@linaro.org> | 2013-06-30 07:40:01 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-06-30 07:40:01 -0400 |
| commit | feff98f5507f98c0422252caec41c3be9e6b6399 (patch) | |
| tree | d014206d6ecc095ceb8e03ea2b17b42bf1ce786a /include | |
| parent | 9e895ace5d82df8929b16f58e9f515f6d54ab82d (diff) | |
| parent | d6814a7dafa590ec5fe0597922ea76354f9bec59 (diff) | |
Merge remote-tracking branch 'regmap/topic/cache' into regmap-next
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/regmap.h | 12 | ||||
| -rw-r--r-- | include/trace/events/regmap.h | 23 |
2 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 02d84e24b7c2..d6f3221e29d4 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
| @@ -394,10 +394,15 @@ bool regmap_can_raw_write(struct regmap *map); | |||
| 394 | int regcache_sync(struct regmap *map); | 394 | int regcache_sync(struct regmap *map); |
| 395 | int regcache_sync_region(struct regmap *map, unsigned int min, | 395 | int regcache_sync_region(struct regmap *map, unsigned int min, |
| 396 | unsigned int max); | 396 | unsigned int max); |
| 397 | int regcache_drop_region(struct regmap *map, unsigned int min, | ||
| 398 | unsigned int max); | ||
| 397 | void regcache_cache_only(struct regmap *map, bool enable); | 399 | void regcache_cache_only(struct regmap *map, bool enable); |
| 398 | void regcache_cache_bypass(struct regmap *map, bool enable); | 400 | void regcache_cache_bypass(struct regmap *map, bool enable); |
| 399 | void regcache_mark_dirty(struct regmap *map); | 401 | void regcache_mark_dirty(struct regmap *map); |
| 400 | 402 | ||
| 403 | bool regmap_check_range_table(struct regmap *map, unsigned int reg, | ||
| 404 | const struct regmap_access_table *table); | ||
| 405 | |||
| 401 | int regmap_register_patch(struct regmap *map, const struct reg_default *regs, | 406 | int regmap_register_patch(struct regmap *map, const struct reg_default *regs, |
| 402 | int num_regs); | 407 | int num_regs); |
| 403 | 408 | ||
| @@ -562,6 +567,13 @@ static inline int regcache_sync_region(struct regmap *map, unsigned int min, | |||
| 562 | return -EINVAL; | 567 | return -EINVAL; |
| 563 | } | 568 | } |
| 564 | 569 | ||
| 570 | static inline int regcache_drop_region(struct regmap *map, unsigned int min, | ||
| 571 | unsigned int max) | ||
| 572 | { | ||
| 573 | WARN_ONCE(1, "regmap API is disabled"); | ||
| 574 | return -EINVAL; | ||
| 575 | } | ||
| 576 | |||
| 565 | static inline void regcache_cache_only(struct regmap *map, bool enable) | 577 | static inline void regcache_cache_only(struct regmap *map, bool enable) |
| 566 | { | 578 | { |
| 567 | WARN_ONCE(1, "regmap API is disabled"); | 579 | WARN_ONCE(1, "regmap API is disabled"); |
diff --git a/include/trace/events/regmap.h b/include/trace/events/regmap.h index a43a2f67bd8e..23d561512f64 100644 --- a/include/trace/events/regmap.h +++ b/include/trace/events/regmap.h | |||
| @@ -223,6 +223,29 @@ DEFINE_EVENT(regmap_async, regmap_async_complete_done, | |||
| 223 | 223 | ||
| 224 | ); | 224 | ); |
| 225 | 225 | ||
| 226 | TRACE_EVENT(regcache_drop_region, | ||
| 227 | |||
| 228 | TP_PROTO(struct device *dev, unsigned int from, | ||
| 229 | unsigned int to), | ||
| 230 | |||
| 231 | TP_ARGS(dev, from, to), | ||
| 232 | |||
| 233 | TP_STRUCT__entry( | ||
| 234 | __string( name, dev_name(dev) ) | ||
| 235 | __field( unsigned int, from ) | ||
| 236 | __field( unsigned int, to ) | ||
| 237 | ), | ||
| 238 | |||
| 239 | TP_fast_assign( | ||
| 240 | __assign_str(name, dev_name(dev)); | ||
| 241 | __entry->from = from; | ||
| 242 | __entry->to = to; | ||
| 243 | ), | ||
| 244 | |||
| 245 | TP_printk("%s %u-%u", __get_str(name), (unsigned int)__entry->from, | ||
| 246 | (unsigned int)__entry->to) | ||
| 247 | ); | ||
| 248 | |||
| 226 | #endif /* _TRACE_REGMAP_H */ | 249 | #endif /* _TRACE_REGMAP_H */ |
| 227 | 250 | ||
| 228 | /* This part must be outside protection */ | 251 | /* This part must be outside protection */ |
