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: 812448 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 46D8E176AB5 for ; Fri, 12 Jul 2024 17:09:46 +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=1720804188; cv=none; b=q1R9i25EDaOBgVR8oblogh4Dnvu3mMnIUVnmyaovNdQoC09zfOCzOyVVWwa03qfTuUSOzciKrL3VY8uv3dFZV/Ri3yK5CtSV9mecFZ5Pey9irUI/M6myEpTIi+isBjzGbTRlBPa6mpFLYUYVIYLvjI/4+xYX95HFDBWSgZb/Dcg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720804188; c=relaxed/simple; bh=IvYiOk43NNLFvoIso1SMpTkb2IyLTMaSDdcgZBde4sM=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rXYS7XHGyFenJsRSGmR6dFtApxJxppCjmMk/F0OhPAkL/cIfQ0Jl8RQ+WABRkkYHzbFRaSKB0TwpI4gGqzPeTxxwTlrFA69yFVTei1gbZuuNrbw7Rdli7cQrJe7v/pdq7Tm3DdfoWH02oO/siY9h/hd7WJaqYELCpodJ0/m0J0U= 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=IB5B9ht1; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IB5B9ht1" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a77c25beae1so258638866b.2 for ; Fri, 12 Jul 2024 10:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720804184; x=1721408984; 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=Fnhm523hS4IDFhkj8U4RWRolcD19Piba7MrN9aiVgQE=; b=IB5B9ht1UpjPgaKNp3hX4EaNj7ilkCF7om9IWRRprM5l97yh1/wzDcybyGnY+/TQcj i1Xeygq7aP6FHHfYTh+ohhvEeOlqU/PgcvIL0px24xIvmQiW3YwNGdfxFdZexld85Yf5 ATsWIkksb1zfsFyyRTTVCUHMxvlhw6Wn/K0fQaLj+jhMsuhGPc0rH7G4VRjwCTrSCmeT 6n3izTnz6zA46Leeeg6JKYEL42IJHFz7K8090HdhU/OvMGBrazWiLQRhlAeh4SfSsIV4 LjMCguGW8Z+8lVsfYK5MLhv1bWszm0tbLxzvg5ZGm4in5NCkE1BAn0fl0gfxGF7kaW6D eKUg== 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=MRp6ckWHOf7pg0FkES+NCQ4ZYAWqiQBVs/aUgAeyUewpQ+dozvJdl1IzB0Tcl89+6L EBPwvkLv6G8nYXL03f29mxtifipvcZ/D7/yQTivzdWpX+4+ogEabge7K7/00lytJBd6S rObcv/hks2AVforKUX+SqcIDQWnufsqlB9U/NxLookLW9rmx85EFneTGGM2YjIZDEeTW lmKcdDHKFQtd5w2scMk1OwV3uCizVn3vpxqhCSpFs00FuvIS2PKCPe8T3VG6MrbuHIFH ix2oEN0IR/w8paB0qmz9xypMMVKF8fEqgAMF69540VTX5r3ndLmG/yUQpbUNu+TgRvnd 9aXQ== X-Forwarded-Encrypted: i=1; AJvYcCUO2E75FDlJg76g/FFWk66OldxG4Uu/KNBrwWXhjuTjrSy4Oo7ofOIdZJTXDJ/0/d74Vqd5H3TSjK43byA4x6ePVSL9dz2TPe4dCaPEeSRdEks= X-Gm-Message-State: AOJu0YztxDbUqmgKGlq1jBR/w4WjW8IMoFYXC07HqxJnEw3weha2s8oR eGfzL61Tc0QRqQ4vCwVJjoxt+t1zHC5pgcOXmQEYHB5uMiTTQcXbRQOoEPLE6Js= 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> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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,