Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1664018rdb; Tue, 20 Feb 2024 03:21:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWm/BRXR+fSO+h87tQ7E1AoSn44fnpjQu2igoKMPduce9EnNtYOWe51ngUj1xf5Zf6WEEbUAAr8ka1mj7HwuqHMebmdlM/2PVMNmp4Bvw== X-Google-Smtp-Source: AGHT+IEs3Hpy5jXGcQ9mNOp2RRrNKEqjTADaV+Yq/2bixz+GmQNjbdxVkLi/gsP1oH9Pv4nFHZZO X-Received: by 2002:a05:6102:94b:b0:470:47dd:f94c with SMTP id a11-20020a056102094b00b0047047ddf94cmr7213817vsi.33.1708428107358; Tue, 20 Feb 2024 03:21:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708428107; cv=pass; d=google.com; s=arc-20160816; b=qk2s74V3GSA2a32AQhLKLNBHVadUg0gfnzmczYUmeApCbfckLczA1WuY+xh9gdgV9w cUY2KhC/a/WrA8ZbGEh9tAAIoI2k5ba4e71gyojEA2HbYxe9oaz9oplTggdNgw0t91N3 S1dF9hq2ZC7hssrgW9n2DiQ1zsnydrhPIfCuDPj/lDcUhNB1lVJ1lc3lVvIfsbXtVGBo 8QcAZhdBlFY5XZ9wRyke4NvJjqwKVa3yRAknQOpW8y9qzX2kFXAKBxyY5k9DXhVNHuJf 0O7As5wb+4IWcp/Xf1/fGIiRWuDBIiO0cZMtdbbW+zB03Sq1ICN0w7PBJv9psAWfS1hX 6gPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :dlp-filter:cms-type:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=1cWhqeulLVD72A386JFQUZWJu92N4UiwYI/DcEzmtt8=; fh=MA6tagyj2TA/Y/zvJxL1wLLRFovcd1DHus6srjxryfI=; b=vyUTgUOSNJjv+fNWF0lx2zVaM6rE51bljteEt0oiSWXaYMexjryRKKe3Kjr/RIenZt rezZQ0tG4vkHARitujIzhhUMaWm3ztG2VOeePBM2B3gGfX+vepChoSf1HzgvVh+Zuz3k IEt6fQoKS/SPJJdCJVJPUhx2g17coI8hQ6NUsCz1+Tdoee2Z/c0pZa2aEMy98QvbBbTI yRtpkdP7IiCdkFWa9q2cW8HLR/ajfzGplDkAZ/ctIjVGf13/GV1p7WuKC+H9Jti43sw6 xxdwC3l+9qev2L1fquqgwfPloZSqVtdJk3EXy6BJvNVL9papw/r0iyvLu++h+hP+RpR5 Fy6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=DRAYm8BL; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-72893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g10-20020ac8480a000000b0042e2b5088d9si586671qtq.765.2024.02.20.03.21.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:21:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=DRAYm8BL; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-72893-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72893-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 08F821C212FA for ; Tue, 20 Feb 2024 11:21:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B91F66B59; Tue, 20 Feb 2024 11:21:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="DRAYm8BL" Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A11903F8DA for ; Tue, 20 Feb 2024 11:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708428090; cv=none; b=jy1yj5TQeCMLN9KvJ+/SkYcACnB+Qg85YH4Wc5kAg9UVwBzIHT2gW1Pby4ZbusdIXD5Thlr5A2p9Kld7oVLq0DngVOsOjOHrs2x06DIHBg6zKfLDua+wSLynfnmD8olmRHLXKTj3aatmVle98BTZjl/gvR09Jdw+NYRO4+iXGPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708428090; c=relaxed/simple; bh=tMJxfwCSSr3p+ijPgpOexopN0A0/RTNz2LXt/jouBIg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:References; b=o+WwWdCyWsLfzPBrEKyofH7n43hJ6CQ3QHvztO4t85nksmemvxSUNxbxQWWlvpm5RSzzrhDJ4ke1O4B3r0B3dJ77wCFfCf5MtjnOCaVCo5GPhTUzx48Gh1TlTxyuNZ/GMRTnY5DcvICgnSnF+zi6OoH8ApE5+GRkAmP01p0YZgs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=DRAYm8BL; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240220112118epoutp043855b7e4e37431f643dcd74dea1b27a5~1jkkzKIYl2600126001epoutp04Z for ; Tue, 20 Feb 2024 11:21:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240220112118epoutp043855b7e4e37431f643dcd74dea1b27a5~1jkkzKIYl2600126001epoutp04Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1708428078; bh=1cWhqeulLVD72A386JFQUZWJu92N4UiwYI/DcEzmtt8=; h=From:To:Cc:Subject:Date:References:From; b=DRAYm8BLEzlPkmljiLn6/vofVK2QFZ79msvhsf/8DJ1zztz4oeM6JfWsCOwYpmU4n +iTFpeXMCFiwsTUZMGtbgs+np4t8WudnLCDXOVyjyGcJ8z/LXlziaB2Bd+B3VlJgL4 x62MbxmFVmIdrUXlXkjf4Mrh+DPghgZ2Q+245sBc= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20240220112118epcas5p20e5f933caf48ebe9fd389527410327b9~1jkkQo-0i3136231362epcas5p2z; Tue, 20 Feb 2024 11:21:18 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.177]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4TfH6430w6z4x9Q0; Tue, 20 Feb 2024 11:21:16 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 3E.E3.09672.C2B84D56; Tue, 20 Feb 2024 20:21:16 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20240220084109epcas5p3dc6b95a0ed69b63e93f4aa0a6fc919fe~1hYvSgQxt0823808238epcas5p33; Tue, 20 Feb 2024 08:41:09 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240220084109epsmtrp2dfee0aa01819adbc0797640442582a6b~1hYvRlQBS1186311863epsmtrp2X; Tue, 20 Feb 2024 08:41:09 +0000 (GMT) X-AuditID: b6c32a4b-60bfd700000025c8-e2-65d48b2ccbca Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 0F.7B.07368.5A564D56; Tue, 20 Feb 2024 17:41:09 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240220084106epsmtip194af0d0ce4318e40dae18b6a06aa7df0~1hYsoDfGI2979629796epsmtip1j; Tue, 20 Feb 2024 08:41:06 +0000 (GMT) From: Shradha Todi To: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, jingoohan1@gmail.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, linux@armlinux.org.uk, m.szyprowski@samsung.com, manivannan.sadhasivam@linaro.org, pankaj.dubey@samsung.com, gost.dev@samsung.com, Shradha Todi Subject: [PATCH v6 0/2] Add helper function to get and enable all bulk clocks Date: Tue, 20 Feb 2024 14:10:44 +0530 Message-Id: <20240220084046.23786-1-shradha.t@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFJsWRmVeSWpSXmKPExsWy7bCmlq5O95VUg7d/BC0ezNvGZrGkKcPi 5oGdTBYrvsxkt9j7eiu7RUPPb1aLTY+vsVp87LnHanF51xw2i7PzjrNZzDi/j8ni0NS9jBYt f1pYLNYeuctucbelk9Xi4ilXi0Vbv7Bb/N+zg93i37WNLBa9h2sdRDwuX7vI7PH+Riu7x85Z d9k9Fmwq9di0qpPN4861PWweT65MZ/LYvKTeo2/LKkaPz5vkAriism0yUhNTUosUUvOS81My 89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgH5TUihLzCkFCgUkFhcr6dvZFOWX lqQqZOQXl9gqpRak5BSYFOgVJ+YWl+al6+WlllgZGhgYmQIVJmRn/H94gqXgAnfF3RvbWRoY j3B2MXJySAiYSDx70MHcxcjFISSwm1Hi28V2KOcTo8S6fTNZIJxvjBKHrr5ghWk51LiVHSKx l1Hi3eOljBBOK5PEtCln2ECq2AS0JBq/doHNEhFYzChxa8dmVhCHWeAXk8S+xk1MIFXCAv4S HbevAlVxcLAIqEqsOZgGEuYVsJKYM3EPC8Q6eYnVGw6ADZIQWMkh8ezHQUaIhItE/+Ql7BC2 sMSr41ugbCmJz+/2skHY6RIrN89ghrBzJL5tXsIEYdtLHLgyhwVkL7OApsT6XfoQYVmJqafW gZUwC/BJ9P5+AlXOK7FjHoytLPHlL8xtkhLzjl2GBouHxMlpN8BOEBKIlfh86T/LBEbZWQgb FjAyrmKUTC0ozk1PLTYtMM5LLYdHVXJ+7iZGcKLV8t7B+OjBB71DjEwcjIcYJTiYlUR4Wcqv pArxpiRW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4REkhPLEnNTk0tSC2CyTJxcEo1MKXrBS2Qmz2t8cAB34Cpq0xuljGIyX9t 8/u8/eS8rK7JC16VrXkR3fWEb51AQSsLL4O/RV6QpsGJjf2sRpIalqxsxW4bAk8xa7Q9Y0v7 Leq88gmPnbme3q/Zz9adDql1+nrtpnyFtOOhZ91iSirN/xLuON9TZbT8zf/CaloDq8Gfpq3z myLvSApuzAziuXhqqdBHOUXOLdf2sJR80vHZ3W+yvkFvr03W5USOq2xTs5wflWf5z3KvFvl6 z/PGdMXPVYvXtCzfwDWTc5UWz6fahyp1m8otd2qpegTH/XpZsj5glf+UO1f+GhZdEL6fN6tZ 0MQxq9OQd7OrsWrFdPUr85qmfj90LC4qhuHIkQhmJZbijERDLeai4kQASN4U4OcCAAA= X-CMS-MailID: 20240220084109epcas5p3dc6b95a0ed69b63e93f4aa0a6fc919fe X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240220084109epcas5p3dc6b95a0ed69b63e93f4aa0a6fc919fe References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Create a managed API wrapper to get all the bulk clocks and enable them as it is a very common practice in many drivers. The second patch uses this API to adapt to clk_bulk_* APIs in the exynos driver. v1: - https://lore.kernel.org/lkml/20231009062216.6729-1-shradha.t@samsung.com/ v2: - https://lore.kernel.org/lkml/20231115065621.27014-1-shradha.t@samsung.com/ - Addressed Manivannan's comments to improve patch v3: - https://lore.kernel.org/all/20240110110115.56270-1-shradha.t@samsung.com/ - Took Marek's suggestion to make a common bulk clk wrapper and use it in the exynos driver v4: - https://lore.kernel.org/all/20240124103838.32478-1-shradha.t@samsung.com/ - Addressed Alim and Manivannan's comments - Changed enabled->enable and disabled->disable in function name - Remove num_clks out parameter as it is not required by user - Removed exit callback and used function name directly in release v5: - https://lore.kernel.org/lkml/20240213132751.46813-1-shradha.t@samsung.com/ - Rephrased comments for better readability v6: - Removed extra new line Shradha Todi (2): clk: Provide managed helper to get and enable bulk clocks PCI: exynos: Adapt to clk_bulk_* APIs drivers/clk/clk-devres.c | 40 ++++++++++++++++++ drivers/pci/controller/dwc/pci-exynos.c | 54 ++----------------------- include/linux/clk.h | 22 ++++++++++ 3 files changed, 66 insertions(+), 50 deletions(-) -- 2.17.1