Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10543710rwp; Fri, 21 Jul 2023 00:26:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJ75K+JyFvAWyXUXnH3WLP5lM+soioP0dgoDlOh3yebjgAtQ1DubZpVBoHeZ1EBk2VPF8x X-Received: by 2002:a17:906:2086:b0:991:fef4:bb7 with SMTP id 6-20020a170906208600b00991fef40bb7mr971596ejq.73.1689924389244; Fri, 21 Jul 2023 00:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689924389; cv=none; d=google.com; s=arc-20160816; b=UG3jWWQWpi51xK9y3qc3wGhhRkJG5B1dQGsWJz3yeAP5MxqH/VSuh8gA9JIgROH6eY akZkYi0aCdBZc8dTiirf5PltNXtNP1nH2KGePq6qngEXih4VPVqRtIjjYML1fJ7nb2dI IJWgZMc3Fd++wpcV71WGuPfliLfJo95vybShFA2b2vn2i28uRvwcMycaYZ9d0NzmXlxU zXDN4h3BB6AAJePB/M0+MA1pQPcLPKJtwqC+DwG8hX5lFc6ls2BAlQmATW13FXaLTJ8B GRx9WQBMBMOUBzrFHHSjL4zFL5Z0Btxsdza6JUGBYQvRDb61UR4A9Hb0nv1pZgTU8YaT Ab7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=iAOiSp4mY7gGAjBqJ0F8zE6FJQ2fZBIj/G+V5JTZjw8=; fh=360HmAXND8A05iRBc7UoIp+5mY0SlJN6aKBr9AaO02M=; b=M0VYq2SfMyBhsZ2JgVwudLMW6vrWhkxFTBorCaZeNWy2wYyk+6uFw1JzI4FSv1JjwF I88PX6dg8rZqe5ai8GxQHR+yhj/XO7Pvm5WzSHPTHRZOkLeM1GcR6eRKVNipGvCYZSmk uP7bbql7egzS5G2IPQlVt6v0sL6tscfwCVJQiOnxCxweZ2QXP+4GugsdwKNM2nzqDK4o 4O1kt6G5fJJWDwCKwVfHnI7Ioq+DCcHvSbihyzApCNUz+2cLLLyzAj8Ov4lIz7BKId4x SAHAMztE3sVKLc0+EuKH4r73jd5aF7Lm4MpHfsPTqBnP7SiwrwV5JWG2ktGYCkdSJg06 MXbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rAya1kdn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e20-20020a17090681d400b00997c1594d65si1880646ejx.89.2023.07.21.00.26.05; Fri, 21 Jul 2023 00:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rAya1kdn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230252AbjGUHJp (ORCPT + 99 others); Fri, 21 Jul 2023 03:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbjGUHJh (ORCPT ); Fri, 21 Jul 2023 03:09:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F72A273E; Fri, 21 Jul 2023 00:09:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AC515612DC; Fri, 21 Jul 2023 07:09:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89FBFC433CB; Fri, 21 Jul 2023 07:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689923374; bh=C+hSLA99pkHkutteaL+7ugfOymbqI1rh00LNugXxXk8=; h=From:Subject:Date:To:Cc:From; b=rAya1kdnXPDmZtSY2+DBS12KXK317VALunTFx7o2wIXjLWxMHYIN7YiaH9eMx3kxo SYIWkbRVmVdJNpQ9NkGQAOWP86pmcoOjgADDJ6yAueBy4KJqPbyprGA8UlJXECbqqF SriZm6Lz2RqqBD7yH2EdKmS/LJ56P5TbLYtYaj1ERwuR9QKxwuMLSWCycroe86iONY EAXeOOo32mPEvjp94dAn73BGeHcJ+Bzn45MrVQuABxj8yiyxmOXlaawBem+7L6uJyG BAPG3o7k1wKsP8hai57YabillO1swJ/l05dbEeXZvIAFfQUJhwNCdPm8tRosz+F9zV Jj0hQQ0jXRgxA== From: Maxime Ripard Subject: [PATCH 0/2] clk: kunit: Fix the lockdep warnings Date: Fri, 21 Jul 2023 09:09:31 +0200 Message-Id: <20230721-clk-fix-kunit-lockdep-v1-0-32cdba4c8fc1@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIACsvumQC/x2M2wpAQBBAf0XzbMqMXPIr8sAaTKulXaTk320eT 51zHgjiVQI0yQNeLg26uQiUJmCW3s2COkYGzjjPKiY0q8VJb7Sn0wPXzdhRdjSFlDwwE1ENsd2 9ROn/tt37fp0ybF9nAAAA To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Maxime Ripard , Guenter Roeck , kernel test robot X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1036; i=mripard@kernel.org; h=from:subject:message-id; bh=C+hSLA99pkHkutteaL+7ugfOymbqI1rh00LNugXxXk8=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDCm79HV0V25qLbwkUS32L8Vu94l9USpui8vl+Rpkimbuf Lbu3RXfjlIWBjEuBlkxRZYYYfMlcadmve5k45sHM4eVCWQIAxenAExkZxvDf6/uBY83hPhdDLt2 +3BSYmPKWZ9AtgtWRyedWHCkqrbG7gEjwyTvxGtmnqs/J5UayXy5bCDBe5Hpl9n9U/PkJXhZjJa a8QEA X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Here's a small series to address the lockdep warning we have when running the clk kunit tests with lockdep enabled. For the record, it can be tested with: $ ./tools/testing/kunit/kunit.py run \ --kunitconfig=drivers/clk \ --cross_compile aarch64-linux-gnu- --arch arm64 \ --kconfig_add CONFIG_DEBUG_KERNEL=y \ --kconfig_add CONFIG_PROVE_LOCKING=y Let me know what you think, Maxime Signed-off-by: Maxime Ripard --- Maxime Ripard (2): clk: Introduce kunit wrapper around clk_hw_init_rate_request clk: Introduce kunit wrapper around __clk_determine_rate drivers/clk/clk.c | 51 ++++++++++++++++++++++++++++++++++++++++++++ drivers/clk/clk_test.c | 4 ++-- include/linux/clk-provider.h | 21 ++++++++++++++++++ 3 files changed, 74 insertions(+), 2 deletions(-) --- base-commit: c58c49dd89324b18a812762a2bfa5a0458e4f252 change-id: 20230721-clk-fix-kunit-lockdep-c5e62b221118 Best regards, -- Maxime Ripard