Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp442279rdh; Wed, 14 Feb 2024 01:13:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGoW9hd7fILibhnfWM5ZNLqMDyGJ29H6v92Kj23Nt6uesQMB3sNseCbxQD0FRCowkhdQqs2H1KeJdhqAbqEk+p4rvGFsOuKhVpbOOasg== X-Google-Smtp-Source: AGHT+IHJibGc8NubMBJmTKIFo6KGIZx5LsKilOpybkmPau1OV8OGXNhTPQd2xFQKRj+uAcACKWhh X-Received: by 2002:a17:906:1152:b0:a3c:a15c:407d with SMTP id i18-20020a170906115200b00a3ca15c407dmr1307247eja.72.1707902022745; Wed, 14 Feb 2024 01:13:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707902022; cv=pass; d=google.com; s=arc-20160816; b=vTtmPb0P6WGJeg8dwec2Y4KqlZ2EI/tMXzujsREBW+HB0dikOe+bAXoxrYt/tpAppT lMAfGI934tP80V0xSCsKfkXQSha/Nhs5oq6aMsrBh+SwgVsS3wba5UxmdCDDZcq+yvYu XTR4NENUkr5uaIzcp7DQX/Dzhox8chwkQk8cN6UO2VCSNWKTMUAAb9JRgAtrlrNc4/LO Wh9RZoslP48InpD2ryExFaVTLg4x8YS0ZkZNDKbqrnfD97bfcLB3dSQx5DbDa3r6gXb0 kqmOLaYeR3n4BJ0n8aBwj7dFCXZwQUY1I/UE5nSKI4fdZtICKU9dBPfm6ggqAoz0zg6B 0Q+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=oAhUVK24LxHpiC5ZANvk/ehlC39I8yphWBKqRbAs4ns=; fh=5R8kekWYFf+lh20g4DNIobf6YPHzbmf4joqA94mseYc=; b=tarskwpgTQU4qZO2C8Xk9nVeEAMNXkiq9vttnkI3vem4Ri8emF1MAsgqgNa8fP/wIb p3UVnZNInaThBlBLeSpYUM6En3XOZqJFgeumaZ3Mhgg4w+MqfxiwbIVJzIdSSY/p48yL HrhualbV3JbInhXfOli4Ck87W9SuK8OAqMFb3dXlz0AF6nvkhMHLwjn2rJ8x0RiM+E4A kxY8LMZbhbFIW1PzfnokeIWxGTo8Er/acffunzqxL37elYhsXnyIMMhhAV6S1ay8H5W8 F1Wl8hGtsnFztTh5QJfZrUHr/ePrH1/DRSNJ8PPwzrXigSNAnhG35ummN3gtuAEmKypT LCTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=r3X8VTjj; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-64908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCXo+yYKEVP+QOe03Sbr89f4eAa6A0Z6ymPLLfx7qfuezugRUVC6IYGJDkdYsY634+Ef2FJnfE1mViaojLkgvtcGgwkL7eGEVEQhjuJ7AQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j5-20020a170906830500b00a385635ef7fsi2125569ejx.962.2024.02.14.01.13.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 01:13:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=r3X8VTjj; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-64908-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3BF151F2A176 for ; Wed, 14 Feb 2024 09:03:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B13511197; Wed, 14 Feb 2024 09:03:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="r3X8VTjj" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5184D79DF; Wed, 14 Feb 2024 09:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707901419; cv=none; b=WqMjEdmuMPcq1PpjAw8k75yavCIUOFfNkvk2fEf9I4vGcEQxnrJD9Gx5ndILIytuPbkur0197t/GVSzs2TqgwdA1OAD8Phbqki9Yz27a75K2cT3bV2icYDDg50nZ2sK38lTNkZEJR7d2yH+PmJPaCy1W9r1oP/YQDO+7hXR8MJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707901419; c=relaxed/simple; bh=E4Fif1h9LAA837algbblMC/VbtR1NPcDBXt52yRm3WQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sCo0RwT3Bi80h5ycmX2BwrcJhJxe1c/DBTtgw6mI+xniqpKBbCumHcXrnQR9OjRTFr+0wIv3P4YTrSy9UqNhYrL4PTid/NLvYUBKMXSqw7jw4KsDBV+C4d/VErhoPgWIxm1eG0U9DU9HLnlTRAB9hxTlTvw6byXs1V/qfDXET3g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=r3X8VTjj; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707901410; bh=E4Fif1h9LAA837algbblMC/VbtR1NPcDBXt52yRm3WQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=r3X8VTjjoFJUcBdiXZ0v6uttY6TAs5Xt4/Ya0lWRAaqEmQ3u9e1RmD2eNiZ4I4h6m yB3BhPiRh3G1sOWARcawu3l8fQp/URU71ShBah7Bw44g7bT6W9rgYQmEW+X/i9RhHS r/q2AJYbvhP21Zx4Ci8vc9labXo96H8JIiFcCezw5zrf02EaN1ChS+dcHaG+g6RM2z EWWpUuWsxYPGZ9lFUKo4aGZWS2evYlR+WjcZ6a8kCeiyyRYlBkUtm8RDtpzuQCTor8 7I3sd/byrRT5b/y98KLu0h5sjsofgI8wbGTcfMq33I6tzy8hPGGu4isOHSqkeydP6x axSIHwXWLwr8A== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id E01DA3782075; Wed, 14 Feb 2024 09:03:28 +0000 (UTC) Message-ID: Date: Wed, 14 Feb 2024 10:03:28 +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 v2 1/2] arm64: dts: mediatek: mt8186: Add missing clocks to ssusb power domains To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Matthias Brugger Cc: Chen-Yu Tsai , Eugen Hristev , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Allen-KH Cheng , kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20240213-mt8186-ssusb-domain-clk-fix-v2-0-1f981d35f3fd@collabora.com> <20240213-mt8186-ssusb-domain-clk-fix-v2-1-1f981d35f3fd@collabora.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20240213-mt8186-ssusb-domain-clk-fix-v2-1-1f981d35f3fd@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 13/02/24 16:02, NĂ­colas F. R. A. Prado ha scritto: > The ssusb power domains currently don't list any clocks, despite > depending on some, and thus rely on the bootloader leaving the required > clocks on in order to work. > > When booting with the upstream arm64 defconfig, the power domain > controller will defer probe until modules have loaded since it has an > indirect dependency on CONFIG_MTK_CMDQ, which is configured as a module. > However at the point where modules are loaded, unused clocks are also > disabled, causing the ssusb domains to fail to be enabled and > consequently the controller to fail probe: > > mtk-power-controller 10006000.syscon:power-controller: /soc/syscon@10006000/power-controller/power-domain@4: failed to power on domain: -110 > mtk-power-controller: probe of 10006000.syscon:power-controller failed with error -110 > > Add the missing clocks for the ssusb power domains so that they can > successfully probe without relying on the bootloader state. > > Fixes: d9e43c1e7a38 ("arm64: dts: mt8186: Add power domains controller") > Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno