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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E35A9C433F5 for ; Thu, 30 Sep 2021 04:11:16 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 61AA46187F for ; Thu, 30 Sep 2021 04:11:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 61AA46187F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1016C8202C; Thu, 30 Sep 2021 06:10:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="bcseNTBR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 36A9A80644; Thu, 30 Sep 2021 06:09:17 +0200 (CEST) Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3E51E80EFB for ; Thu, 30 Sep 2021 06:09:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x933.google.com with SMTP id 76so999080uau.5 for ; Wed, 29 Sep 2021 21:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yYU6OhQXjSJ/YIGeykHwOHcILcZcQvG4LT8A0giCbS0=; b=bcseNTBRykrfPdEFHCXvtPJYQ/PhrRxrpISxfbFI8KFl6Sork2r7nn+hjzrJRN/h5o 0Xar9lzGCEmCxk3PvGHN6aoc7aeHbcV5LOyw0k0nX6Wgicr4IXmU1AQVGqBj3YzAEwsI +zAl54ZII7LdCUdFN7MvWeJoq9saadCtbL924= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yYU6OhQXjSJ/YIGeykHwOHcILcZcQvG4LT8A0giCbS0=; b=NTXyw3bYa47V84VAV/APoXssyIieI5X+GYgMFfvQSzlp4lTkLIyryWxcN6NcrUWvWQ vGkTpL6DC03SXCQoYcIXY4XIZi2HyHfZB1I9HGIPMAQp937j/5SsEdIa0EpyYQRfhm1/ Kvh3Ym+c5FcEJzFMNn+vBI2X4nf2ANCqS+EuX7GfSVhi0QrqaMe3l/QBlomht53EtXNS t24NDRvmCVhWtmkqSe0+HkKCS63yjtsAJxdTX1E+TuRlinbvHZ64RBLbP/oQsdyu+eQy hCSl+FvrHHuvFNSjVzsJvz+xCKpe7IonQaC7SlUvb6VeI2ND69uDyqqGSn/TaTOY5P+S z+GA== X-Gm-Message-State: AOAM530ce3mWHmc/1+gAHif/isYGTNA4eVRY20PGtkMY3qHqCgYHwAnI WTr5yUEc38XtPBlF7VXDBH+3Q+U15p5byL6V5JP+Vg== X-Google-Smtp-Source: ABdhPJzuEwr799i4GF0VcgEt2d/vSpu8q5kGgDzjxYd3195XuwamA/9cIouP2XWUH1N4jR13Fvkrr/577UrL7erz8KQ= X-Received: by 2002:ab0:5b89:: with SMTP id y9mr3641026uae.47.1632974942138; Wed, 29 Sep 2021 21:09:02 -0700 (PDT) MIME-Version: 1.0 References: <20210911172003.899301-1-seanga2@gmail.com> <20210911172003.899301-4-seanga2@gmail.com> In-Reply-To: <20210911172003.899301-4-seanga2@gmail.com> From: Simon Glass Date: Wed, 29 Sep 2021 22:08:50 -0600 Message-ID: Subject: Re: [PATCH v2 4/4] clk: k210: Try harder to get the best config To: Sean Anderson Cc: U-Boot Mailing List , Leo Liang , Bin Meng , Damien Le Moal , Lukasz Majewski Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Sat, 11 Sept 2021 at 11:20, Sean Anderson wrote: > > In some cases, the best config cannot be used because the VCO would be > out-of-spec. In these cases, we may need to try a worse combination of r/od > in order to find the best representable config. This also adds a few test > cases to catch this and other (possible) unlikely errors. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > drivers/clk/clk_kendryte.c | 24 ++++++++++++++++++++++++ > test/dm/k210_pll.c | 4 ++++ > 2 files changed, 28 insertions(+) Reviewed-by: Simon Glass