u-boot/drivers/reset
John Keeping 77224320f0 core: read: fix dev_read_addr_size()
The behaviour of dev_read_addr_size() is surprising as it does not
handle #address-cells and #size-cells but instead hardcodes the values
based on sizeof(fdt_addr_t).

This is different from dev_read_addr_size_index() and
dev_read_addr_size_name() both of which do read the cell sizes from the
device tree.

Since dev_read_addr_size() is only used by a single driver and this
driver is broken when CONFIG_FDT_64BIT does not match the address size
in the device tree, fix the function to behave like all of the other
similarly named functions.  Drop the property name argument as the only
caller passes "reg" and this is the expected property name matching the
other similarly named functions.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>  # chromebook_jerry
Tested-by: Simon Glass <sjg@chromium.org>  # chromebook_bob
2023-07-20 14:10:57 -06:00
..
Kconfig reset: starfive: jh7110: Add reset driver for StarFive JH7110 SoC 2023-04-20 16:08:44 +08:00
Makefile reset: rockchip: implement rk3588 lookup table 2023-05-17 17:36:18 +08:00
reset-ast2500.c reset/aspeed: Implement status callback 2022-07-06 14:30:51 -04:00
reset-ast2600.c reset/aspeed: Implement status callback 2022-07-06 14:30:51 -04:00
reset-at91.c reset: at91: Add reset driver for basic assert/deassert operations 2023-01-05 10:06:35 +02:00
reset-bcm6345.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-dra7.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-hisilicon.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-hsdk.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-imx7.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-jh7110.c reset: starfive: jh7110: Add reset driver for StarFive JH7110 SoC 2023-04-20 16:08:44 +08:00
reset-mediatek.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-meson.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-mtmips.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-qcom.c reset: qcom: Add support for QCS404 SoC reset table 2022-08-26 10:55:45 -04:00
reset-raspberrypi.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-rockchip.c core: read: fix dev_read_addr_size() 2023-07-20 14:10:57 -06:00
reset-scmi.c reset: scmi: support SCMI multi-channel 2022-06-23 13:12:55 -04:00
reset-sifive.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-socfpga.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-sunxi.c reset: sunxi: Reuse the platform data from the clock driver 2022-07-18 09:37:50 +01:00
reset-syscon.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
reset-ti-sci.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
reset-uclass.c reset: Allow reset_get_by_name() with NULL name 2023-02-12 13:44:20 -05:00
reset-uniphier.c reset: uniphier: Add USB glue reset support 2023-02-22 19:40:11 +01:00
reset-zynqmp.c reset: zynqmp: Enable reset driver for Versal NET 2022-09-26 14:23:29 +02:00
rst-rk3588.c reset: rockchip: implement rk3588 lookup table 2023-05-17 17:36:18 +08:00
sandbox-reset-test.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sandbox-reset.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sti-reset.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
stm32-reset.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
tegra-car-reset.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00
tegra186-reset.c reset: Return 0 if ops unimplemented and remove empty functions 2022-05-05 19:37:11 -04:00