u-boot/drivers/reset
Neil Armstrong b669db869b reset: fix reset_get_by_index_nodev index handling
This fixes an issue getting resets index 1 and 3+, the spurius "> 0"
made it return the index 0 or 1, whatever index was passed.

The dm_test_reset_base() did not catch it, but the dm_test_reset_base() extension
catches it and this fixes the regression.

This also fixes a reggression on Amlogic G12A/G12B SoCs, where HDMI output was disable
even when Linux was booting.

Fixes: ea9dc35aab ("reset: Get the RESET by index without device")
Reported-by: B1oHazard <ty3uk@mail.ua>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
2021-04-28 10:05:13 +02:00
..
Kconfig riscv: sifive: Rename fu540 board to unleashed 2021-04-08 15:37:29 +08:00
Makefile reset: aspeed: Add AST2600 reset support 2021-01-18 15:23:06 -05:00
reset-ast2500.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
reset-ast2600.c reset: aspeed: Add AST2600 reset support 2021-01-18 15:23:06 -05:00
reset-bcm6345.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
reset-hisilicon.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
reset-hsdk.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
reset-imx7.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
reset-ipq4019.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
reset-mediatek.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
reset-meson.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
reset-mtmips.c reset: reset-mtmips: add DM_FLAG_PRE_RELOC flag 2021-01-24 21:39:27 +01:00
reset-raspberrypi.c reset: Add Raspberry Pi 4 firmware reset controller 2020-07-10 11:49:28 +02:00
reset-rockchip.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
reset-scmi.c reset: add reset controller driver for SCMI agents 2020-09-30 11:55:23 -04:00
reset-sifive.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
reset-socfpga.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
reset-sunxi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07: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 dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
reset-uclass.c reset: fix reset_get_by_index_nodev index handling 2021-04-28 10:05:13 +02:00
reset-uniphier.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07: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 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32-reset.c reset: stm32-reset: migrate trace to dev and log macro 2021-01-13 09:52:58 +01:00
tegra-car-reset.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
tegra186-reset.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00