From patchwork Fri Jul 12 17:09:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13732039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A778BC3DA45 for ; Fri, 12 Jul 2024 17:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Fnhm523hS4IDFhkj8U4RWRolcD19Piba7MrN9aiVgQE=; b=MNQB7gr3rHed6i V/7VMDt/fk1wKlHiKAQqgdygZC5Hwlbgpzfj/n2fNhMHceEneMHOAG6OV66Zw0jx8pAyKU1OU2gK9 yynFIAGynhABe8ih9O8gTG6VJeCnFBPv+6SjSEKYYQya2L78uiuerxAvZsasodOqWWwxyJbTZPEna QEtDnA055pQk1KI+Z3liPCBSgCunywY3N6nZaEiRUVj8nen0XFAinFKR40FILwCB8Uf2ZTpXgviRD Y/RV7ZckFaLxn3J37mTTu6z/12iWlyXqunBZfziOlvJih2cHy94nOEea4RoDI56s+8p3NACCxmY5R AD7ND1aVQgIUU5REkdcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSJmZ-00000000ni7-0uUF; Fri, 12 Jul 2024 17:10:07 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSJmE-00000000nbE-3LF5 for linux-arm-kernel@lists.infradead.org; Fri, 12 Jul 2024 17:09:48 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-58b0dddab8cso3765833a12.0 for ; Fri, 12 Jul 2024 10:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720804184; x=1721408984; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Fnhm523hS4IDFhkj8U4RWRolcD19Piba7MrN9aiVgQE=; b=EFA2htaPJoN8/uy3P0eJL7rjO1/THTfOp5aVM4JKmAMxzyCP/ZMGG34rkleEzTTHFd XZsBv6/Nqt1fmMGOJLKhvul6zsHT89C6D5Pa36YwXXsmIyJJz7vA0t3OI+BomfhSLSgm dRVN/P5RfNv+EKNy9oQCF8LnlKrUQaoruCH0kbuq1Ym0x3FOnfZCM0B2UmaWXmFh3IR/ yC0xetvYMXJqx/c10RxDF2DL+8x8pvOxUle8QJs5PT8aRWZXZP6TZfMpMcZH9A+Q3p/o gx4VN/Rvnv6/CeRU5MKlXDqQpmGG+UHiU6WfGNOokh3tf0GQ83/29KMPSBfCs38e3VSS Z2wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720804184; x=1721408984; 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=Fnhm523hS4IDFhkj8U4RWRolcD19Piba7MrN9aiVgQE=; b=Et2iCXA6mMFaw+Z09ZIL5gQ84q/fbUqMh5rD1zfscKe6zbnUWg8+UVFgUMFofC9HEN bd9xTcmvhGWl4HXnBAq8bHsGTLruPZiUzm6g6J+kJCtjPxvdpB/ZT3oIyh1LfZQJG4eG 7ODY0hEld3EVjNZPqI+TSyl3VbmfAU7ChclSx2LlEanUoncfM/sV6x9dnLt5B6hj11X/ /3IsYP1BhB0MG0eVwdk38sjNc6AEi/C1M6LXPG3pTI8FBNg+F//r8lfBpGlYVa1Q3OmX yH00JSKvdGaiQDdPAqe/QTzwqio48sNjaPcz4Vrx7CQQc8AddUas3oKaisBoz/0gsYc1 Ge+g== X-Forwarded-Encrypted: i=1; AJvYcCU/dMivoVSzocz8TPoBbloGe1ghJmajylZ6YbZNVKeDjwtWSN3AUzuDgDsIQhi9wZuA2BdJhfWfpTPT6cGMedLv14H/ZA5bTaCT7aod3nGsrlZJVuA= X-Gm-Message-State: AOJu0YyMINSt8kmvwUd17XpVhoGku0q0eDtGesM0Gp6Bkx7gwjpAtvSy JWAgBbgvGUdaKzUQYT4YVwEMmUslVlT9aCGdeJ3io9mNH37LwTYt9oIznhtHmHE= X-Google-Smtp-Source: AGHT+IG4TH6RpE92PDuHakkWNmOybXTmwNcx+nqarKFaRp+ljxkRFFwn0hjm78OZrfbRQp1qxbfQAw== X-Received: by 2002:a17:907:3f12:b0:a72:7736:9e03 with SMTP id a640c23a62f3a-a780b881c7cmr1089046766b.52.1720804184549; Fri, 12 Jul 2024 10:09:44 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a780a871f0esm363750466b.194.2024.07.12.10.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jul 2024 10:09:44 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Subject: [PATCH v4 0/2] gs101 oriole: UART clock fixes Date: Fri, 12 Jul 2024 18:09:42 +0100 Message-Id: <20240712-gs101-non-essential-clocks-2-v4-0-310aee0de46e@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFdjkWYC/4XOsW7CMBCA4VdBnnvRnW0gZeI9KgZjXxKL1EZ3U dQW5d0JMLRbx3/59N+MsmRWc9jcjPCcNdeyhn/bmDiE0jPktLaxaD16h9ArIUGpBViVy5TDCHG s8aJgYRecbbELdObWrMRVuMtfT/7jtHYn9ROmQTj8ouQQ311LtqG9323JAkEoSbhJEvQnX45jL kFqU6V/mEPWqcr383h2D/nl7OmfudkBwjbFc5vQY6L4Fz4ty3IHts1uLA0BAAA= To: Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Michael Turquette , Stephen Boyd , Tudor Ambarus , Sam Protsenko Cc: Tudor Ambarus , Will McVicker , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr?= =?utf-8?q?=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240712_100947_021328_A1095BD2 X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This series fixes a long-standing issue in the gs101 clocking / uart handling. We can now disable clocks that had previously been marked critical, and still get a working earlycon. There is a preparatory patch, and then a patch to drop an incorrect clock counting work-around. That 2nd patch is essentially the last remaining patch [1] with all review comments addressed, from the series [2] that was sent earlier this year, see lore links below. Patch 2 can not come before or without patch 1. Signed-off-by: André Draszik [1] https://lore.kernel.org/all/20240130093812.1746512-6-andre.draszik@linaro.org/ [2] https://lore.kernel.org/all/20240130093812.1746512-1-andre.draszik@linaro.org/ [3] https://lore.kernel.org/all/d45de3b2bb6b48653842cf1f74e58889ed6783ae.camel@linaro.org/ Changes in v4: - new patch "clk: samsung: gs101: allow earlycon to work unconditionally" - update commit message for patch 2 - Link to v3: https://lore.kernel.org/r/20240710-gs101-non-essential-clocks-2-v3-0-5dcb8d040d1c@linaro.org --- André Draszik (2): clk: samsung: gs101: allow earlycon to work unconditionally clk: samsung: gs101: don't mark non-essential (UART) clocks critical drivers/clk/samsung/clk-gs101.c | 106 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 102 insertions(+), 4 deletions(-) --- base-commit: 523b23f0bee3014a7a752c9bb9f5c54f0eddae88 change-id: 20240430-gs101-non-essential-clocks-2-6a3280fa1be8 Best regards,