From patchwork Tue Oct 15 17:00:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 1177218 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="g9AuvPk1"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46t1vK1Wvtz9sPF for ; Wed, 16 Oct 2019 04:02:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388490AbfJORCg (ORCPT ); Tue, 15 Oct 2019 13:02:36 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42135 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388477AbfJORBu (ORCPT ); Tue, 15 Oct 2019 13:01:50 -0400 Received: by mail-lf1-f66.google.com with SMTP id c195so15062261lfg.9; Tue, 15 Oct 2019 10:01:49 -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=KGjmb/MNUm+G9U/DTi2/uDEoahkabTTfxcEHeZSx3QE=; b=g9AuvPk1TIOd9q5Gk7ZwrjT8qZf2kcjsPpk0T4MRH4FC9nDA/8nrAWV5+uOVX4n/Oh U2ayMVOBteVql7xCAFrw4t8lwrt5m9E6RI+I7/2chcxaLmP9URYSuadme0BFDAhVMlhj ca8Ub2KgsiV47AVlEEYv//cWxobBoJZKieKHJPUfiA1cjt8JfEtAhdYUUcKe6tK/z5hD EDSX4AMGnkrdbbKfM+oqGjIrnn9E/hsxKevKqx8Ylbt0bBAv9i2ekQ617uSaA9Y9U/iD CNLJmWGCvz3LgloPUeJ23FWYQe3c0ej5mahQhUz1EiR2mBr2Z596DzlNbnNYJnviJX3e s+OQ== 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=KGjmb/MNUm+G9U/DTi2/uDEoahkabTTfxcEHeZSx3QE=; b=rYL9Yf6LxA8VfLU0pu5ld2kAEo4QXmE6FaHra+CMIFQ6FjN0yqYk0iHQP1i2jyBstl RNWGRVjXzuWUvnKLr8NicEgcOGDaBLSKI6x+zjdwQc8xhn2M02azuM323mjZjN5vyuCH CGZeArdA2h1rIvuM3S7IY3cFKC2QAnAjEIf7fV4At2PnsaS3dftATQ4Gsj0Hkrot4EWk 7G8Xfce7d/wamA22MfJ3lqHwiWPj5+PYtBXyGZzotcror0Rr87yQaTX9dc2tBnUsXFVS xzAjrlu31ztcun0A3NcuHy4SEl7vFg0or4n3n26sNDTuO4beogOKpZVw8q1w5vYhpArt V8Jg== X-Gm-Message-State: APjAAAWZL8v3L41b3SE3V7RpNxoeUy+ogw7HELYwKgrFbkYxiOPCduT1 Zcld1bo49Rgcbh3U93Vf/MM= X-Google-Smtp-Source: APXvYqzJLD+MPyOOk8yuZBxjglv6s8ujesc90gedmP7eEFf8v3gSUyESdgpGETsqe6EhKvS3AbHlrg== X-Received: by 2002:ac2:44ae:: with SMTP id c14mr21275270lfm.116.1571158908279; Tue, 15 Oct 2019 10:01:48 -0700 (PDT) Received: from localhost.localdomain ([94.29.10.250]) by smtp.gmail.com with ESMTPSA id t6sm5144992ljd.102.2019.10.15.10.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 10:01:47 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Peter De Schrijver , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 09/18] clk: tegra: Add missing stubs for the case of !CONFIG_PM_SLEEP Date: Tue, 15 Oct 2019 20:00:06 +0300 Message-Id: <20191015170015.1135-10-digetx@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191015170015.1135-1-digetx@gmail.com> References: <20191015170015.1135-1-digetx@gmail.com> MIME-Version: 1.0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org The new CPUIDLE driver uses the Tegra's CLK API and that driver won't strictly depend on CONFIG_PM_SLEEP, hence add the required stubs in order to allow compiling of the new driver with the CONFIG_PM_SLEEP=n. Signed-off-by: Dmitry Osipenko --- include/linux/clk/tegra.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h index 6a7cbc3cfadc..2b1b35240074 100644 --- a/include/linux/clk/tegra.h +++ b/include/linux/clk/tegra.h @@ -108,6 +108,19 @@ static inline void tegra_cpu_clock_resume(void) tegra_cpu_car_ops->resume(); } +#else +static inline bool tegra_cpu_rail_off_ready(void) +{ + return false; +} + +static inline void tegra_cpu_clock_suspend(void) +{ +} + +static inline void tegra_cpu_clock_resume(void) +{ +} #endif extern void tegra210_xusb_pll_hw_control_enable(void);