Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp778367ybz; Wed, 15 Apr 2020 18:51:15 -0700 (PDT) X-Google-Smtp-Source: APiQypL9hMxP5qBMPK3MIXM2zyvivt1o/ZXid1506YMG6ySy6GsEhful0B2VsVhtPQVp0+CD+TL9 X-Received: by 2002:aa7:c401:: with SMTP id j1mr59886edq.31.1587001875756; Wed, 15 Apr 2020 18:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587001875; cv=none; d=google.com; s=arc-20160816; b=vP605B0jMLfKI6Z/Xn1Uej82t0q+Iqa+3ekENMT3rG+o8bySf7ibbnTxReUoPfPZOx pKWtYiqkE2EsEAtiucAjOF9ymDxbLkL/1ObctasIBE1PzoQqIfG6DC2xC2WuZMjS53kF adfOQgxQxKAuoVMKCIcp0TsrtMrnOFQ9NiYgS0O3ROhwXZS3ZJ4NxB0gR09jYsd1YHZ3 UJxfJJuWBWksCvWU7+lzUifbGjkLpUhzPl876jX2SYlM1nfUzGEiIkxUrfW0fpIM3Rb8 JfpXNnNmZgoR32fD8MNloidQUiyfmq493xyIlGtJ4/8zYCKk4Iz2bT0O7sC1FwJju7HI niLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gbh13r31HQSsUrH1K7gvCqmo8MbbhB2qxFf3M2Th8Ns=; b=xy4JTbiKzaAJmVuChcCc7xr+w21jT79xNiuMX9OSet7Hh3qFGWTJAYNwU1mzCqnWXF wwKElEuUIO1sGiyAQMbxBHK9Es7hBlfYyK5Z1DKHfWM1k3lM6y37O7hfKmJFTYYkXoU/ tqmRoXH8RuAN2Ysh+GhLJ0b3/fjLLpLQtXKje0dSqJv3vJL9DxgdDHPN6phuNsMxwFlm 8tgoKM0Xc86aac3uZRBzBGDQBH0T2/m1bfID+YrsZ6B8x/4/9TQUh8EN2/qzEQVYXpMi 15Y7JKKX3tCsMxjUr1RTJaJEUSp71ycGW5/a9kv8DbNFsfyDkXrWs22lUiPm/JEgD8VL fxGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=LkXq7rUH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc1si4261027edb.446.2020.04.15.18.50.52; Wed, 15 Apr 2020 18:51:15 -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=@rere.qmqm.pl header.s=1 header.b=LkXq7rUH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410407AbgDOQpe (ORCPT + 99 others); Wed, 15 Apr 2020 12:45:34 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:15261 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404537AbgDOQpc (ORCPT ); Wed, 15 Apr 2020 12:45:32 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 492Ss61qB1zCQ; Wed, 15 Apr 2020 18:45:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1586969130; bh=kAIJPE2ZZL/Q6yulReDpgbbwC0zEf9C+u6NXWrMTpRc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LkXq7rUHGtnXk/ohqLXvs9ytSE/gzc73Boks+663ZixJN1dMGTSWWli0CiDzpkIKC X5CpCCp+xIv5b2JMM5WbyW6xmnTIOiEJlM7mx5yPE0UxlDT84AI/SiAWGjPk46HQXD rSl3QyaOnzD/YQG04ZoI4k8ap0ITw4LhM2OaxYrPWz387tgGcy0XTbYr+jBMgQDzrl csq+a2LG9WNH9gtIuOMU6YW9LTUDFksuXEDRweTzgAEUEjWZk2OrWVwExdfIDFiPVk PTWeULgOUbLGw6S5h5WjRLthT1aC0RovdQzMegHmSZIU0RPynZkPfGfFwLhJ9kKqBZ K9HAMBtPCxxnQ== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Wed, 15 Apr 2020 18:45:28 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Adrian Hunter Cc: Kevin Liu , Michal Simek , Suneel Garapati , Ulf Hansson , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: Re: [PATCH 5/7] mmc: sdhci: simplify clock frequency calculation Message-ID: <20200415164528.GE19897@qmqm.qmqm.pl> References: <1a7f7f0941314da66acda3c60f44b3d2417133e6.1585827904.git.mirq-linux@rere.qmqm.pl> <7967c035-52e3-1ce7-a82f-47d28a3cf484@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7967c035-52e3-1ce7-a82f-47d28a3cf484@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 04:54:33PM +0300, Adrian Hunter wrote: > On 2/04/20 2:54 pm, Micha? Miros?aw wrote: > > Make clock frequency calculations simpler by replacing loops > > with divide-and-clamp. > > I am sorry, but I am not really sure the simplification is worth the code > churn, risk of introducing new bugs, or validation effort. > > IMO, the loops, while perhaps inefficient, are not hard to understand. I guess this is a kind of religious subject. ;-) I tend to prefer shorter and less-branchy code. Best Regards, Micha? Miros?aw