Re: [PATCH 2/2] reset: fix reset_get_by_index_nodev index handling

2021-04-27 Thread Tom Rini
On Tue, Apr 20, 2021 at 10:42:26AM +0200, Neil Armstrong wrote: > 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 i

[PATCH 2/2] reset: fix reset_get_by_index_nodev index handling

2021-04-20 Thread Neil Armstrong
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 G1