Re: [PATCH 4/8] clk: Add test managed clk provider/consumer APIs

2023-03-21 Thread Maxime Ripard
On Sat, Mar 11, 2023 at 02:32:04PM +0800, David Gow wrote: > > > > diff --git a/drivers/clk/clk-kunit.c b/drivers/clk/clk-kunit.c > > > > new file mode 100644 > > > > index ..78d85b3a7a4a > > > > --- /dev/null > > > > +++ b/drivers/clk/clk-kunit.c > > > > @@ -0,0 +1,204 @@ > > > > +// S

Re: [PATCH 4/8] clk: Add test managed clk provider/consumer APIs

2023-03-10 Thread David Gow
On Sat, 11 Mar 2023 at 07:21, Stephen Boyd wrote: > > Quoting David Gow (2023-03-02 23:15:35) > > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > > > Unit tests are more ergonomic and simpler to understand if they don't > > > have to hoist a bunch of code into the test harness init and e

Re: [PATCH 4/8] clk: Add test managed clk provider/consumer APIs

2023-03-10 Thread Stephen Boyd
Quoting David Gow (2023-03-02 23:15:35) > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > Unit tests are more ergonomic and simpler to understand if they don't > > have to hoist a bunch of code into the test harness init and exit > > functions. Add some test managed wrappers for the clk A

Re: [PATCH 4/8] clk: Add test managed clk provider/consumer APIs

2023-03-02 Thread David Gow
On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > Unit tests are more ergonomic and simpler to understand if they don't > have to hoist a bunch of code into the test harness init and exit > functions. Add some test managed wrappers for the clk APIs so that clk > unit tests can write more code i

[PATCH 4/8] clk: Add test managed clk provider/consumer APIs

2023-03-01 Thread Stephen Boyd
Unit tests are more ergonomic and simpler to understand if they don't have to hoist a bunch of code into the test harness init and exit functions. Add some test managed wrappers for the clk APIs so that clk unit tests can write more code in the actual test and less code in the harness. Only add AP