From patchwork Mon Feb 12 16:10:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 20253 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp16630dyb; Mon, 12 Feb 2024 08:11:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoV6GUyIZIzwuhI+X+XANBCrewyUGXUcRxdWakZ4OHg2ifGVUVKEJW66AqcWe8JZTkvnSa X-Received: by 2002:a17:902:fc8f:b0:1d9:5038:f116 with SMTP id mf15-20020a170902fc8f00b001d95038f116mr8590091plb.34.1707754285812; Mon, 12 Feb 2024 08:11:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707754285; cv=pass; d=google.com; s=arc-20160816; b=VayvxopU/5jg9ON10MCxxnhvZGXcL86Vwyf6uyQXt+Eq3ak2Fhcls2BHPC/BW0OcW3 h5z316aeef1qOHrqCoan/M8tkBDriCcOqiPoknxA1b8H5Z5EsbMKz/jPu9W2sFALFN5f 24njN0Lr7aOiIj4MVzys22gfLRb6w+4a18olx7FeM8WiRy0P2gF9SsVflcgxlFj/hXfr +3MloFV7ZkptB2WVKH1NTsopKrKLVWP7m50D/CC+Fu3mFOZS3ZsK1sG5pnFy5A5AcfQW +m0MZYRunmYNNhKZ3398conLxIy+eBZb4Eg+YO/LxkbLZX8AvEhM5yPkV+/a6gw0VoT+ WiVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=oKExcD/PI3rdObcMLW7NUqLhtinMFG0WFr4nResNLx0=; fh=h83krGt8AC0ExYhu5ZCkY97oV6bJtNY0n80i4icRs0w=; b=P1lW4RgtRh2vYyLAchU5Ido5fykcIyoF3ffgr6HaHZGiawgeh+TXt047/ba7Z+nQE5 zExkNb4saBszsyHSo9jAko/qwpshC+Tc1wyoNj+igcGzVW75ePXzy0KUMbFb8rzi13DZ a3fTiERZ+hzjZJJ0ZQqzsoRj0kw7Sjmgq+Tcy9IdmkNqJmR1n17xiIPDR5SwR/ld9P/t hQi6oKaE+YSxXeR7swVoVIRHHH5ZTALkXeOe0RooJMY3JpUfiqPX2idTIo37Yt9cNsQ7 fjwOR7epJTeTyJKCxZ4V5IFGu7KRJ/h7ZwWbFJsa/ZdFAMOsh6u1oAHiJb6otPuxBubU XSZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Z/hn+PBg"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-61940-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61940-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCW842G6Qq1TTIn36EHYIJo5P7jwNWmSDdr2WFSG4tpVnA3Abb2h4EOoqEP62Oo6mhz0HTu4DVwqC+cG5L+oL9B+V+juTQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z2-20020a170902d54200b001d9b59a5bb6si451016plf.15.2024.02.12.08.11.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 08:11:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61940-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Z/hn+PBg"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-61940-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61940-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 77F28B21217 for ; Mon, 12 Feb 2024 16:11:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C06B3D540; Mon, 12 Feb 2024 16:10:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Z/hn+PBg" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C47303D0AD for ; Mon, 12 Feb 2024 16:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707754255; cv=none; b=Nyc/ZozWy9IW2ht4hM08LAththGdbYwC/y0UNmfrak2jvr8Ro4gJxE7DltSoNm58gRaMPzDlVCZaQs0tURfvYhURuHYXTJh5gI+lHZW6aPAQn5i4tCnumj1OkrZB6lP6ZvHlt322QEkm+cZGpo/0KFT4irc7sqwpCowJ1oRxqiw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707754255; c=relaxed/simple; bh=eyOTJutJI1wmLY7JN5BD4EoCMWpHkMKGwKJZTeOKvDA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=L9WkN+OfjiP8luDdlMrqddrvfTBOuuMpor7029FwsFxBlrmYrWjrVNeET0/NC/jBsVKtmEYYh2wiRzSuNR9QYGMAim3seuZjvW+SuVGwK32YKI6ZMGcD7z5InouY6Isiub8hqyKVajPf/MKAFoVgWkSdsRkVJ3T8nqw0C0zfzZY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Z/hn+PBg; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a3cc2f9621aso87993166b.1 for ; Mon, 12 Feb 2024 08:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707754252; x=1708359052; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=oKExcD/PI3rdObcMLW7NUqLhtinMFG0WFr4nResNLx0=; b=Z/hn+PBgYICnZJvgFGO50Gz5PvGhqugarfW1AW9lKssbHcX5kruxuwf9+uvmmf8Hmn KdquU1wLqeXnviO7vcJyrmkpQrpSYufzZltci2LHZ/XCmRhxkSt46WwulxHo04aTJQ+A efHPIrkH4EJBTq0uELLKiVVRQqxdfKBfdexMXfmgKM48fctzgbC8lXDwHg7zoJvOuxhN gC9gXELjNOsn6LZGv8alRnl1VrdALBU5TF8mB2KcSgwOg+g51ofoZ53aOOzOAE9gGf0/ W8ZmSbyu5PC9IcR8isKHpJKUuoJ2MlUEUDje7QisM5EA2HuUBB+ujeU21nRZ4IQiFn8X KSZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707754252; x=1708359052; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oKExcD/PI3rdObcMLW7NUqLhtinMFG0WFr4nResNLx0=; b=QaFPdF4dxVHEBAoQWcuvlKL6qrGoLyYi+XBhWg5N3TopbB8NS6EzXp8UcK0GJLeQuZ J1W29QoaEhw4ewN7+bWVTn6mbPaLXtU8T1PdZt/IA83U4afZKrrzrgrwAkrNUfeQWsw/ otuUJd9tBE1HR9+dspGler0tZsNgn1T0O3oRkSY2vVOKajwIp6p7mW4aMl96UIl64WET 45DAwdE47uVHAWZaDcuWo9c/BEQtm0gR7pZyuXESX9lF/SiXWPIUM+vAlmXK6aBcnP8y slOaANIfZCoPoJaQZJBne9yLBGs5J6C7ayTcX/hxuFZUgXi/7PgIGRinJ8YYjNYM+kB9 O9sg== X-Gm-Message-State: AOJu0Yzy572KQoWcKyVpYqKp9qS/RZU6fSPXHAiVY1G0cwS/o+4Aq+0U GSi4ePrdiD5mpBJoZX4y+XCzr40IQT7s5RX2ro59icDglWXNv7XE/cUO8nyFQRU= X-Received: by 2002:a17:906:6849:b0:a3c:c8de:7a66 with SMTP id a9-20020a170906684900b00a3cc8de7a66mr1490751ejs.13.1707754252058; Mon, 12 Feb 2024 08:10:52 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUBtdkPPv+0QPCHKCu+w4p2h/5cEmKZkaya/ScmMAtK3pVVI9yaAGzxY1/Sir5yHLQhjMQTj6q47TWBFHrxqvVlMzdlC7NU6KzaO0BNF+iWrw+N+/BJfSIynKlD4fzWaLXNsjbO4rjkk+Gnfux6It0ZaALQZerQ2nnpvue+UASRDcLQSbpqAEna91xt0ThqpqlEDZM6nT0ROg1qia8o5PGFTJZ+p4E+usNBwusDIHFIaAhY994hsxsNlNu5h8KAelX6VaEsxbA34zSynnOWUlh/fhJWfUYDzAWF1wjitvkfi5epUc8WKHqkbMzDCuJ44teN+Gk/talCLPGP47XDjfyW Received: from [10.167.154.1] (037008245233.garwolin.vectranet.pl. [37.8.245.233]) by smtp.gmail.com with ESMTPSA id n7-20020a170906118700b00a3845a75eb7sm336246eja.189.2024.02.12.08.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 08:10:51 -0800 (PST) From: Konrad Dybcio Subject: [PATCH v7 0/2] Get rid of some magic writes in drivers/clk/qcom Date: Mon, 12 Feb 2024 17:10:45 +0100 Message-Id: <20240212-topic-clk_branch_en-v7-0-5b79eb7278b2@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAVDymUC/yWN0QrCMAxFf2Xk2cAMQqm/IjLaLHPBko1WRRj79 wV9POdyuBs0qSoNrt0GVT7adDGHcOqA52QPQR2dgXq69HQmfC2rMnJ5Drkm43kQwxgmypElhRz By5ya4H/21t6luFyrTPr9Xd3u+34AABEET3oAAAA= To: Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Johan Hovold , Bryan O'Donoghue X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707754250; l=3032; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=eyOTJutJI1wmLY7JN5BD4EoCMWpHkMKGwKJZTeOKvDA=; b=qSRv1EXLfRLPtimq13infRYGrPO6eLXx5oQBb4BFvtArxeRHkkGKy0/DHFm/+BmgoKITc2Y89 h3oVDv0cxQvDGEdqfSrs/6ACGWsKs8KPB+Xyz6981j8OI3g9s0fJuPS X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790710158195539390 X-GMAIL-MSGID: 1790710158195539390 Changes in v7: - Separate out this cleanup part from the RPM/IS_CRITICAL part of the original series - Unwrap the regmap_update_bits call in patch 1 (Bjorn) - Rebase (take x1e drivers into account in patch 2) Extracted from: https://lore.kernel.org/r/20230717-topic-branch_aon_cleanup-v6-0-46d136a4e8d0@linaro.org Signed-off-by: Konrad Dybcio --- Konrad Dybcio (2): clk: qcom: branch: Add a helper for setting the enable bit clk: qcom: Use qcom_branch_set_clk_en() drivers/clk/qcom/camcc-sc8280xp.c | 6 ++---- drivers/clk/qcom/camcc-sm8550.c | 10 +++------- drivers/clk/qcom/camcc-x1e80100.c | 4 ++-- drivers/clk/qcom/clk-branch.h | 6 ++++++ drivers/clk/qcom/dispcc-qcm2290.c | 4 ++-- drivers/clk/qcom/dispcc-sc7280.c | 7 ++----- drivers/clk/qcom/dispcc-sc8280xp.c | 4 ++-- drivers/clk/qcom/dispcc-sm6115.c | 4 ++-- drivers/clk/qcom/dispcc-sm8250.c | 4 ++-- drivers/clk/qcom/dispcc-sm8450.c | 7 ++----- drivers/clk/qcom/dispcc-sm8550.c | 7 ++----- drivers/clk/qcom/dispcc-sm8650.c | 4 ++-- drivers/clk/qcom/dispcc-x1e80100.c | 4 ++-- drivers/clk/qcom/gcc-sa8775p.c | 25 ++++++++++--------------- drivers/clk/qcom/gcc-sc7180.c | 22 +++++++++------------- drivers/clk/qcom/gcc-sc7280.c | 20 ++++++++------------ drivers/clk/qcom/gcc-sc8180x.c | 28 +++++++++++----------------- drivers/clk/qcom/gcc-sc8280xp.c | 25 ++++++++++--------------- drivers/clk/qcom/gcc-sdx55.c | 12 ++++-------- drivers/clk/qcom/gcc-sdx65.c | 13 +++++-------- drivers/clk/qcom/gcc-sdx75.c | 10 +++------- drivers/clk/qcom/gcc-sm4450.c | 28 +++++++++------------------- drivers/clk/qcom/gcc-sm6375.c | 11 ++++------- drivers/clk/qcom/gcc-sm7150.c | 23 +++++++++-------------- drivers/clk/qcom/gcc-sm8250.c | 19 +++++++------------ drivers/clk/qcom/gcc-sm8350.c | 20 ++++++++------------ drivers/clk/qcom/gcc-sm8450.c | 21 ++++++++------------- drivers/clk/qcom/gcc-sm8550.c | 21 ++++++++------------- drivers/clk/qcom/gcc-sm8650.c | 16 ++++++++-------- drivers/clk/qcom/gcc-x1e80100.c | 16 ++++++++-------- drivers/clk/qcom/gpucc-sc7280.c | 9 +++------ drivers/clk/qcom/gpucc-sc8280xp.c | 9 +++------ drivers/clk/qcom/gpucc-sm8550.c | 10 +++------- drivers/clk/qcom/gpucc-x1e80100.c | 2 +- drivers/clk/qcom/lpasscorecc-sc7180.c | 7 ++----- drivers/clk/qcom/videocc-sm8250.c | 6 +++--- drivers/clk/qcom/videocc-sm8350.c | 10 +++------- drivers/clk/qcom/videocc-sm8450.c | 13 ++++--------- drivers/clk/qcom/videocc-sm8550.c | 13 ++++--------- 39 files changed, 186 insertions(+), 294 deletions(-) --- base-commit: ae00c445390b349e070a64dc62f08aa878db7248 change-id: 20240212-topic-clk_branch_en-97f2b9cea7b9 Best regards,