Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6F2BC76195 for ; Fri, 17 Mar 2023 08:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231707AbjCQImS (ORCPT ); Fri, 17 Mar 2023 04:42:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbjCQImA (ORCPT ); Fri, 17 Mar 2023 04:42:00 -0400 Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80EDF1205F; Fri, 17 Mar 2023 01:40:37 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 40E4A2B06754; Fri, 17 Mar 2023 04:39:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 17 Mar 2023 04:39:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1679042394; x=1679049594; bh=vd9YrYSnV4XdS8WGt7v2P7Vyy5NZXy01mXq mDhxZrBk=; b=J5Flu0OFGnWhvnczWVSoPOJKDUehhmBYZx8M1v7obqIpWIJlYUH PTGqbYbvMURhKg20tWtkTjMhVU1LLQYvtQYXrvKjT8PPF3gtmxkaGZaOxfv7pPOD sp8WKeQG279mQ7PBEAv8nHP3pBze/hfCKQTQt8Ad+KWT0yR6NxSdhsg12OjHY8rZ nqgJsXXSYojYL+QOoIJ/qh4rQ9Uiehgrmfn57ZcUalByr1EDyh/0erX9LFx0PRM7 MTWb5wTQ8ZO/42AyMIQL1X4ybU7liD7d1ApxE/WXqeLq6R1mNofBg3ukeJYn+9YU tbiOpECuDKPBgPzexnLmrCUcGTPEDGVSsJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1679042394; x=1679049594; bh=vd9YrYSnV4XdS8WGt7v2P7Vyy5NZXy01mXq mDhxZrBk=; b=KqtwJZjwVnUe5XBlxTwzUKQNXyC3Rfsei1gmTYeUHmfumN9D6xG 09uK5EKqNS+BBcRqEe5TaalMgM1TqLZZssOtpMDrCuJTu5rA9H1JBAFNTk/1AuLe sIE0ZzNC14+F1kvMpLuhD6yimW4RlLH8dtvEHYQL3wiHN/E0LTpCpAZjzWm39089 nQY+ydpKmPpU69PFkZGUruBLAUFvrROZT8Abkv/joe4n5TgVzExbwEHiNzmpTuQf p+ScDFBOpLur5LwyhJPMsr0oE5KtukTw1bX5nsjTvvGOvS1chYho8w6vo3ptoTpm cFbOdQ9AWm7hg4GgCsvc1FgRFNWNNPed0MQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdefuddguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtugfgjgesthhqredttddtvdenucfhrhhomhepofgr gihimhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtf frrghtthgvrhhnpeeitdeuffevieeufedtuddvffffffegfffgkeeihfelleektdelhfev hfduudfhgfenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordht vggthh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Mar 2023 04:39:53 -0400 (EDT) Date: Fri, 17 Mar 2023 09:39:51 +0100 From: Maxime Ripard To: Stephen Boyd Cc: Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, Brendan Higgins , David Gow , Greg Kroah-Hartman , "Rafael J . Wysocki" , Rob Herring , Frank Rowand , Christian Marangi , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Subject: Re: [PATCH v2 00/11] clk: Add kunit tests for fixed rate and parent data Message-ID: <20230317083951.oaupqybf7llrpmeo@houat> References: <20230315183729.2376178-1-sboyd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230315183729.2376178-1-sboyd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Mar 15, 2023 at 11:37:17AM -0700, 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 device tree overlays onto the live DTB > along with probing platform drivers to bind to device nodes in the > overlays. With this series, we're able to exercise some of the code in > the common clk framework that uses devicetree lookups to find parents > and the fixed rate clk code that scans device tree directly and creates > clks. Please review. >=20 > I Cced everyone to all the patches so they get the full context. I'm > hoping I can take the whole pile through the clk tree as they almost all > depend on each other. >=20 > Changes from v1 (https://lore.kernel.org/r/20230302013822.1808711-1-sboyd= @kernel.org): > * Don't depend on UML, use unittest data approach to attach nodes > * Introduce overlay loading API for KUnit > * Move platform_device KUnit code to drivers/base/test > * Use #define macros for constants shared between unit tests and > overlays > * Settle on "test" as a vendor prefix > * Make KUnit wrappers have "_kunit" postfix Maybe I'm overthinking this, but wouldn't it make more sense to have a kunit *prefix* to those functions? Any other function in the kernel taking a kunit test pointer as a parameter starts with kunit (like kunit_kzalloc), so it would make more sense to me that kunit-related clk functions follow the same pattern. Maxime