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

2023-03-15 Thread Maxime Ripard
Hi Stephen, On Thu, Mar 09, 2023 at 03:31:15PM -0800, Stephen Boyd wrote: > 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 test

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

2023-03-10 Thread David Gow
On Fri, 10 Mar 2023 at 07:25, Stephen Boyd wrote: > > 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

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 3/8] kunit: Add test managed platform_device/driver APIs

2023-03-03 Thread Maxime Ripard
On Fri, Mar 03, 2023 at 03:15:31PM +0800, David Gow wrote: > 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/d

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

2023-03-02 Thread David Gow
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 tests and have the > drivers/devices automatically

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

2023-03-01 Thread Stephen Boyd
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 tests and have the drivers/devices automatically be unregistered when the test is done. This makes test setu