Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp950329lqm; Thu, 2 May 2024 00:03:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7XKec35gbVSnSQahQ/lLKe5LLqmBGkGhBig5dDWb26vs5RVzlSxW8zXO/quLefpErfFnz/zO5mS64MZ9w8FVkeM5LXFdLHcVpvYyXLw== X-Google-Smtp-Source: AGHT+IHcEHMAiFPHfl5XjwHeL+vshCwY7cUXM2D0pY8rQIjXqNr01xyawKUmM1Nrg3Jp5jGiZGtU X-Received: by 2002:aa7:88d4:0:b0:6ee:1508:edc8 with SMTP id k20-20020aa788d4000000b006ee1508edc8mr5666059pff.23.1714633430937; Thu, 02 May 2024 00:03:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714633430; cv=pass; d=google.com; s=arc-20160816; b=FPKtMBF8nEocr1+fcCt36efHtjNs5l6wDtEcPQmq9eOi+4XRwRtSKR6cFDcA4dpgN4 DGEH++kEsktagqKX6kGngdjNovmkvmF8SAaGhJIzKt3VBrribEbL9JbW5e0iqJ8SrPYb adXr0wXoJvgUgKaqU332uVZrAeDwHRHXB7ffu0ReZieT3P+W8wOIPu0Yy/uLWio2W1vZ ueizL60YDxTOYvX1GDD8/u78+EdI2ckMWl1gE31ZlNjWz4D2XjvEMKh1fb8JA43UIO9B zVdIkkGMpO++Nd4TlqJbLKE6Oti+u89XwWcy5qLLHzL/cHST22VxAkuHpCSKJUkqAnd4 1azQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=gT0wZEscSYeblV//UK2U7Db5HieDrFtfc03MYGL1w1I=; fh=S2D5pyEAAcocrXCttFsKxB5jsBrjVvKPEtob/LGdO2k=; b=KRP1VQGMGMb5UrqXfC5YrQ0evfwd/lk99wCsNWS9tswJQ5ZFlBehWAUM6qV/YLOMIT /wpmVW4F/vmv9691LBycEhqZyRz9xeGrghE4+GjEOoIaLHwnP6Bbgnqr2uRAhz2uAqNR wYMFqR7ZdtWf721rVNgTXXpYeI8TK0i1WW1Jzqwk2rOTd54aQ41/dmXvH714xVvMXHHa auAcaXdG4pPSnA40WSiFeTnhBXLET4kze+Cn2eSapXMljC0Kiv4IlEkdEg/JCoKGKRz2 NSNQWF7HcIA/AzBPOEEsMVgOmc674/bYfliyOLx3g9hvZAZRJy4uCWbges8FPLqdhJyP pLlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tC4XrcGp; 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-166032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y70-20020a638a49000000b005f751c531ecsi465975pgd.761.2024.05.02.00.03.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 00:03:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tC4XrcGp; 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-166032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166032-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6533BB211A2 for ; Thu, 2 May 2024 07:03:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5143225A2; Thu, 2 May 2024 07:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tC4XrcGp" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 5875F225AE for ; Thu, 2 May 2024 07:03:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714633398; cv=none; b=UZO6yQYKQqCbvAZqprnsJG9N0gTO81KR0bBc9n4TBE2Krp3vgsxVkT2frTWifNNnmLjEQM+R8ZCjnmZ55nK0hKW8YpeZ9wVyNdFcDeNaVMUP/IcM4lt6JtzwyBPzPF50DdcrPQ2+QpQxXJMsTdpkm4YqIK6p/5lukASfztbk1GE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714633398; c=relaxed/simple; bh=HioLiSxaTT3L9jLeBVE08Icv/6BMDP4b5Tqu4usekps=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OOXRXD645K8liSX58+LnDmaf7OliKVFplaMCBrsxA8pJb+So29NnJWZqoOzWG6xK3yJATiLzLS7gIN+lWQ1MyVaXu6SoPzUuY2/Sbyc0kNMhjcP+OP7xrVsQBy2K1hQKKEH79vxsKbR33GIuDY1yqkqlvjJQpXUWklRMB6D2VIk= 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=tC4XrcGp; arc=none smtp.client-ip=209.85.208.49 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-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-572a93890d1so1976028a12.3 for ; Thu, 02 May 2024 00:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714633395; x=1715238195; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gT0wZEscSYeblV//UK2U7Db5HieDrFtfc03MYGL1w1I=; b=tC4XrcGpXLmDW5X+LEYIKp2hmfXHghh3p+yP+5Vm9YjUqNGm9MnPlBJWj1Qm45DsfW 22dvCvctBtpXlV4AXA0e/o4z14zC5u+PgoZlDVfvG9IQr91DR96i+iG04yu67Y8TrNoQ 8X06HRunxGrT1JX+XbFQnVRnwraavdNiN42w7v8V0jX29EO0Jl9jmufenxq+Yr5bfJ7F SZkqKSedGjdPPDA4Z9srZYKhAoGMMv6GruGsF6b2shZh0MLeJHJZVDOiWxgXgvhZfv3V wUWGSD0NKkW9q+NUU2kA+jIY4cWMda8uK4CySJO2grmS1jmfb1vDPsmtbe05MLW0m83k lVYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714633395; x=1715238195; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gT0wZEscSYeblV//UK2U7Db5HieDrFtfc03MYGL1w1I=; b=Zg6f09N/q8iL+yzpTi4svZH0YBfYBld2ktZ3DCtvAeJeGuWxngg4iowQjASICkkEDR 6ftqH6mOddTp9TXCHo3uk/9yRWZvGwhVBGcf5DIjAbJW8MWAyTo+0Pzh49jUpdpmiNJu hK9xVGZl7VNrQ9wPafSxQbVBx5ZM6dT/imN0AaFCE1oUcJa5/qezTl01fTcVZKm6ZNf+ 0KJfqpLnp7mjVz/vmvgSjEpHeDMTaDhsGQAP2N7RdZU+2vbRfM/hKz4wIwuBMlJzdsir x6oIyIFTOhXHWuf8sd7s4mhlB2m+yTJ55vSyFgogoTHwwMusPy+X+ie7MogSZFTHtlSe 8FmA== X-Forwarded-Encrypted: i=1; AJvYcCUhRZWzt80MSXTY5W63TqygWfoo2nFvIPsbH8BWC72x/pNvVshadQ84X4/rqOMKlLJ/gNM/bQFFb7lUj+bEPff+qqRmtWU4EiKce8Kw X-Gm-Message-State: AOJu0YyYlKqaAmq8Iz3btTzwHOnU0sSt23GKKgovQp2Mbio2ze6fkMCC iYzLH/tC0MVG8u88xt5QCGUk2X2175/hWAysR7+aVIRZwPBOz7oV55VN29O9c9U= X-Received: by 2002:a50:cc9b:0:b0:572:637b:c7e1 with SMTP id q27-20020a50cc9b000000b00572637bc7e1mr1146508edi.21.1714633395016; Thu, 02 May 2024 00:03:15 -0700 (PDT) Received: from [172.20.10.10] ([213.233.85.172]) by smtp.gmail.com with ESMTPSA id d25-20020aa7ce19000000b00572a7127cb0sm182422edv.50.2024.05.02.00.03.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 May 2024 00:03:13 -0700 (PDT) Message-ID: Date: Thu, 2 May 2024 08:03:10 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] clk: samsung: gs101: mark some apm UASC and XIU clocks critical To: =?UTF-8?Q?Andr=C3=A9_Draszik?= , Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Michael Turquette , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Will McVicker , kernel-team@android.com References: <20240430-gs101-apm-clocks-v1-1-b2e2335e84f5@linaro.org> Content-Language: en-US From: Tudor Ambarus In-Reply-To: <20240430-gs101-apm-clocks-v1-1-b2e2335e84f5@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 4/30/24 10:54, André Draszik wrote: > The system hangs when any of these clocks are turned off. > > With the introduction of pinctrl clock support [1], the approach taken > in this clock driver for the APM clocks to rely solely on the > clk_ignore_unused kernel command line option does not work anymore and > the system hangs during boot. > > gout_apm_func is a parent clock to the clocks that are going to be > handled by the pinctrl driver [2], namely > gout_apm_apbif_gpio_alive_pclk and gout_apm_apbif_gpio_far_alive_pclk. > It also is the parent to the clocks marked as critical in this commit > here (and some others that aren't relevant for this commit)). This > means that once the pinctrl driver decides to turn off clocks, the > clock framework will subsequently turn off parent clocks of those > pinctrl clocks if they have no (apparent) user. Since gout_apm_func is > the parent, and since no drivers are hooked up to it or any of its > other children, gout_apm_func will be turned off. This will cause the > system to hang, as the clocks marked as critical in this commit stop > having an input. > > We might have to add a driver for these clocks, but in the meantime > let's just ensure they stay on even if siblings are turned off. It's sane, yes. > > For the avoidance of doubt: This commit doesn't mean that we can boot > with clk_ignore_unused. > s/with/without. Because there are still other clocks that are not yet handled/marked as critical where needed. There's still work to do. With the typo addressed: Reviewed-by: Tudor Ambarus