Tags: mripard/linux
Tags
drivers: base: Add tests showing devm handling inconsistencies Hi, This follows the discussion here: https://lore.kernel.org/linux-kselftest/20230324123157.bbwvfq4gsxnlnfwb@houat/ This shows a couple of inconsistencies with regard to how device-managed resources are cleaned up. Basically, devm resources will only be cleaned up if the device is attached to a bus and bound to a driver. Failing any of these cases, a call to device_unregister will not end up in the devm resources being released. We had to work around it in DRM to provide helpers to create a device for kunit tests, but the current discussion around creating similar, generic, helpers for kunit resumed interest in fixing this. This can be tested using the command: ./tools/testing/kunit/kunit.py run --kunitconfig=drivers/base/test/ Let me know what you think, Maxime To: Greg Kroah-Hartman <[email protected]> To: "Rafael J. Wysocki" <[email protected]> Cc: Brendan Higgins <[email protected]> Cc: David Gow <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Maxime Ripard <[email protected]> --- Maxime Ripard (2): drivers: base: Add basic devm tests for root devices drivers: base: Add basic devm tests for platform devices drivers/base/test/.kunitconfig | 2 + drivers/base/test/Kconfig | 4 + drivers/base/test/Makefile | 3 + drivers/base/test/platform-device-test.c | 278 +++++++++++++++++++++++++++++++ drivers/base/test/root-device-test.c | 120 +++++++++++++ 5 files changed, 407 insertions(+) --- base-commit: a6faf7e change-id: 20230329-kunit-devm-inconsistencies-test-5e5a7d01e60d Best regards,
ARM: sun5i: chip: Enable the TV Encoder The CHIP has a composite output available muxed with the microphone in the micro-jack plug. Enable the composite output in its DTS. Signed-off-by: Maxime Ripard <[email protected]>
Rebase of Emilio's clk-sunxi-for-3.16 on top of clk-next Fixed a few compilation warnings exposed by a patch introduced during the 3.16 merge window. Original tag message: Allwinner sunXi SoCs clock changes This pull contains some new code to add support for A31 clocks by Maxime and Boris. It also reworks the driver a bit to avoid having a huge single file when we have a full folder for ourselves, and separating different functional units makes sense.
Allwinner DT changes for 3.16, take 2 - Introduction of a new board, the i12-tvbox - Enable the MMC and USB controllers on the Colombus - Add the enable-method to the A31 cpus - a few fixes
Allwinner drivers changes for 3.16, take 2 Add reset driver for the A31
Allwinner defconfig changes, take 2 Add the A31 reset driver to the sunxi-related defconfigs
Allwinner Core additions for 3.16, take 2
- Convert the A31 SMP operations to the CPU_METHOD_OF_DECLARE mechanism
- Remove the reset code from the machine definition, that removes pretty much
all the code left in mach-sunxi
Allwinner DT additions for 3.16 - Introduction of the MMC controlers - New board: A10s R7, Mele M9, APP4-EVB1 - Enabled the PMU on the Cortex A7-based SoCs
Allwinner SoCs core additions for 3.16 Refactor the Kconfig options to have one Kconfig option per machine.
PreviousNext