From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 D78954B1B21 for ; Sat, 5 Sep 2026 15:32:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788622364; cv=none; b=R7GrqCTX7D77iTk3EN9NqW4msFvqQAeCqPG772ajp95OfEqMrDrN6wm3yygoGk/0mJrczkX+ndtBM5Aak0uotT/B0UJbuhwgje9Ctacx3Da0SqtyCHWm5x7z4LxyEbRY5it2zVmwJDvf0qU4EmHwCyDfHs6u/or8I5KluwK/um8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788622364; c=relaxed/simple; bh=HlStx7vx3piFzayiVi0TqGQGaEyIJNcVSIFbgAKrR84=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qCkE5+Rgf4rZw9GDzXjSB30cwbR25fqzmP9O8HIDeS8o7aoTWOqAsOAZrCG0pgbDQW5mOTCnBowyYmORrfFEvFVkahNIg4bgVXMlu9p302q11ykfaX/AwgkuKrarTnT83vUQMfWOokWZsuWByojDk/An4G74OJTv79pLW++LRIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-47ddf7b09e5so2173447f8f.1 for ; Sat, 05 Sep 2026 08:32:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788622360; x=1789227160; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=rBqYYCS5py1zvvdbPLcK4Z1TQdgdHGp93LoH6od28Gw=; b=qp0dgKiwyKdjI/x7dkthsTB8IVBbD13VOpCPE0nBZhSkLsG4MZsld1/GGWWgwMhMd0 Z9P8aXofAR5d0Xp9Un16vcbsUuMh2nDmvUdEd9jxJybBUA7jgDZ59cGwkuyJS21DMaX2 Xdlq2mV7O/ZUDxfpr/TjE8wNSE0En5bD6OOFOCUYWxrZA7t3C2o0KNn3yPw+rqvyB8Dh /3qhBLqiOWfqE9mH8XkGuRIS69saTvoRVLaZv5cam/7LkARGOvibUpXqKm2Z2xp7Vnrs xcfPL2zzJlSwxI2P+fUUruggIyrxXbKGVqE6Hs+lauZ3BaXzVkrESAfDuk5b4NsURV3s q3Fw== X-Forwarded-Encrypted: i=1; AKwUvBzs3oJAqU9jcyq6fA+3ewvVpvTMlw22Qd+hcBPrPQaIVX7Re83X1qGk8hWcaG1LOflx4Kq7uXa0wO2t@vger.kernel.org X-Gm-Message-State: AFuF++ngyjp1DyIQmn3D3H8KAZDZd1lq01YUxCJn+5joeEFoMoeietu/ p5s1OM+d6yTBfahP9xKrxkSh8aTQ/ZPpV/mrpZuQ5C4e9o3eLZMTj+G8 X-Gm-Gg: AYBFou2VK+7o9DsOdCjSWiol9LPWzI1hQVkGYvl50ZhxpMIghKdrm3d6mSTZjL7v2oB cuezW8fux9m3MxIpT3NYfcb5QYaXF5SR32XBHn/UPYZPcvw9QJwJVSCeYwDJlWfPi1jdutQmZ55 YxaMUv+Kv+s1BrrBN6+ZCykxddcpobK5wDGHgDzckpL0D2Jp6AxWOlUss7T3nzRhh9P7pQZkOG1 FSxUP5gMBLHoOrxgsRcdoQjI4WAeSgJZstHZZimE7j+gTHKf88sAWpfx2t98UeAkxEf7UDSf3hl z9J/ASif14OD7FhW/7RAd9yJc8dgg2Wox6cutBBULJGZtGFhpQiPezDH+gDlumNkz5ZpjLvVJoS 5Pxke/i0gsJ49eFxfS9RQGNPcfEPVplVZSzWMf6JeZQ/oV9ggXRQ9eqlgUa5apWJOCTDrb0HvSf ogt8Nl/BuVUqkYY5eBXxy2dcKcGTrW628Ipi629WA1O1y0iXh/1Bu3NOC6GscMj1eBpRV3aRCcK 10erJAR9+4gExkE3L9r6jWpgg== X-Received: by 2002:a5d:5f09:0:b0:484:3332:d1ce with SMTP id ffacd0b85a97d-48586bf9cfdmr14652908f8f.0.1788622359412; Sat, 05 Sep 2026 08:32:39 -0700 (PDT) Received: from threads.localdomain ([84.68.179.181]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-485883c6ba4sm16691913f8f.25.2026.09.05.08.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Sep 2026 08:32:39 -0700 (PDT) From: Lucas Tanure To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman , Martin Blumenstingl , Stephen Boyd Cc: Brian Masney , Chuan Liu , Jian Hu , Ronald Claveau , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] clk: meson: t7: don't mark sys_ampipe_nand as critical Date: Sat, 5 Sep 2026 16:32:34 +0100 Message-ID: <20260905153234.133217-5-tanure@linux.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260905153234.133217-1-tanure@linux.com> References: <20260905153234.133217-1-tanure@linux.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit sys_ampipe_nand clocks the pipeline stage inserted in the bus path between the SD/eMMC controllers and the NIC_MATRIX fabric. It does have identifiable consumers - the three MMC controllers - so marking it critical was the wrong tool: the clock should be referenced from the consumer nodes and claimed by the mmc driver instead. Drop the CLK_IS_CRITICAL flag and update the comment accordingly. sys_am2axi0..2 remain critical as they clock the AXI DMA bus itself and have no single identifiable consumer. Assisted-by: Claude:claude-fable-5 Signed-off-by: Lucas Tanure --- This patch depends on the MMC controllers actually referencing the clock: the dt-bindings, mmc driver and t7 DTS changes adding the "pipeline" clock must land before this patch, otherwise the boot hangs and memory corruption this clock caused are reintroduced. drivers/clk/meson/t7-peripherals.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clk/meson/t7-peripherals.c b/drivers/clk/meson/t7-peripherals.c index 55d09e78593b..2f429ea86796 100644 --- a/drivers/clk/meson/t7-peripherals.c +++ b/drivers/clk/meson/t7-peripherals.c @@ -945,13 +945,13 @@ static T7_SYS_PCLK(sys_aucpu, SYS_CLK_EN0_REG0, 14, 0); static T7_SYS_PCLK(sys_cec, SYS_CLK_EN0_REG0, 16, 0); static T7_SYS_PCLK(sys_gdc, SYS_CLK_EN0_REG0, 17, 0); static T7_SYS_PCLK(sys_deswarp, SYS_CLK_EN0_REG0, 18, 0); +static T7_SYS_PCLK(sys_ampipe_nand, SYS_CLK_EN0_REG0, 19, 0); +static T7_SYS_PCLK(sys_ampipe_eth, SYS_CLK_EN0_REG0, 20, 0); /* - * NOTE: sys_ampipe_nand and sys_am2axi0..2 provide the clock to the AXI bus - * used for DMA between the peripherals and the DRAM. After the clocks are - * disabled, a device that starts a transfer cannot complete it. + * NOTE: sys_am2axi0..2 provide the clock to the AXI bus used for DMA between + * the peripherals and the DRAM. After the clocks are disabled, a device that + * starts a transfer cannot complete it. */ -static T7_SYS_PCLK(sys_ampipe_nand, SYS_CLK_EN0_REG0, 19, CLK_IS_CRITICAL); -static T7_SYS_PCLK(sys_ampipe_eth, SYS_CLK_EN0_REG0, 20, 0); static T7_SYS_PCLK(sys_am2axi0, SYS_CLK_EN0_REG0, 21, CLK_IS_CRITICAL); static T7_SYS_PCLK(sys_am2axi1, SYS_CLK_EN0_REG0, 22, CLK_IS_CRITICAL); static T7_SYS_PCLK(sys_am2axi2, SYS_CLK_EN0_REG0, 23, CLK_IS_CRITICAL); -- 2.55.0