Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2931801ybb; Mon, 30 Mar 2020 16:21:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsXlnU+CeDWS9AkmUUTzS9JEdJhQuLvcFU5r9n+vTV1Jp9oqy0RiIupmhYRtsndKESDJ0YX X-Received: by 2002:aca:b743:: with SMTP id h64mr347792oif.176.1585610484348; Mon, 30 Mar 2020 16:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585610484; cv=none; d=google.com; s=arc-20160816; b=BSFjlPsxkn0x4V8PoH3n5UVSucPAoQHHHTbUFRfJHFo2whPBO+NFLplxOX8yBFH2xY 4nI3ZXcQPgPmYtXtIk+C+w8ZEPpxBQZMeWRsixUszN1PkIg5y7bFFgcvW0jioFq+RV/l 6rqdNd+XNfxffPUGly2tO/KO9rFdLASxqTtJ1gk/eafmcc5b3yQtT8jaBOSZkj9pw819 EzdzWuqi9dk44BJg/iizNUylrC4EZ/vgrcjGFfWCGgbJeionMq646kXVGBR9ckFML7gC vygbitTwfUthAIauLBivQHdsMjksBRGKFv/KaXqZFb9o+FJIEAewDoQ9ddO8dD6mw/f1 OdLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bE6xbA64+4/+ypbO6EikqEyAaX3P7FX1UfeFwnlD2zU=; b=Pv98mPk/hJ9pBSesuFl/uTBIO/sQYwJHhw3zrtK+KTlc6GI83fXfdfwxZ8O5EOJW+0 4PRm2LL/S/Gpr1zcK1HfputJjaa6GrcqVE2q6gbAvyhGX6r+kq+wDJQoI0Re3F8KpNLS weshpTalnyr7K5wmXbACkQZjSmZ8tZQMQJsZAHiN3bBBjtvS0VWEggar8bk/o6V0qCpK zgANAL19y52hSB8Rczxl3RxM6zvap6iJ+4h8SnIYlznxO6hrPIagLMm9uQx6pLFHjv/F zWjlExXZn+cAMmj7o1fz3EVsjWai9t6ods7Mg7xGOwn3fZc1PWtwYoLfsweg9S/IFXdv T5pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QBoARub8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si6603575oif.204.2020.03.30.16.21.12; Mon, 30 Mar 2020 16:21:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QBoARub8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729825AbgC3XUL (ORCPT + 99 others); Mon, 30 Mar 2020 19:20:11 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38181 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728880AbgC3XUK (ORCPT ); Mon, 30 Mar 2020 19:20:10 -0400 Received: by mail-lj1-f194.google.com with SMTP id w1so19985406ljh.5; Mon, 30 Mar 2020 16:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bE6xbA64+4/+ypbO6EikqEyAaX3P7FX1UfeFwnlD2zU=; b=QBoARub8KAADOXu16KRfIrYxWSYJPJxny8zQJqUx5TWyKDx7Rl5lqGkpZ7fRmRQ5k2 u2L/X2gOIW3uHGoq2AG/Vzs+RCdQ1o0VDP4RBd8b7oIe9JDj1Sa4ZSSqHzHQVMbn9zVn IJgsbDLH2TI/CQ7V8lqcD1WBqiEuqaNsXnmMgHlMnUqQrhcepiigtN3LqM9ZfoniLc+B dL/RsqQ3wBv1nbCl2L51IkumLx57cPNEHssWxhTayVBVLT0DRPHFPxDbGOoXbZy0mYJD wZ+2fSmBNUCGyQ832yeJ8leecDzKOj/zgWg1fe8AF6Z9xSxZXgwW80ZrwXgZi+GTwzpj m44Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bE6xbA64+4/+ypbO6EikqEyAaX3P7FX1UfeFwnlD2zU=; b=EyAcuMCzlK3WAMBfeo+3bu9Yc/OD0/dlbt/jaUa0vVurOU+ZVfvHY5awP/JyTp0qYa AY0ZDyP93Ml3ylInE8jI6rxzuhd41WiQh+R+TTH9I9dYzAh58Cm/loQ8Ebb03RBuwV2y sAvLtZRKzufB+ZH+PZuOHM8W1yb2n9Jbp51/bV4com9wdXL2ycBi/iMBxcVfQG3W1GWQ MJhn4ryLBYhbzXyZfngAwLvD2wHHrWU6Cj/is3hBeF07NwR9Fm4moVhh2ROmZp7EBzU0 up1GJdsDagG3yycbedLNGleFfn84tzUAJqONHfJcii9qMj0iEkFDRtSDQwiZjiE/8O9x 5gDw== X-Gm-Message-State: AGi0PuZOAtVynqY0MsSB9G72D5Wb2Zd2zaNOXBnMMrwzPY57qNc5TT1C x9TKjJZDLctad5jSVP3jfLw= X-Received: by 2002:a2e:81cc:: with SMTP id s12mr8513672ljg.90.1585610406263; Mon, 30 Mar 2020 16:20:06 -0700 (PDT) Received: from localhost.localdomain (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.gmail.com with ESMTPSA id h3sm8773187lfk.30.2020.03.30.16.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 16:20:05 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Jonathan Hunter , Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/5] NVIDIA Tegra devfreq drivers improvements Date: Tue, 31 Mar 2020 02:16:12 +0300 Message-Id: <20200330231617.17079-1-digetx@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series contains minor patches that I was going to send out a month or two ago, but completely forgot about. More importantly, it also contains new patches that are needed in order to address an upcoming problem in regards to adding interconnect API support for NVIDIA Tegra [1]. [1] https://patchwork.ozlabs.org/project/linux-tegra/list/?series=167480 The problem lies in clk_round_rate(), which rounds clock rate based on the min/max clk limits imposed by active clk users. This is not suitable for the Tegra devfreq drivers because they use clk_round_rate() for building OPP table, and thus, nothing should limit the clk rate, otherwise the OPP table values are erroneously getting limited to the clk's limits. Dmitry Osipenko (5): PM / devfreq: tegra: Add Dmitry as a maintainer clk: Introduce clk_round_rate_unboundly() PM / devfreq: tegra20: Use clk_round_rate_unboundly() PM / devfreq: tegra30: Use clk_round_rate_unboundly() PM / devfreq: tegra30: Make CPUFreq notifier to take into account boosting MAINTAINERS | 9 ++++++ drivers/clk/clk.c | 49 ++++++++++++++++++++++++------- drivers/devfreq/tegra20-devfreq.c | 4 +-- drivers/devfreq/tegra30-devfreq.c | 6 ++-- include/linux/clk.h | 18 ++++++++++++ 5 files changed, 70 insertions(+), 16 deletions(-) -- 2.25.1