[PATCH v2] cmd: clk: probe the clock before dump them

2022-12-13 Thread Patrick Delaunay
The clock UCLASS need to be probed to allow availability of the private data (struct clk *), get in show_clks() with dev_get_clk_ptr() before use them. Without this patch the clock dump can cause crash because all the private data are not available before calling the API clk_get_rate(). It is the

Re: [PATCH v2] cmd: clk: probe the clock before dump them

2022-12-13 Thread Sean Anderson
On 12/13/22 08:57, Patrick Delaunay wrote: The clock UCLASS need to be probed to allow availability of the private data (struct clk *), get in show_clks() with dev_get_clk_ptr() before use them. Without this patch the clock dump can cause crash because all the private data are not available befo

Re: [PATCH v2] cmd: clk: probe the clock before dump them

2023-01-21 Thread Sean Anderson
On Tue, 13 Dec 2022 14:57:10 +0100, Patrick Delaunay wrote: > The clock UCLASS need to be probed to allow availability of the > private data (struct clk *), get in show_clks() with dev_get_clk_ptr() > before use them. > > Without this patch the clock dump can cause crash because all the > private