From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37BC0C43334 for ; Thu, 30 Jun 2022 15:00:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232458AbiF3PAy (ORCPT ); Thu, 30 Jun 2022 11:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232475AbiF3PAy (ORCPT ); Thu, 30 Jun 2022 11:00:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 764AD1EC4D; Thu, 30 Jun 2022 08:00:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 12AF162342; Thu, 30 Jun 2022 15:00:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E581AC34115; Thu, 30 Jun 2022 15:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656601252; bh=GIN6H47G5ahaWWEBKBaLwqpkro/q6ysaDa2KPJG41Xk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YMIYHgTtSL/6hHAeUURt2DhbkRYiy8t5WG5ZPaoND2KXJnh4Am2WN9IcN6Aj6DQuL cTU+3D0fkBDxj1gi8nga8nda+mozbGX5j2TdARsKpd65g8RboDifsEqHKkp+0wZv9E opIwn4IEE/V4m36KLSkwBCNMZS9BDZXZ17vIcpZQ= Date: Thu, 30 Jun 2022 17:00:49 +0200 From: Greg KH To: Vijaya Krishna Nivarthi Cc: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, jirislaby@kernel.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, quic_msavaliy@quicinc.com, dianders@chromium.org, mka@chromium.org, swboyd@chromium.org Subject: Re: [V2] tty: serial: qcom-geni-serial: Fix get_clk_div_rate() which otherwise could return a sub-optimal clock rate. Message-ID: References: <1656496841-5853-1-git-send-email-quic_vnivarth@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1656496841-5853-1-git-send-email-quic_vnivarth@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Wed, Jun 29, 2022 at 03:30:41PM +0530, Vijaya Krishna Nivarthi wrote: > In the logic around call to clk_round_rate(), for some corner conditions, > get_clk_div_rate() could return an sub-optimal clock rate. Also, if an > exact clock rate was not found lowest clock was being returned. > > Search for suitable clock rate in 2 steps > a) exact match or within 2% tolerance > b) within 5% tolerance > This also takes care of corner conditions. > > Reported-by: kernel test robot Did the test robot really report the original issue, or just the v2 change? thanks, greg k-h