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: 13553430 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 C3A1118646 for ; Mon, 12 Feb 2024 16:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707754255; cv=none; b=eVnokt5G0kHwO61aWoGGmp/hNClrIypS9Kwgr3xtnixztr9vmS4z6+ZyON9KHxppYUjwMuRl9yo5PONtZHQ4eg0Smh3n13YFeCdZyf04KMx0QUatDTVspM2P1QR+o86yrJd34gTnuPSFd89sn89RpmwEfG+NKVlUWpyYI6J/Wtk= 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.41 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 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: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a381df83113so349911266b.3 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=C9OZr10zbkLbkk6/MtdIBCL/40mbBekwPL2b3bR/ZnNo7+J7e2QW+XZt33Gs5o4bPq MqSTEHPBthpfcoddpzff7P65imFu4j+mUZHCco5YIOpBNN1Zl8rWok0AckRMvT+NGOA4 evP8lM9/hzukh2iFr33LBcThVN9aOzrdUX8zWuXHwrsLJtxaa05bL7tAPDoeUFy/30jf hcX7CRSD/9qy5rm9+pspEkfIbOpMscrjt5WdJlGLrxuOqzCIRGMmaVEmjWwWs5Kd1nHN BwL9mat4R3hm5RW7GAVu2nvmzvrlH1VYBPhLNd2TDXq+61foVP1RfisVCz4FmHmSRisd I/hw== X-Gm-Message-State: AOJu0Yzrtoyjob7ODe3/GgK/9duJjgkSwUuudJtcmq68WxY0EOiLSlXa vPwTRNnOTdfsSsJ4iMu6IZfrpLoV5iXJ839gANX29QmrioJaWywT+EA+9RkFRlI= X-Google-Smtp-Source: AGHT+IHGqxFdfrcbySROaHj0hrrGYT+Lc5OyhLy7TCuRt6bZ1Izn7JG2+AwYm4qXi9myDuXfJJYXTA== 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-arm-msm@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= 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,