Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp205396ybt; Thu, 9 Jul 2020 20:05:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp5SkqgutFmy9l4zcIRmzXo0VHFleZRTHNFSnFLHpGsTYbkglmTYBgMTbxwqi+Zcwa6lCV X-Received: by 2002:a05:6402:22d5:: with SMTP id dm21mr50246033edb.26.1594350345954; Thu, 09 Jul 2020 20:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594350345; cv=none; d=google.com; s=arc-20160816; b=RjoMIBr2ZoXkexpQ7Kb/1Kp+VXI5XUhilvwDA6/MC/27i3+h4id2PkAbYsbX6j/bU0 fIFdXiJfksHeMkWG2xLhgnDIYrc3zOJPbgYAg8szK7iQY6nyYUG6wLTLRN6m9gnLM+5v Gz3o0Ae2XuQ8iXbplyNyn6kAKibNzkFP44u4aoGSsejAtBfZ3r/lUG1ncze5tQjbRbvL lJliv4e9M93NLRvjhPb1WPy+2AnhDuqgoMt9uOaKethC0pv0x9c73lXoSYFcsroAxRNj dQwcPCInD1tVHoeus7S2gi7rYKn4MSVldzWiYMMtppc4LUFdX1SWmrCcB8FY/WQtsiIt Lk8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YLfw68r/hxoh0NgCLBxSxGfsf8FdyOcJYnFgZuru9c8=; b=R3tBYTKBZ4T2ydRBP+OS09NAUNbKhbq8hc+lcPGX13bIkuvKLcRB/AdH5Al/qrom6X m0kagq8lM9iDFN/Jpw6lLwCa2PeSy4twM2wBofxdLHCqamCYKCF9sxIpC0Log24CsbIz fKp+L5P76FMgSWwm7LeCkLhhLgYeRqd0F6KHiBihYlh0i1U9ehHP5MDCSJ2xYEq143ot R1WaoQxu1dpHNPxns8dfTvJ3LQsJcj26vrdhiRdaaPWk8QHZCtcTWYVEYPX1ZLTCymI/ 3saHuzCoHDDvSHaGOYhd7Avvrl5FL2tMmtoijVtks6S9CIuXLpn6aJn2HIBHoOab+vfX 88vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=Z0lNoGhG; 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 bu2si3632952edb.423.2020.07.09.20.05.22; Thu, 09 Jul 2020 20:05:45 -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=@jms.id.au header.s=google header.b=Z0lNoGhG; 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 S1726840AbgGJDER (ORCPT + 99 others); Thu, 9 Jul 2020 23:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgGJDEQ (ORCPT ); Thu, 9 Jul 2020 23:04:16 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37299C08C5CE; Thu, 9 Jul 2020 20:04:16 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id dm19so3414451edb.13; Thu, 09 Jul 2020 20:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YLfw68r/hxoh0NgCLBxSxGfsf8FdyOcJYnFgZuru9c8=; b=Z0lNoGhGxomlXESnJmJIj3kaLlNfCpfGBY6uILkYPuZZ9qub3uS3pGM34slmHTbaLj +0gus1ZS50pj/Rg3hgjpyR5wff9NX1Ufq6Uu8ucnJW3va9mS5yhDd4NyuQZPyzZSAKhH PneheiBTt10S8gJdhP0qMjFUgIW6DvjkkgEVk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YLfw68r/hxoh0NgCLBxSxGfsf8FdyOcJYnFgZuru9c8=; b=rRf8GI/aASv6dUGTACnZrA9xf/EJ5QviiLNb7y5jvN+RHpQ+Gr+xraJfB5IZV8/CW1 y++ZqnTmiTwftTGmv+Y4/LYE0LQdgny0ZiK7j0lc1UJTO7otkBu/XSkSV8e5eEbegAnX 1Kg2JdtKuvoM2bDmEYg4PG4rfwtjfLPtSayjXyyQrDDx1SnlfrfQGrSmmVEuQa6Mks3J /+/De0g4WxEDNPkuhJFLMl4XbQgZIK6FvLdhTUH70J5VD2SanRZVrcblMVEvZLn0E8xS psRmFmSITJe4PbyNYnpG2tUsUL9xafrgO7jPgVlF2y5elkkXizpDpE+1iTNK2gcqA7OK IDtw== X-Gm-Message-State: AOAM531mSthAHS4VKPtD3lz1+o0R4xuVv5ojcohvp6+6BzRT2lToDrS7 vwrVFzBVsgnSlsX8QzkrYRcteF3FOf6TEUMAERs= X-Received: by 2002:a05:6402:202e:: with SMTP id ay14mr75165877edb.233.1594350254944; Thu, 09 Jul 2020 20:04:14 -0700 (PDT) MIME-Version: 1.0 References: <20200709195706.12741-1-eajames@linux.ibm.com> <20200709195706.12741-3-eajames@linux.ibm.com> <4acad452-33c7-4fb2-ba90-19a824558b94@www.fastmail.com> In-Reply-To: <4acad452-33c7-4fb2-ba90-19a824558b94@www.fastmail.com> From: Joel Stanley Date: Fri, 10 Jul 2020 03:04:03 +0000 Message-ID: Subject: Re: [PATCH 2/2] mmc: sdhci-of-aspeed: Fix clock divider calculation To: Andrew Jeffery Cc: Eddie James , linux-clk@vger.kernel.org, Linux Kernel Mailing List , linux-aspeed , linux-mmc , Ulf Hansson , Adrian Hunter , Stephen Boyd , Michael Turquette Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Jul 2020 at 01:14, Andrew Jeffery wrote: > > > > On Fri, 10 Jul 2020, at 05:27, Eddie James wrote: > > When calculating the clock divider, start dividing at 2 instead of 1. > > The divider is divided by two at the end of the calculation, so starting > > at 1 may result in a divider of 0, which shouldn't happen. > > > > Signed-off-by: Eddie James > > Reviewed-by: Andrew Jeffery Acked-by: Joel Stanley Fixes: d3d04f6c330a ("clk: Add support for AST2600 SoC") Stephen, I think this should go to stable too along with 1/2. Cheers, Joel