Re: [PATCH 1/8] dt-bindings: Add linux,kunit binding

2023-03-09 Thread David Gow
On Fri, 10 Mar 2023 at 07:12, Stephen Boyd wrote: > > Quoting David Gow (2023-03-02 23:14:55) > > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > > > Document the linux,kunit board compatible string. This board is loaded > > > into the Linux kernel when KUnit is testing devicetree depend

Re: [PATCH 0/8] clk: Add kunit tests for fixed rate and parent data

2023-03-09 Thread David Gow
On Sat, 4 Mar 2023 at 23:50, Frank Rowand wrote: > > On 3/1/23 19:38, Stephen Boyd wrote: > > This patch series adds unit tests for the clk fixed rate basic type and > > the clk registration functions that use struct clk_parent_data. To get > > there, we add support for loading a DTB into the UML

Re: [PATCH 3/8] kunit: Add test managed platform_device/driver APIs

2023-03-09 Thread Stephen Boyd
Quoting Maxime Ripard (2023-03-03 06:35:28) > On Fri, Mar 03, 2023 at 03:15:31PM +0800, David Gow wrote: > > > > DRM has a similar thing already (albeit with a root_device, which is > > more common with KUnit tests generally): > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/

Re: [PATCH 3/8] kunit: Add test managed platform_device/driver APIs

2023-03-09 Thread Stephen Boyd
Quoting David Gow (2023-03-02 23:15:31) > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > Introduce KUnit resource wrappers around platform_driver_register(), > > platform_device_alloc(), and platform_device_add() so that test authors > > can register platform drivers/devices from their t

Re: [PATCH 2/8] of: Enable DTB loading on UML for KUnit tests

2023-03-09 Thread Stephen Boyd
Quoting David Gow (2023-03-02 23:15:04) > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > To fully exercise common clk framework code in KUnit we need to > > associate 'struct device' pointers with 'struct device_node' pointers so > > that things like clk_get() can parse DT nodes for 'clo

Re: [PATCH 1/8] dt-bindings: Add linux,kunit binding

2023-03-09 Thread Stephen Boyd
Quoting David Gow (2023-03-02 23:14:55) > On Thu, 2 Mar 2023 at 09:38, Stephen Boyd wrote: > > > > Document the linux,kunit board compatible string. This board is loaded > > into the Linux kernel when KUnit is testing devicetree dependent code. > > As with the series as a whole, this might need t