projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f0e366
)
regmap: Add error output
author
Mario Six
<
[email protected]
>
Mon, 15 Oct 2018 07:24:08 +0000
(09:24 +0200)
committer
Simon Glass
<
[email protected]
>
Wed, 14 Nov 2018 17:16:27 +0000
(09:16 -0800)
Add some debug output in cases where the initialization of a regmap
fails.
Reviewed-by: Anatolij Gustschin <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Signed-off-by: Mario Six <
[email protected]
>
drivers/core/regmap.c
patch
|
blob
|
history
diff --git
a/drivers/core/regmap.c
b/drivers/core/regmap.c
index 25c1ae5d7dff5ea30af0fef048bb4c01ce30dd9d..154426269d97ab87ceeea516c444c3fb49a629e4 100644
(file)
--- a/
drivers/core/regmap.c
+++ b/
drivers/core/regmap.c
@@
-139,12
+139,18
@@
int regmap_init_mem(ofnode node, struct regmap **mapp)
}
len = ofnode_read_size(node, "reg");
- if (len < 0)
+ if (len < 0) {
+ debug("%s: Error while reading reg size (ret = %d)\n",
+ ofnode_get_name(node), len);
return len;
+ }
len /= sizeof(fdt32_t);
count = len / both_len;
- if (!count)
+ if (!count) {
+ debug("%s: Not enough data in reg property\n",
+ ofnode_get_name(node));
return -EINVAL;
+ }
map = regmap_alloc(count);
if (!map)