OSDN Git Service

soc/tegra: fuse: Warn if accessing unmapped registers
authorThierry Reding <treding@nvidia.com>
Mon, 26 Jun 2017 15:23:27 +0000 (17:23 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 11:43:31 +0000 (12:43 +0100)
commitda943840bcd2b490788d73c60ac4368fb7fc7229
tree96840d5c444477e313974c6bd4f20f7d00db89c5
parent1f1607dbd9f6efc22f06e16fc11675dd6323aaab
soc/tegra: fuse: Warn if accessing unmapped registers

If the FUSE registers are accessed but the region is not mapped, warn
and return 0. This potentially catches hard to diagnose bugs because the
accesses happen before any kernel log output.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/fuse/fuse-tegra30.c