linux-stable/fs/debugfs
Geert Uytterhoeven 2a352e42ac debugfs: regset32: Add Runtime PM support
commit 30332eeefe upstream.

Hardware registers of devices under control of power management cannot
be accessed at all times.  If such a device is suspended, register
accesses may lead to undefined behavior, like reading bogus values, or
causing exceptions or system lock-ups.

Extend struct debugfs_regset32 with an optional field to let device
drivers specify the device the registers in the set belong to.  This
allows debugfs_show_regset32() to make sure the device is resumed while
its registers are being read.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-17 11:13:06 +02:00
..
file.c debugfs: regset32: Add Runtime PM support 2023-05-17 11:13:06 +02:00
inode.c debugfs: add debugfs_lookup_and_remove() 2022-09-15 12:17:05 +02:00
internal.h debugfs: Remove redundant license text 2017-11-07 20:25:03 +01:00
Makefile