Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp542708pxb; Tue, 9 Feb 2021 06:50:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqEBSn6EwxOkJhy3iTgCJRr+k75k89zRcPA94kJKqLm2vprPVlWGXl3w9kScKe9xwrOSgL X-Received: by 2002:a17:906:408b:: with SMTP id u11mr22027177ejj.299.1612882251187; Tue, 09 Feb 2021 06:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612882251; cv=none; d=google.com; s=arc-20160816; b=eWFw9of1q4zRUPuQAlcPCUHnxp6gRhv3JL1oi7+pb5vI5CMQEpF97/N9qT2cmKx8kp hKzC8I4H5tGqK+jUtxVGP0ZYGRU/z3PBYk6VdO1KZb88uNk0MjqZ1tmNH9BOZxSIcw1d lyhMauQArNm2Gi67g6TnxGx0lpodEQEnJ2He2e2503VQh18siX/j7zOP5Gu4ttOCOjPA qa9u2Y0W3R9WjOSkb4iIlWJEwInJ5hsksvHJU4/sFkM3cdEg7OhTHYb+jSb+xacFaYfR eURLkHuVGB4sYkoY0LZXXhIlCMVzFIOyM4DHnRgZs+z10A9XmMx3Rmi2c5Iw8c2IedDP 1Z5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=aZ47mrvH1ocmVZ2F8YZ32Kb4MwJBC4DKuGEK7xB42as=; b=IirjpyJkrNyzdhfu79e+AMqi5C2xn8N8um2TxILdkHSufdDIdrBuI3boFriY8i41fW KxTa8fKXNMdnVeoK0ogPYP/VUnIKYyMGVl4KgjnYQvLmOIxQV5ZhIKIunm1ca9fUteg6 zSF/FSFSOvu5Q/oDp9ykfwfzk2YiWfXFwhPImQZGp3pCUfFdniCQyVUbSF5+xxsRWQzc LIByIuqRdIkL5PSg+enu3wS/hPSmiLeW9Tr+VohAk9i+v9hM/GL1F4OquaTSRPcSJkob a7Qezb019WnNIsBFe4OvIt4RAlCI2pZASmow7befW9OWWIYqVtc9021kgtNAShNCAoF0 FNgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tfqnO+my; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si14956006edj.330.2021.02.09.06.50.26; Tue, 09 Feb 2021 06:50:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tfqnO+my; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232140AbhBIOqz (ORCPT + 99 others); Tue, 9 Feb 2021 09:46:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:39958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbhBIOqw (ORCPT ); Tue, 9 Feb 2021 09:46:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4CDBB64EA6; Tue, 9 Feb 2021 14:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612881971; bh=4Khf3jf8NRBguYJQd4Zc23JbAoBPvE26k4AHm6gfAG0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=tfqnO+myZB8yGpVwF6eslagnVOOyx/sOF3oklhELMwZoV8pnflECBlZt9e/ID4fA4 urskZC+3joYri7bFpHyuxB0VbRwZfZqzs4f/ULh4OG3mRjBLcEYiOZiHOSLtBd2LL3 mLVXDYX3VNOJ1xb84yB1ut86GbAuMw+ccMry+QIA3Kls7OZLsvL8sw9DXg2X/RHPBl Wa6N7rdaSdGyu9N8W5oDpYRKtRqeJNsu4xxmCbwsoUlsB4L85pPQHamn1HNGihFXgl SffSOrXQJa8isDzPFn/L6hHczow1gzNN0+GlkiCkQiBqw8AAaOD/0U2cOm31EkNjX3 p0HhEpgxCgv2g== Subject: Re: [PATCH v3] clk: exynos7: Keep aclk_fsys1_200 enabled To: Stephen Boyd , pawel.mikolaj.chmiel@gmail.com, mturquette@baylibre.com Cc: kgene@kernel.org, krzk@kernel.org, linux-samsung-soc@vger.kernel.org, tomasz.figa@gmail.com, linux-kernel@vger.kernel.org, cw00.choi@samsung.com, s.nawrocki@samsung.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20210131170428.3290-1-pawel.mikolaj.chmiel@gmail.com> <161285690197.418021.15554726449883492168@swboyd.mtv.corp.google.com> From: Sylwester Nawrocki Message-ID: Date: Tue, 9 Feb 2021 15:46:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <161285690197.418021.15554726449883492168@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.02.2021 08:48, Stephen Boyd wrote: > Quoting (2021-01-31 09:04:28) >> This clock must be always enabled to allow access to any registers in >> fsys1 CMU. Until proper solution based on runtime PM is applied >> (similar to what was done for Exynos5433), fix this by calling >> clk_prepare_enable() directly from clock provider driver. >> >> It was observed on Samsung Galaxy S6 device (based on Exynos7420), where >> UFS module is probed before pmic used to power that device. >> In this case defer probe was happening and that clock was disabled by >> UFS driver, causing whole boot to hang on next CMU access. >> > > Does this need a Fixes tag? That would be Fixes: 753195a749a6 ("clk: samsung: exynos7: Correct CMU_FSYS1 clocks names") i.e. commit that introduced definition of the clock. But the fix cannot be backported that far as build fails with an error: drivers/clk/samsung/clk-exynos7.c: In function ‘exynos7_clk_top1_init’: drivers/clk/samsung/clk-exynos7.c:554:21: error: ‘struct clk_onecell_data’ has no member named ‘hws’ 554 | hws = ctx->clk_data.hws; It could only by backported up to: ecb1f1f7311f ("clk: samsung: Convert common drivers to the new clk_hw API") We need a different patch to fix it properly in stable kernels. And dts for board this bugfix patch was prepared is not upstream yet.