All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] reset: fix reset_get_by_index_nodev index handling
@ 2021-04-20  8:42 ` Neil Armstrong
  0 siblings, 0 replies; 11+ messages in thread
From: Neil Armstrong @ 2021-04-20  8:42 UTC (permalink / raw)
  To: u-boot

A regression weas detected on Amlogic G12A/G12B SoCs, where HDMI output was disable
even when Linux was booting.

Bisect reports 139e4a1cbe ("drivers: reset: Add a managed API to get reset controllers from the DT")
as the offending commit.

But the error is in ea9dc35aab ("reset: Get the RESET by index without device") where a spurius "> 0"
was added to the index handling.

But the dm_test_reset_base() test did not catch it.

The first commit extends the test to catch the regression, and the second patch fixes the regression.

Neil Armstrong (2):
  test: reset: Extend base reset test to catch error
  reset: fix reset_get_by_index_nodev index handling

 arch/sandbox/dts/test.dts    |  4 ++--
 drivers/reset/reset-uclass.c |  2 +-
 test/dm/reset.c              | 39 +++++++++++++++++++++++++++++++-----
 3 files changed, 37 insertions(+), 8 deletions(-)

-- 
2.25.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-04-27 16:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20  8:42 [PATCH 0/2] reset: fix reset_get_by_index_nodev index handling Neil Armstrong
2021-04-20  8:42 ` Neil Armstrong
2021-04-20  8:42 ` [PATCH 1/2] test: reset: Extend base reset test to catch error Neil Armstrong
2021-04-20  8:42   ` Neil Armstrong
2021-04-27 16:46   ` Tom Rini
2021-04-20  8:42 ` [PATCH 2/2] reset: fix reset_get_by_index_nodev index handling Neil Armstrong
2021-04-20  8:42   ` Neil Armstrong
2021-04-27 16:46   ` Tom Rini
2021-04-27  7:37 ` [PATCH 0/2] " Neil Armstrong
2021-04-27  7:37   ` Neil Armstrong
2021-04-27 11:31   ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.