Skip to content

reset: fix reset_get_by_index_nodev index handling

Tom Rini u-boot u-boot-amlogic 1 version New

Get series with b4
b4 am 20210427113149.GQ17669@bill-the-cat

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2test: reset: Extend base reset test to catch error+0 -00 replies
2/2reset: fix reset_get_by_index_nodev index handling+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] reset: fix reset_get_by_index_nodev index handling
Quoted 9 lines · Neil Armstrong

Hi Tom, Simon,

Quoted 6 lines · Neil Armstrong

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.

Quoted 8 lines
Quoted 6 lines

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.

So you have any comment on the patch order here ? Should I push the fixed test after the fix ?

I'll grab these shortly, thanks for the reminder.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210427/f223429e/attachment.sig>