diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-05-31 09:12:38 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-02 08:37:23 +0200 |
commit | 829d119ed6b70d13a489442d8a545cf1e66bdc7b (patch) | |
tree | fa1026c1e21c55a413652561bece7fdb7f7fe7ae /arch/arm/mach-at91 | |
parent | 156c6c0c62b5238d828a33a4cea1000e10aa0d30 (diff) | |
download | barebox-829d119ed6b70d13a489442d8a545cf1e66bdc7b.tar.gz barebox-829d119ed6b70d13a489442d8a545cf1e66bdc7b.tar.xz |
ARM: <asm/memory.h>: propagate error codes from arm_add_mem_device()
barebox_add_memory_bank() can fail if the to-be-added memory region
has been requested before. This can happen most easily on i.MX and
STM32MP1 boards:
- The /memory node in the device tree requests a region
- The DDR controller driver requests an overlapping region after
reading back RAM configuration.
This most often leads to error messages down the road, but it can be
difficult to pinpoint the cause. Propagate the error code from
arm_add_mem_device(), so DDR controller drivers can fail their probe
on error.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210531071239.30653-6-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91')
0 files changed, 0 insertions, 0 deletions