Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2545032rdb; Mon, 12 Feb 2024 08:11:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIsKcCGqxyf5nIypwpleBshhFJVWag0VRHmlvfJzf+xDFVnjS4cmsjqwxUirF7c/aSaDoI X-Received: by 2002:ac8:74d3:0:b0:42c:689a:fe74 with SMTP id j19-20020ac874d3000000b0042c689afe74mr6974557qtr.56.1707754263632; Mon, 12 Feb 2024 08:11:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707754263; cv=pass; d=google.com; s=arc-20160816; b=yCwSie6NKW7gURAML28FlOd3bWdb7FT49jq4QAONtWuClr5mPYgiqL10T0PQ6VGuUr GTWnDdhl5HPbzenIhHts+0lF5gmvo1QiCuOkeylf8XOIOo1LsuzP8G2nDQ+F+ZecyQ3B 1k4A+cRUJ/SNbK/m8B7X+bnvIwtZnUkhINb/D2ggN6R2WMTpjFmU++eU/kIkSon16JYQ kr8XjyLS+feh60OYFGNU5US6QhXmanu5EpKPVmFKmEAnFmLvcn+6r+4qTed2/5d596v8 ZU2+z7Y1y4tAN+kbV0a9Yd6DarFFFbQYEwh8bCtp+USDiypm5jPFwmVQ4qIvHVsh5BpY wotQ== 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=2+QnFO+o1svh2uNVaNUS3UzfF6kUWmcA4z9XgwcWJwE=; b=CitlAkKa7TVif55eF8cQDdHXvoS6H8RctjrZY2nGfF9LalO+n0vwlsuWD14JvHZumY JJEvZbc3NXfnVgoPup0LzF5AuVj4xhhlkolZv/nXKYAzU5yFR/Al1GMbK5RM2D+nNH6Y h9ecKk1sHD+6wEUQMWxnN1LAKRIsV7+/rIbeYkUd/TKg3FCGulYoy/OdHJ3awkglXsB8 JZSoW5SHWebdRLr8WpXsjzn/0tUhEydh/wEzo1P8Cq0GChazfNLhGX0j6NiFIrqNtIOI eraa+5Wf3fZOdUjac2DbeDUoDHHxp1iO9rk1fVWq7BpB5TiZRxeszMXkiTjufI+beQVj aZfg==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCVOIHKhlRZPggVxgRSlQuYFTf29ktJgi28U4idh9CyrlkrBGjh+WW9ALbu3Rgu0GrMmu1cs7Hw5CAd3e173+MXWpXyGRW37YjIa8h0aMw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j14-20020ac8664e000000b0042c5d1612a1si659087qtp.152.2024.02.12.08.11.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 08:11:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61940-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 568C01C21084 for ; Mon, 12 Feb 2024 16:11:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFB6B3D0CA; Mon, 12 Feb 2024 16:10:56 +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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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, -- Konrad Dybcio