Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp59045pxb; Fri, 15 Oct 2021 00:10:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCiLjX8VViP7es89ARnYXBYZTejUHk+kenolaindYlWSv4uJFh9lLi9cGQ+eQqeRd6D0sW X-Received: by 2002:a63:7543:: with SMTP id f3mr7907595pgn.449.1634281836908; Fri, 15 Oct 2021 00:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634281836; cv=none; d=google.com; s=arc-20160816; b=U/zJXIpJBNth6em+Ro9SlnPP8pIFKSgXCzwobghK9PKYlYTkD83uVcsG2/h3ibcJgK nKvM5LFIRg0O6cat+bTVJ9uTdwyXVHvrN4gc6mJKSFgYpQGnjAtiJNDDfBZ/YV8hGb9J xHtylKTtOuusKT34C5+mITGTnR2elEGW1sRzP3GY7xZQGSyWeq1kRqpvMnVPtBBWN07q iSRD2P5FLw2n6TLPVF8TaALOQcfioUYmKBWnt36y4DiFVm7xPc1FnfR9cKwdqU0lvZGi TNQ9wPsxmFd9EyM5kZqpn+a9N4T38dXi9bydxhG6S3Jqo0iYmXj/5pq09OmefMAfmQxU he2w== 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=w2M0Nc1Fjh2mq6HKMawsLh1v5jA6O1TVewN7UbNKbrg=; b=qTGqzHC/w1OkPEneWWkk15/8fRAzwlp6yC7164YqM/QRbjrTcjnDgJUZbMEZxD1+uv CoFUaqyETFSdrHSczvByqZi7tcS3MXQ0QiU1G90aEt4r8PpCCcFK2U3hhnEp5RykXTFM TtnSHiJskNjNlQWFz9BPwCekGMm3KMrA9X7ywVyc8QgXE8d/ljO9LkgVxrwPZPn0XzsZ 8KEzLHQXdjoDGpEG9HHXHapYN8bIxeAvGOYxU6IXdM0oDI+IW5gUsMuy9Qoyi2E7j/uC wRncgbe1Y0g9PBp7R84DinO1qOgo/ehJcUMcm95VuuAAL9LYDVa27lvenijzofeKIlmq Y2iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ncL12SOg; 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 t63si6699859pgd.638.2021.10.15.00.10.23; Fri, 15 Oct 2021 00:10:36 -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=ncL12SOg; 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 S234225AbhJNWyY (ORCPT + 99 others); Thu, 14 Oct 2021 18:54:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:39176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234020AbhJNWyW (ORCPT ); Thu, 14 Oct 2021 18:54:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D499C60FC3; Thu, 14 Oct 2021 22:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634251936; bh=w2M0Nc1Fjh2mq6HKMawsLh1v5jA6O1TVewN7UbNKbrg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=ncL12SOg75ZJma1Wyx0P+2DH9LdHfmKm2ltnXOCFI6NnPvnEAClmBbmkUnockx5SW LeFbb4aD795XfdudLTU21VTkYuJYi/ltcPLEBK9OGFeoO+fdtgzPWgxj51DM92c6Rb HjgL+5SY7w1icSduUKktIX2wjKhwmK0mqdMLS/hnXRrwrotHsXwVdkFm2lDXOCT8XH IX2YRdyGPolToO2MEpNDDDaO7RwWd0hwFhH9G+2USJQKeIIb5GA4MOT7xfQzwvmjtJ WNHn7ZRIzghkvvH+ck/Cq+VbQHubgukrJx95cr4fN46LyUnLLdZ2N10p4wptQ1KtGS CDMbzw69glOiQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20210702225145.2643303-1-martin.blumenstingl@googlemail.com> <20210702225145.2643303-2-martin.blumenstingl@googlemail.com> <4eb964ac-4fff-b59d-2660-2f84d8af5901@gmail.com> Subject: Re: [PATCH v1 1/6] clk: divider: Implement and wire up .determine_rate by default From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko =?utf-8?q?St=C3=BCbner?= , linux-rockchip@lists.infradead.org To: Alex Bee , Martin Blumenstingl Date: Thu, 14 Oct 2021 15:52:15 -0700 Message-ID: <163425193558.1688384.15520943968787313145@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Martin Blumenstingl (2021-10-14 14:34:54) > On Thu, Oct 14, 2021 at 2:11 PM Martin Blumenstingl > wrote: > [...] > > > Reverting this commit makes it work again: Unless there is a quick and > > > obvious fix for that, I guess this should be done for 5.15 - even if = the > > > real issue is somewhere else. > > Reverting this patch is fine from the Amlogic SoC point of view. > > The main goal was to clean up / improve the CCF code. > > Nothing (that I am aware of) is going to break in Amlogic land if we > > revert this. > Unfortunately only now I realized that reverting this patch would also > require reverting the other five patches in this series (since they > depend on this one). > For this reason I propose changing the order of the checks in > clk-composite.c - see the attached patch (which I can send as a proper > one once agreed that this is the way to go forward) >=20 > Off-list Alex also suggested that I should use rate_ops.determine_rate > if available. > While I agree that this makes sense in general my plan is to do this > in a follow-up patch. > Changing the order of the conditions is needed anyways and it *should* > fix the issue reported here (but I have no way of testing that > unfortunately). >=20 > Alex, it would be great if you (or someone with Rockchip boards) could > test the attached patch and let me know if it fixes the reported > problem. >=20 I can't read your attached patch. Please send it inline.