Re: [PATCH] dm: update test on of_offset in ofnode_valid

2020-10-05 Thread Simon Glass
On Thu, 24 Sep 2020 at 09:26, Patrick Delaunay wrote: > > Update the test for node.of_offset because an invalid offset is not > always set to -1 because the return value of the libfdt functions are: > + an error with a value < 0 > + a valid offset with value >=0 > > For example, in ofnode_get_by_p

Re: [PATCH] dm: update test on of_offset in ofnode_valid

2020-09-24 Thread Simon Glass
On Thu, 24 Sep 2020 at 09:26, Patrick Delaunay wrote: > > Update the test for node.of_offset because an invalid offset is not > always set to -1 because the return value of the libfdt functions are: > + an error with a value < 0 > + a valid offset with value >=0 > > For example, in ofnode_get_by_p