Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2755173rdb; Tue, 12 Sep 2023 11:02:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQx6DQB2rHvTwpZos1NOKxI0qBzXG6s3suEG32tklKdoLWIe/A7AANq8vm+zLQjvTQxzgV X-Received: by 2002:a05:6808:e84:b0:3a8:5997:21e3 with SMTP id k4-20020a0568080e8400b003a8599721e3mr536966oil.33.1694541720752; Tue, 12 Sep 2023 11:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694541720; cv=none; d=google.com; s=arc-20160816; b=eOnoGv1EQUWAtexgi+5R7Mg36qcRAFQuuGjDNV0p6Zi2o78pv9qSjXlIvm7L5yVeoi kDEH3jI5W5ElshdxvHFrS0tMfz6bVUOJQOpN2T/qexFJroAfje+CuGJEKDiOr0YdFF9s QXS6i7Ajx7JwGwpaQissGEggf1q8MLzLnuBZ8g4qKQBoSfYQj6+3z92mstznia/QbN8Q wCZw0vUFNo2kinm1rrSJzXZ3uRDphXk2wtsbomHifG6ZgnRvKFJgPNFwlTJcu/VAq3I+ ilzOKbQN3OJbTlUcJLmE7esbpuKgFYOkf69K9FSTI47LPxCP8DvO2Zs5cSIRoKsxql2G Um5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HKTz2zU4UyXGS1zpt3AMo8hmvoLiC7jZB4JYYPGm5po=; fh=ncZ9FZxYDSVz/grCh/WR+Eul+N2DK5wZHP60jyIas4A=; b=PPIs7C9tZpxHtEE5N34nKxtVGbX6IvJogEH/v4d2kQl2++ecTZywtQ7yX39YNGyFj4 e7wYx6ZVWdzAKiZAIUS6zwb0gZK0FhP7awq0V0M8C0rMHhbFlln5BwwWbXa8JCMzRuKr XUYbTBRyQAEdX6tQggGsRJM899wQ3rmBG1JauOPD2emRGblL+B1SLUO6FhGKt64HAOlq oaSNVH0ZMEVGZkpTdq0x3XhaPIpdoAb4p9T5gEmZqDjaC45BD1zAg5/sFYia+0gtmFD5 3F7NRMebv/nQb5kYP8P3OfHHdEYh0cSj1g9WUugLm0trJouL1NQRVdapbnmUwJlnNQXG TF2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mboLiXQH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id v10-20020a63f20a000000b005774aba519asi5421502pgh.118.2023.09.12.11.02.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:02:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mboLiXQH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E03788090792; Tue, 12 Sep 2023 10:55:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236845AbjILRzj (ORCPT + 99 others); Tue, 12 Sep 2023 13:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231665AbjILRzj (ORCPT ); Tue, 12 Sep 2023 13:55:39 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEA3110D3; Tue, 12 Sep 2023 10:55:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22A31C433C8; Tue, 12 Sep 2023 17:55:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694541335; bh=rrwYR3/rqDwXPIcEZV4/pnPLM7oE/aWqYDmNh+JXXaA=; h=From:To:Cc:Subject:Date:From; b=mboLiXQHP0KBMCCt14sMYW/+pIam/h/U7/xcobZ6lEqrEw993BhQD+cDrERdJRs4R Cz+Opgs5wXVQEPUMxCKIRZYuZ+EzImcwDVA9bhEsz9u9atUquoxR2HEhAmit5Do77P 24YFu98YvPZJBvw1q+1LhYX/Le/pLGO/TOmqEBVQe904avvh1nKq17kOi9F2TAYOv6 0AM10A9qEStnIGYJldEHDyhR1zqeesqNsYeMRisrJ5gSJX6bYjdkvz/8uaD0si/SF+ QKOvPCgr+SbkEq41pqpgohXL1FsDCuQeH54aitsYYStDkOVVxbz0RlpSediS2EB5c2 EatiPcArOHtLA== From: Stephen Boyd To: Michael Turquette , Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, Guenter Roeck , Maxime Ripard Subject: [PATCH 0/2] clk: Fix lockdep warnings in clk_test Date: Tue, 12 Sep 2023 10:55:29 -0700 Message-ID: <20230912175534.2427862-1-sboyd@kernel.org> X-Mailer: git-send-email 2.42.0.283.g2d96d420d3-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 12 Sep 2023 10:55:41 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email This is a replacement for the series from Maxime[1]. I didn't want to introduce more wrappers, so this series takes the approach of driving the test from a clk_op instead. The second patch extends the test to look at more determine_rate variants. We can probably extend the test further to set or not set the CLK_SET_RATE_PARENT flag as well but I didn't do that. Stephen Boyd (2): clk: Drive clk_leaf_mux_set_rate_parent test from clk_ops clk: Parameterize clk_leaf_mux_set_rate_parent drivers/clk/clk_test.c | 130 +++++++++++++++++++++++++++++++++++------ 1 file changed, 113 insertions(+), 17 deletions(-) Cc: Guenter Roeck Cc: Maxime Ripard [1] https://lore.kernel.org/r/20230721-clk-fix-kunit-lockdep-v1-0-32cdba4c8fc1@kernel.org base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d -- https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/ https://git.kernel.org/pub/scm/linux/kernel/git/sboyd/spmi.git