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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9FB63C001DE for ; Sun, 6 Aug 2023 13:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LvB/xycGI5/OZbwW01/B4TxgUBxcE8f/4NPVZRUFSKo=; b=iBru1FXNgNHJXy 8mDQg3k3oTEwMvRMcbXdxqlas8o01LJLMsnL/mb3aujIaQuETHA5A6cSret1pr6PpmpqdwA42JcKa YzeBoAiXtX+fSh9XSCnR0Li7FsrGUZyLt1jMTZP68eNCmxPqWwYZThmcWAWlUbxVscyVurKsdNbUl ERPsXW1BZvrhmT/2L6QVEcCh3X65HxtGmT75bTmqP+yL/D8GX7/8jroOiVzg7LJiIvXcLoLuQ09PB /RMQ6zoFt6TBiC9pIXsB1eCcO6KMNPYh1baTZnAsq9I7HWZJ1L/KZa0PHZuraOctVrHBBTnQS7aIz 1vXoVHzAyI6pfZHEus+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qSdsg-00FSRl-2Y; Sun, 06 Aug 2023 13:33:14 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qSdse-00FSR5-1X for linux-arm-kernel@lists.infradead.org; Sun, 06 Aug 2023 13:33:13 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fe0d5f719dso6042618e87.2 for ; Sun, 06 Aug 2023 06:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691328789; x=1691933589; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hM7OnaKmFiiSy0YU2WCKkAldSyarebqNo/myAZ18qU8=; b=FJfZuaM4j80QUdDjysNJZOw02GVH0GcWm7lp/coj/KtptlBxP8a6GNNgV/5TKV4+SD CQfj/rNryEbF5GyZskXib6qk02JT5OFf3urcA+N7jSMniHQJu2WwOsabSTFd7XAlYQGG 9kOafQghRR6MtX1C8ni+Dn+oUSG10SMjR2gCh7yxx+zGkvtterCJ1PVQWsElaljWW/0Y KJe1jAN8hNkEBRx7owVUISMWPBF3zQmQ2xt5VOhjv+1DSkVSA00Uew14xnEmYHPBq/C2 tq441o40Tti1ERPTlmub34tuklk3MxWvMFQFITM7t3uCsT+EpFwEBEi4Rj8EyheUAAF0 +YAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691328789; x=1691933589; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hM7OnaKmFiiSy0YU2WCKkAldSyarebqNo/myAZ18qU8=; b=gAXt7ik775Oq1/WITJRJ3wy9i5Xt5hIS6hGqm5edxWOpzULzkvjiOG1AFy9MfoXuz7 ydxJBPV3SOct2BovD2eU46wqUWFo77FNbvhNmYLfjzEJbp+NVmiGWPL56COX6BWmfhzq S6+IwxAv3Yk5K7E3QOAL5hbu+pkrQ8ZWRKvq6s0wtTepnPMw2wU88dk1iHviDAmQ1NFo LVJfMISZr1NwuLylwONwQ7JWYVaCnLjU+9VxU4U9ClfeDLrvPHiKt9yC8r+ivrvg/cOv 785qo03jqi3cz7ObDR712R8FmNZ1j1F6kV89joivVwxwP0FZ0HI+e0ph6IPA/FNuFmVh 2GXw== X-Gm-Message-State: AOJu0Yyl7rAXQSzeEQcVfE5Blx8KNeFe3otMTpB4QlgDP6ft8s3ivnPL O6q/plILZHFOc2+8gs6nNak= X-Google-Smtp-Source: AGHT+IHpsJxV8MF78Dy5TgBPH8NmXIYmknmepVRE2sYKgeBkvcU+vR0WIy+JY0Vy32lTiWtBkDtPhA== X-Received: by 2002:a05:6512:311c:b0:4f6:3677:54e with SMTP id n28-20020a056512311c00b004f63677054emr3910959lfb.36.1691328789322; Sun, 06 Aug 2023 06:33:09 -0700 (PDT) Received: from jernej-laptop.localnet (82-149-1-233.dynamic.telemach.net. [82.149.1.233]) by smtp.gmail.com with ESMTPSA id t18-20020aa7d712000000b0051e0be09297sm3946253edq.53.2023.08.06.06.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Aug 2023 06:33:09 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , Michael Turquette , Stephen Boyd , Chen-Yu Tsai , Samuel Holland , Andre Przywara , Roman Beranek , Frank Oltmanns Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Frank Oltmanns Subject: Re: [PATCH v5 04/11] clk: sunxi-ng: Add feature to find closest rate Date: Sun, 06 Aug 2023 15:33:07 +0200 Message-ID: <5854308.MhkbZ0Pkbq@jernej-laptop> In-Reply-To: <20230806-pll-mipi_set_rate_parent-v5-4-db4f5ca33fc3@oltmanns.dev> References: <20230806-pll-mipi_set_rate_parent-v5-0-db4f5ca33fc3@oltmanns.dev> <20230806-pll-mipi_set_rate_parent-v5-4-db4f5ca33fc3@oltmanns.dev> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230806_063312_518974_11A6A354 X-CRM114-Status: GOOD ( 14.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dne nedelja, 06. avgust 2023 ob 15:06:49 CEST je Frank Oltmanns napisal(a): > The default behaviour of clocks in the sunxi-ng driver is to select a > clock rate that is closest to but less than the requested rate. > > Add the CCU_FEATURE_CLOSEST_RATE flag, which can be used to allow clocks > to find the closest rate instead. > > Acked-by: Maxime Ripard > Signed-off-by: Frank Oltmanns Acked-by: Jernej Skrabec Best regards, Jernej > --- > drivers/clk/sunxi-ng/ccu_common.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clk/sunxi-ng/ccu_common.h > b/drivers/clk/sunxi-ng/ccu_common.h index fbf16c6b896d..5ad219f041d5 100644 > --- a/drivers/clk/sunxi-ng/ccu_common.h > +++ b/drivers/clk/sunxi-ng/ccu_common.h > @@ -18,6 +18,7 @@ > #define CCU_FEATURE_MMC_TIMING_SWITCH BIT(6) > #define CCU_FEATURE_SIGMA_DELTA_MOD BIT(7) > #define CCU_FEATURE_KEY_FIELD BIT(8) > +#define CCU_FEATURE_CLOSEST_RATE BIT(9) > > /* MMC timing mode switch bit */ > #define CCU_MMC_NEW_TIMING_MODE BIT(30) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel