summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2016-06-03 14:21:34 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-07-27 08:42:15 -0700
commitc62d5ac161af8698d5e54febb112ab21e8cb3f1b (patch)
treebe8a8bede13eb95d23a41c5a82edeebb1c584609 /net/unix/af_unix.c
parent6d3641826ff7ca205a62a01ff50083e954797595 (diff)
drm/fsl-dcu: use flat regmap cache
commit ce492b3b8f99cf9d2f807ec22d8805c996a09503 upstream. Using flat regmap cache instead of RB-tree to avoid the following lockdep warning on driver load: WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2755 lockdep_trace_alloc+0x15c/0x160() DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags)) The RB-tree regmap cache needs to allocate new space on first writes. However, allocations in an atomic context (e.g. when a spinlock is held) are not allowed. The function regmap_write calls map->lock, which acquires a spinlock in the fast_io case. Since the FSL DCU driver uses MMIO, the regmap bus of type regmap_mmio is being used which has fast_io set to true. Use flat regmap cache and specify max register to be large enouth to cover all registers available in LS1021a and Vybrids register space. Signed-off-by: Stefan Agner <stefan@agner.ch> Cc: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions