Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3094023pxv; Sun, 27 Jun 2021 18:49:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGqpU/DRtxXIuhsmW3b+zNI9TdPyUx1M126w8RUwfv4DG8wt9SqqhzRHQHA1NUuYLL05uc X-Received: by 2002:a05:6638:1446:: with SMTP id l6mr20950298jad.14.1624844944099; Sun, 27 Jun 2021 18:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624844944; cv=none; d=google.com; s=arc-20160816; b=xrNJaFd/dCx0TEknogEojfujsdq6FAnc3Wq8KnZHI7xPnYk9ojdgVyFl2nbnNGKX3J lLCoQlxMDBEVeVIOvD1cBodH4HTC5WQuVplktj/ms76PEC/BkaQ7jL4Z8McOe79OrLX8 cmXCrOzVVq1OvP3F3o8LEYn4dpGe1fgp/tBZtPbDr8obhoy1Mw5od5ryJtpA2UAefNJZ QnRvlIu7VCflbpapiaLH7thFpiAc8GCgmn8DT4EhYlpPcbC1WCXkRtC2H1xyXJHIelV2 hiw0+enlLbNLASwmqZ+ruLxVsupc1TwJX06lvc7E6dhaHSlTnXdSbPxybq7H5M+LtCI6 750Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=oOQwZAp4X13qKwXS2lqN3TfEt0SPQHaSfx8Tobd9SkE=; b=if/QbytLhR21mvPV68zxko5smmkaiYvwct1WacdLpXi9yX9vOrlZzyhWJmViH1MhnX qPi83BXQJ+FCK9HtjtvFI78pWNwOTMQzf0Ho5LcRtpb5RqpOUUFkpu7uSBw3Y+ILtm0I 2Vz8dD/86e329nVJwm15r0erytGo2pq1M9PEohAsKhps2DeVzJM8EGVMgRIxXZXRcGiN rHfYMdo3j0vp9TzBYNxdCzAwhaxv+66S5nX9V1TPmGD9DwWRIGyD0bX7CFa63imOyuXI /tzieFQYvCEijS3fJ5EX+90pWjLbfkrHXPZmJx5yxS1tJ4x42rz4HQaYnKvlepABt6PW uO2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V8rlvp4j; 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 o22si7626852jat.17.2021.06.27.18.48.52; Sun, 27 Jun 2021 18:49:04 -0700 (PDT) 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=V8rlvp4j; 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 S231987AbhF1Btj (ORCPT + 99 others); Sun, 27 Jun 2021 21:49:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:43912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231678AbhF1Bti (ORCPT ); Sun, 27 Jun 2021 21:49:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CDC7461A1D; Mon, 28 Jun 2021 01:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624844833; bh=JoHbRaWN7yO4eVX+9Kbl23wQ66XUTTqvqMYKLX8Qfd4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=V8rlvp4jKEawRt+D0tAZhZoZOySwrVGxdtMa8lVFxM2uUrMCFoAfPsibOTfFh1avd tpdvlKM3N2Y+73E1tj31jhQ/fM2vQgVYyp7bt5iJfTDAS5ZEQjX1Dy+hifMFQoYnKC d/yHmSMUkz6jf9LzeiQAN3Sd9F4w2o0Gqba4Hsj2QKSs1PkEYx5RLUlx79oHoAJZx3 WVutgFVbzN7hcO+BOsWIyXT9g83wIhAa18hV8PJ4cipJqVgWcquDkUOR0NLOyMjiFA aAnqbleEn/ioy0ymXc1g8fUvXOLG6KajrnY2a9/bs3DG4GNSQytMXvucrLFfhNuFQ5 YID1zj+WOYmYg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <21c1abd19a7089b65a34852ac6513961be88cbe1.1623354574.git.cristian.ciocaltea@gmail.com> References: <21c1abd19a7089b65a34852ac6513961be88cbe1.1623354574.git.cristian.ciocaltea@gmail.com> Subject: Re: [PATCH v3 4/6] clk: actions: Fix AHPPREDIV-H-AHB clock chain on Owl S500 SoC From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org To: Andreas =?utf-8?q?F=C3=A4rber?= , Cristian Ciocaltea , Edgar Bernardi Righi , Manivannan Sadhasivam , Michael Turquette , Rob Herring Date: Sun, 27 Jun 2021 18:47:12 -0700 Message-ID: <162484483270.3259633.2045566523093940377@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Cristian Ciocaltea (2021-06-10 13:05:24) > There are a few issues with the setup of the Actions Semi Owl S500 SoC's > clock chain involving AHPPREDIV, H and AHB clocks: >=20 > * AHBPREDIV clock is defined as a muxer only, although it also acts as > a divider. > * H clock is using a wrong divider register offset > * AHB is defined as a multi-rate factor clock, but it is actually just > a fixed pass clock. >=20 > Let's provide the following fixes: >=20 > * Change AHBPREDIV clock to an ungated OWL_COMP_DIV definition. > * Use the correct register shift value in the OWL_DIVIDER definition > for H clock > * Drop the unneeded 'ahb_factor_table[]' and change AHB clock to an > ungated OWL_COMP_FIXED_FACTOR definition. >=20 > Fixes: ed6b4795ece4 ("clk: actions: Add clock driver for S500 SoC") > Signed-off-by: Cristian Ciocaltea > --- Applied to clk-next