Ignore:
Timestamp:
Apr 19, 2025, 8:08:37 PM (5 months ago)
Author:
David Azarewicz
Message:

Merge in changes from 6.6-LTS branch.
Fixed additional 25+ problems.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/lib32/regcache.c

    r679 r772  
    2424static const struct regcache_ops *cache_types[] = {
    2525        &regcache_rbtree_ops,
    26 #if IS_ENABLED(CONFIG_REGCACHE_COMPRESSED)
    27         &regcache_lzo_ops,
     26#ifndef TARGET_OS2 // Not (yet?) supported
     27        &regcache_maple_ops,
    2828#endif
    2929        &regcache_flat_ops,
     
    562562EXPORT_SYMBOL_GPL(regcache_cache_bypass);
    563563
     564/**
     565 * regcache_reg_cached - Check if a register is cached
     566 *
     567 * @map: map to check
     568 * @reg: register to check
     569 *
     570 * Reports if a register is cached.
     571 */
     572bool regcache_reg_cached(struct regmap *map, unsigned int reg)
     573{
     574        unsigned int val;
     575        int ret;
     576
     577        map->lock(map->lock_arg);
     578
     579        ret = regcache_read(map, reg, &val);
     580
     581        map->unlock(map->lock_arg);
     582
     583        return ret == 0;
     584}
     585EXPORT_SYMBOL_GPL(regcache_reg_cached);
     586
    564587bool regcache_set_val(struct regmap *map, void *base, unsigned int idx,
    565588                      unsigned int val)
     
    729752        count = (cur - base) / map->reg_stride;
    730753
    731         dev_dbg(map->dev, "Writing %zu bytes for %d registers from 0x%x-0x%x\n",
     754        dev_dbg(map->dev, "Writing %lu bytes for %d registers from 0x%x-0x%x\n",
    732755                count * val_bytes, count, base, cur - map->reg_stride);
    733756
Note: See TracChangeset for help on using the changeset viewer.