]> git.baikalelectronics.ru Git - uboot.git/commit
reset: fix reset_get_by_index_nodev index handling
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 20 Apr 2021 08:42:26 +0000 (10:42 +0200)
committerStefan Roese <sr@denx.de>
Wed, 28 Apr 2021 08:05:13 +0000 (10:05 +0200)
commit97445404bfd790e516f0582b6d28c8509f5bf3ef
tree091c1c0638bb2ba4ea93f8e06ea7c3a52557fe73
parent8204dfddbbeb37f4c778b0513f0ba12d9a9b9fa7
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: c57d0fdb9b ("reset: Get the RESET by index without device")
Reported-by: B1oHazard <ty3uk@mail.ua>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/reset/reset-uclass.c