Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: mripard/linux

Tags

sent/kunit/devm-inconsistencies-test-v1

Toggle sent/kunit/devm-inconsistencies-test-v1's commit message
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,

sunxi-drm-v3

Toggle sunxi-drm-v3's commit message
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]>

sunxi-clk-for-3.16-2

Toggle sunxi-clk-for-3.16-2's commit message
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.

sunxi-dt-for-3.16-2

Toggle sunxi-dt-for-3.16-2's commit message
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

sunxi-drivers-for-3.16-2

Toggle sunxi-drivers-for-3.16-2's commit message
Allwinner drivers changes for 3.16, take 2

Add reset driver for the A31

sunxi-defconfig-for-3.16-2

Toggle sunxi-defconfig-for-3.16-2's commit message
Allwinner defconfig changes, take 2

Add the A31 reset driver to the sunxi-related defconfigs

sunxi-core-for-3.16-2

Toggle sunxi-core-for-3.16-2's commit message
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

sunxi-dt-for-3.16

Toggle sunxi-dt-for-3.16's commit message
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

sunxi-defconfig-for-3.16

Toggle sunxi-defconfig-for-3.16's commit message
Allwinner defconfig additions for 3.16

sunxi-core-for-3.16

Toggle sunxi-core-for-3.16's commit message
Allwinner SoCs core additions for 3.16

Refactor the Kconfig options to have one Kconfig option per machine.