Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2097182pxj; Sun, 16 May 2021 14:22:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzba0j8xjwto7//tk5J1RdBAFGnp9UBOCixIH3aro1VXf44YEu+wJIzqPLKV+cVYzR7pCzI X-Received: by 2002:a17:906:11d3:: with SMTP id o19mr58417510eja.387.1621200166905; Sun, 16 May 2021 14:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621200166; cv=none; d=google.com; s=arc-20160816; b=mabxC/aczLBbB2aAmgLEkZeLyonFFaL9LvLuw9Oi3xKMX0VbFFXDUxlboaAVvqOeqR /bbbRhXHsipnzY5VtARrw8Xe32W9f9mWhNOXwDDzZ4vLuT7SRYHXFaaPBIwgdGwJI98D jAzuhLPD2soRym0HxOLSMPqUUNOIEPrc5QeKjJ43FBTLJzj1abycFMqyrgAQzsrT6YiV NSRAr8GR/Bj+HUbzTtj68Y0Rrncva5qx/ygzAFRohmgfw1noYTcehecXp76JCVCzI0wr ps0J16QSi6lamTT0htod0/mjvEtmwXbpsq4PGHoLQJ3tayoDcx/Uthr0tD5e4M1ecl02 acew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GyIAF+FPDoF3L0c8SxBikD76UBKYvvu1WBUmyZdYlws=; b=k/xoMHfycQ31QhG7i1SCBZWsC/SYQ7Pas3QDMWGlkRuJAFGHaOptM+1/4ez8MZ3PY7 QjY61EiyMwvsS1TeyDbPykd+Y+U/FhPq3CwB5jXQnbxunyz0UihgwDqfKQsMhroAs9LH zjYkMzym0jQUK6nM7wCF132pZabKirf9No2mEnKu0MZjSogEbdOmFvm+ZMyAkSE9uxwT /diHV3uZ3QiJZ9U822ULoJY+f0XHLBFKqj5E6PjkIH5GX6dMt5KXSRSfH6h3c4x4EEDZ 5NWbdpwVmZL+w+fKmfFOnKpL4v1Z+zOP+kPU5bvi8bMEu25jLENOLwIEL1D+PL3NStnG s0dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WBl2yEfM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si11470758ejq.486.2021.05.16.14.22.23; Sun, 16 May 2021 14:22:46 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WBl2yEfM; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232297AbhEPQOd (ORCPT + 99 others); Sun, 16 May 2021 12:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231589AbhEPQOb (ORCPT ); Sun, 16 May 2021 12:14:31 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64A18C061573; Sun, 16 May 2021 09:13:16 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id i9so5184556lfe.13; Sun, 16 May 2021 09:13:16 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=GyIAF+FPDoF3L0c8SxBikD76UBKYvvu1WBUmyZdYlws=; b=WBl2yEfMSQThCqNud/mIohapS0zMHwzANvKRlwxhUrkbOVGW5YhkZn+uCihYiFm2rJ Q9F/7FL8opvZJDZ8bfohX97xbQ+w+V7RQAVuM21RxydM8grAL5bObgHCtAcB4VsTG1Ya AqbYBen+9komB/N+U35TKzQcm4b17xT/K548Z2uYx/nCL5LxrR7LABlqcRPdFxvDhH1j xVO96NTObjV+Q1aXUqphMOivFkqYLGQl6+ndr91e4/3YdxHB5HzmGhBPeXuuUymjrKhN p3k6xZsXE4F8qbiM7Fn80r8SfXparAJaNUamLu9OkdRMfO8e2QovyDA3ETRDlNs3JSlu n0TA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=GyIAF+FPDoF3L0c8SxBikD76UBKYvvu1WBUmyZdYlws=; b=WqPaOhVaig0XzdJyd0uh6HeS0vohANcM4wxWOrcZq0XffsIdxn5pVk6J6OYrbgVBKO 08jKBeJTQ1woAwGEejhaLqMRa+TRz9V9HawvFAkxGS6tlCAP3AMYLZJZllyQQA3JIf90 9bELbtNkqFzys5Eavs3gX1EcK83KNDzvUbYFuDf+XXafKRi2fw2nGXO4egqtaG8RzZGS Hmx7nPGFotnFYYrKjVOXZNGwefJ2UzFPAzqlxsx5WoPIdDHXyhudjRH3fBkWgUp16/rr bIYoO79rRgbG89C2JuxaDCM1584W9gfVxo+1dbzRlzGkBeFHVBtBxKWIeXqE8oO28Qrl /QUQ== X-Gm-Message-State: AOAM532pGZhvwE8pITN8DwZLSFcGPQZCV0iWFqXurDGE6Us6ewgWugYn YQMAo1zzQV0OkqJ+06G5vgs= X-Received: by 2002:a05:6512:10d4:: with SMTP id k20mr37567115lfg.210.1621181594881; Sun, 16 May 2021 09:13:14 -0700 (PDT) Received: from localhost.localdomain (109-252-193-91.dynamic.spd-mgts.ru. [109.252.193.91]) by smtp.gmail.com with ESMTPSA id d27sm1712547lfq.290.2021.05.16.09.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 09:13:14 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Stephen Boyd , Nathan Chancellor , Mikko Perttunen Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 2/4] clk: tegra: Add stubs needed for compile-testing Date: Sun, 16 May 2021 19:12:12 +0300 Message-Id: <20210516161214.4693-3-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210516161214.4693-1-digetx@gmail.com> References: <20210516161214.4693-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add stubs needed for compile-testing of Tegra memory drivers. Signed-off-by: Dmitry Osipenko --- include/linux/clk/tegra.h | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h index f7ff722a03dd..d540b2879c26 100644 --- a/include/linux/clk/tegra.h +++ b/include/linux/clk/tegra.h @@ -144,17 +144,37 @@ typedef long (tegra20_clk_emc_round_cb)(unsigned long rate, unsigned long min_rate, unsigned long max_rate, void *arg); +typedef int (tegra124_emc_prepare_timing_change_cb)(struct tegra_emc *emc, + unsigned long rate); +typedef void (tegra124_emc_complete_timing_change_cb)(struct tegra_emc *emc, + unsigned long rate); +#ifdef CONFIG_ARCH_TEGRA void tegra20_clk_set_emc_round_callback(tegra20_clk_emc_round_cb *round_cb, void *cb_arg); int tegra20_clk_prepare_emc_mc_same_freq(struct clk *emc_clk, bool same); -typedef int (tegra124_emc_prepare_timing_change_cb)(struct tegra_emc *emc, - unsigned long rate); -typedef void (tegra124_emc_complete_timing_change_cb)(struct tegra_emc *emc, - unsigned long rate); void tegra124_clk_set_emc_callbacks(tegra124_emc_prepare_timing_change_cb *prep_cb, tegra124_emc_complete_timing_change_cb *complete_cb); +#else +static inline void +tegra20_clk_set_emc_round_callback(tegra20_clk_emc_round_cb *round_cb, + void *cb_arg) +{ +} + +static inline int +tegra20_clk_prepare_emc_mc_same_freq(struct clk *emc_clk, bool same) +{ + return 0; +} + +static inline void +tegra124_clk_set_emc_callbacks(tegra124_emc_prepare_timing_change_cb *prep_cb, + tegra124_emc_complete_timing_change_cb *complete_cb) +{ +} +#endif struct tegra210_clk_emc_config { unsigned long rate; -- 2.30.2