Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1798553pxb; Mon, 11 Oct 2021 13:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHEeQCsphzHnYjS83Nyz9DyMQ/jfmzRUTPtBcd68s6dWw11LeHc4dbGK6kQgEPGQHD7qZ5 X-Received: by 2002:a50:fc17:: with SMTP id i23mr15595074edr.213.1633983821062; Mon, 11 Oct 2021 13:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633983821; cv=none; d=google.com; s=arc-20160816; b=ZNDgIS56dYC/NzX7n4IRNTFEfgR1XrBA8zN8UIeAIOZIU27UuXejYL/SNEVBmMAcEQ Hc8D4HfHlBEgwNcSP5zw/kbZTTgeh526Wl8PWUXdLTxAv+856fvk4paVdhDMoreJOpKf BoxBCbNxn2Ewcy76upp8MTVzgvkx+oo8DlhVQ+2Rqw5+5B0Ggb3tqA3McpDDAhsFL0ip QxHWFaYLqqLFOky19PDPVy++0RWxrS3YFsHIepT0tNkCH6EtDi4APDba2pmOtqxzyzkf f6DXJ46M+KNLFozJ5+XQP39N3ndS1xaAiM0cGHvukSBNIgqNRbZXAQl0ydPW5MpLEDKx +49Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=DYgsYugC5rviJWkq9MHtlEE0joSwfDCPOYVZ6RA9gOo=; b=SAhxkoG4DgEaf5QEJsNtv1cSwZeJGpaPVj7iXeRANZXxfhDEDI3Y7Br1EJQCf1lQHY ZWuUqoN2xf9XtM9UYV/yeRcnnOGsAFCqnDS37Xj7En8eLckS53gyDlvgfhJgF+REcLHR UGmdt5EQvg7agCBgEJ9dRdvQGgfDj7+5QX+vWPn09ij+9oVjqa+Luy6hHTuxwEayjVfa CFUhCmcIzWeYNbB5SbdhnQgrvChWx2MwaaWrw9Dd3q09V908t9kvyTD/8JzyhtzLkG38 hHxM5uKVotRWb+mEryb2I/VaUs+zLMey71HMpQQw/S2SzVWCbst3YYhkUNgIS9289uYe rqhw== ARC-Authentication-Results: i=1; mx.google.com; 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 g21si11810497edw.591.2021.10.11.13.23.18; Mon, 11 Oct 2021 13:23:41 -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; 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 S234927AbhJKUVS (ORCPT + 99 others); Mon, 11 Oct 2021 16:21:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231926AbhJKUVR (ORCPT ); Mon, 11 Oct 2021 16:21:17 -0400 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [IPv6:2001:4b7a:2000:18::164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 092F0C061570; Mon, 11 Oct 2021 13:19:17 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id E0E4B1F41F; Mon, 11 Oct 2021 22:19:14 +0200 (CEST) Subject: Re: [PATCH v2] drm/msm/dsi: Use division result from div_u64_rem in 7nm and 14nm PLL To: Marijn Suijten , phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Konrad Dybcio , Martin Botka , Jami Kettunen , Pavel Dubrova , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Dmitry Baryshkov , Abhinav Kumar , Stephen Boyd , Jonathan Marek , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20211011201642.167700-1-marijn.suijten@somainline.org> From: AngeloGioacchino Del Regno Message-ID: Date: Mon, 11 Oct 2021 22:19:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211011201642.167700-1-marijn.suijten@somainline.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > div_u64_rem provides the result of the division and additionally the > remainder; don't use this function to solely calculate the remainder > while calculating the division again with div_u64. > > A similar improvement was applied earlier to the 10nm pll in > 5c191fef4ce2 ("drm/msm/dsi_pll_10nm: Fix dividing the same numbers > twice"). > > Signed-off-by: Marijn Suijten > --- > > Changes in v2: > - Corrected two typos in the first commit-message sentence. > Reviewed-By: AngeloGioacchino Del Regno