From patchwork Mon Jul 12 00:03:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 472779 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81748C07E96 for ; Mon, 12 Jul 2021 00:03:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 61AA461042 for ; Mon, 12 Jul 2021 00:03:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbhGLAGe (ORCPT ); Sun, 11 Jul 2021 20:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhGLAGd (ORCPT ); Sun, 11 Jul 2021 20:06:33 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB1F0C0613DD; Sun, 11 Jul 2021 17:03:45 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id g8so722136qtj.1; Sun, 11 Jul 2021 17:03:45 -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=zQP7uhtwMAP/xCI1kCq0LZ0EbLp5qp053nAfBZhyU9Y=; b=J4u3yhPAhAtjuvIRRn1TdzVGS/4ebB1nEVV1wnoiT0/p5/xt0yYKUs/SqmXM0uIhQv MIhD5CsBn1CJCLcWJzVtXdFGpoEFbyfDl7hedAb1/+Kx2WGk4O43hQLP79WvECNkOKGn tZPkJ7dg7g/4Po2318/d2YiJDmo1oWaTz5csk20EH5krDLDEt9Ndobx6dHpCfSjE5FRn sfw5gwRpa95g/0ci9cdnyS8tBtTJ7PamSkBujxGUtYXgY4VhMojwvckhW/KJE0LCLm70 QQtmv0da8v48AWtT3iQNsGPaqzdsZqh8rO1DK8VN3IxcLTW8aOCc8wiNL+Ds4oOrumAy ekpw== 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=zQP7uhtwMAP/xCI1kCq0LZ0EbLp5qp053nAfBZhyU9Y=; b=pkOFxnm8gaUVnED4LqFuv0KLjItx1T46T6rCR9Ok2EF7pqluesROVnaFRcW0KL0B+g iO76MVTSFamDvGm04I1d0gYj5Rdp/3M6bTiOKmZV0yFpjeMKG3/AJ6IwWcMcqxxrFjus OaK1lbkWNpO9N6PZua0ZEDJ7bC8XqPnIumBuFxsGSXFedrt0rlZlGngtBaRrqd9qvRph EZWnK5FK+/OT9TfT7++JK6MqQD36SRQYYy+KH36hwkpdF+vea7UFRcEvzeOxd1OKxRSn FOz4mvuigrd5cu/oGcsTMMQ6wooQx2tu5tvhnm26/dBc1KhhRZ1aa7I24iXxNivdtVib Ijbg== X-Gm-Message-State: AOAM533+On8k4cw9K6kF1HPj44m+QwzdHlJbo6/rdnqlyLRZ9y0MvHj1 1Jq6hKBldIo3ZWpZ2DJ16HA= X-Google-Smtp-Source: ABdhPJwgm5PsFTU1DDOS4lYwywnx0CNgatuabbGoOcLP+2pzN3vUwDmdM8dsaD2v6HOVGre+3sjGCA== X-Received: by 2002:ac8:5e12:: with SMTP id h18mr45885460qtx.365.1626048224932; Sun, 11 Jul 2021 17:03:44 -0700 (PDT) Received: from localhost.localdomain (94-29-37-113.dynamic.spd-mgts.ru. [94.29.37.113]) by smtp.gmail.com with ESMTPSA id h10sm4970290qta.74.2021.07.11.17.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 17:03:44 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 1/5] soc/tegra: fuse: Add stubs needed for compile testing Date: Mon, 12 Jul 2021 03:03:18 +0300 Message-Id: <20210712000322.4224-2-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712000322.4224-1-digetx@gmail.com> References: <20210712000322.4224-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add stubs needed for compile-testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko --- include/soc/tegra/fuse.h | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/include/soc/tegra/fuse.h b/include/soc/tegra/fuse.h index 990701f788bc..67d2bc856fbc 100644 --- a/include/soc/tegra/fuse.h +++ b/include/soc/tegra/fuse.h @@ -6,6 +6,8 @@ #ifndef __SOC_TEGRA_FUSE_H__ #define __SOC_TEGRA_FUSE_H__ +#include + #define TEGRA20 0x20 #define TEGRA30 0x30 #define TEGRA114 0x35 @@ -22,11 +24,6 @@ #ifndef __ASSEMBLY__ -u32 tegra_read_chipid(void); -u8 tegra_get_chip_id(void); -u8 tegra_get_platform(void); -bool tegra_is_silicon(void); - enum tegra_revision { TEGRA_REVISION_UNKNOWN = 0, TEGRA_REVISION_A01, @@ -57,6 +54,10 @@ extern struct tegra_sku_info tegra_sku_info; u32 tegra_read_straps(void); u32 tegra_read_ram_code(void); int tegra_fuse_readl(unsigned long offset, u32 *value); +u32 tegra_read_chipid(void); +u8 tegra_get_chip_id(void); +u8 tegra_get_platform(void); +bool tegra_is_silicon(void); #else static struct tegra_sku_info tegra_sku_info __maybe_unused; @@ -74,6 +75,26 @@ static inline int tegra_fuse_readl(unsigned long offset, u32 *value) { return -ENODEV; } + +static inline u32 tegra_read_chipid(void) +{ + return 0; +} + +static inline u8 tegra_get_chip_id(void) +{ + return 0; +} + +static inline u8 tegra_get_platform(void) +{ + return 0; +} + +static inline bool tegra_is_silicon(void) +{ + return false; +} #endif struct device *tegra_soc_device_register(void); From patchwork Mon Jul 12 00:03:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 474956 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 670CAC07E9C for ; Mon, 12 Jul 2021 00:03:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 514DD6103E for ; Mon, 12 Jul 2021 00:03:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbhGLAGf (ORCPT ); Sun, 11 Jul 2021 20:06:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhGLAGe (ORCPT ); Sun, 11 Jul 2021 20:06:34 -0400 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F04DC0613DD; Sun, 11 Jul 2021 17:03:47 -0700 (PDT) Received: by mail-qt1-x829.google.com with SMTP id k3so3505347qtq.7; Sun, 11 Jul 2021 17:03:47 -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=JTbm+Ivds98cb9V5q8q1C/zZH2NCdOMIxgLjAuUIi4Y=; b=e6KFZp5MY5dIqEWOMEdQlVZO85JAxGhf/+0C/OMeAttBchIQ1aDkUiVV61LM3bo01l Kn9v6ftCBZZgx4/QJnk4QQWbxrdfHNi7tHlCkOQWc1ANc1dwfRhdssAyojVtuR57zSzC 5IfWbjOOQsI+D5iKessslUL6mRYS7YVhhtmhxIf4OhRg1tESH4U6d71pUiAXZEK42qPl OLMUr/TxC9S85vFDXJZQFvSn6BG+G8QshZQdmcB96FcbbVQkTMQQzsMHNQMrCRiPwKrd HBWi7K+bfh41gNgc5Rz36wJLYnFQDAkX48vGOiNjHUY4DrKy9rWXW2d149SCr/wSUecg IZfw== 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=JTbm+Ivds98cb9V5q8q1C/zZH2NCdOMIxgLjAuUIi4Y=; b=VUxaNh+LwIJSSonDbnXigZEI1iKBEniJM9Fe3U8KiPOwJm2kmbadyqfvRTPAH9R8+V T0nI8uYYDnoq306K58bOYQBtgdoqB+XB8JP5hjBQ+zgwNnSRuXCiW25qmlUeDQNZBCmg f89b/P/1JNRksi+El4a9QQPPulOCTt05aOY9Dd+DeLg6MPeVxahNrLDkHDB6TRBcR8os cxPk0MGgXFY2PfyGryiadn56IwPaTYQ+uyP4Ru5uKmcq5ye+jinTzOMnU/2sa5brfY// pw/7GZcpiCU0eT6FdptyrE8JmdXddU/lnQdPSq4t+zfSfWnHl+ej05fuE+VWTcO79W5A yu3Q== X-Gm-Message-State: AOAM531xPf4rCLq1OksGZP+AinW33a4etF1B8Yh7yoFAQqyNpiupZbia VmzOfAQU0Exx53JHeSBllqE= X-Google-Smtp-Source: ABdhPJw0mJHjZBY3C7gjk9CFWVqFMYRFXUipZmACDMOIVTeq82kTY3tLRgRyMuHI9FTFHh01JLiSSw== X-Received: by 2002:ac8:7f02:: with SMTP id f2mr27210251qtk.213.1626048226877; Sun, 11 Jul 2021 17:03:46 -0700 (PDT) Received: from localhost.localdomain (94-29-37-113.dynamic.spd-mgts.ru. [94.29.37.113]) by smtp.gmail.com with ESMTPSA id h10sm4970290qta.74.2021.07.11.17.03.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 17:03:46 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 2/5] soc/tegra: irq: Add stubs needed for compile testing Date: Mon, 12 Jul 2021 03:03:19 +0300 Message-Id: <20210712000322.4224-3-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712000322.4224-1-digetx@gmail.com> References: <20210712000322.4224-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add stubs needed for compile-testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko --- include/soc/tegra/irq.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/soc/tegra/irq.h b/include/soc/tegra/irq.h index 8eb11a7109e4..94539551c8c1 100644 --- a/include/soc/tegra/irq.h +++ b/include/soc/tegra/irq.h @@ -6,8 +6,15 @@ #ifndef __SOC_TEGRA_IRQ_H #define __SOC_TEGRA_IRQ_H -#if defined(CONFIG_ARM) +#include + +#if defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA) bool tegra_pending_sgi(void); +#else +static inline bool tegra_pending_sgi(void) +{ + return false; +} #endif #endif /* __SOC_TEGRA_IRQ_H */ From patchwork Mon Jul 12 00:03:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 472778 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3936C07E9E for ; Mon, 12 Jul 2021 00:03:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CC95F6103E for ; Mon, 12 Jul 2021 00:03:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230014AbhGLAGh (ORCPT ); Sun, 11 Jul 2021 20:06:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhGLAGg (ORCPT ); Sun, 11 Jul 2021 20:06:36 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81AB0C0613DD; Sun, 11 Jul 2021 17:03:49 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id g8so12574430qth.10; Sun, 11 Jul 2021 17:03: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=e+RoyTz3ioafoGh1CV850v6zHYBwTfvOJ8SdICb6XYM=; b=U53qDbIR47l3Xnh3SM8c+JxK119FMEOq1vmVL+WVvmZcc/UpaxlN4adUp2mrY8yJ5u aOsntTmiXbrP8+p+LaU8nsWK8IIhpAi44P6PUHzKZ5+/d91hhxKllJ3LRX9EBH0rUSgJ JIqVy9eGyvgWDxzBSVVzzy9bLz/RMaW400W4Pkz5QavptjNiGKJO/+0e8HGKGyZmD75Z r61gXDVoSBrj9iAoX+3PwzZWuK/EGXIOTziHvSqPDyCbboEue3N1+rlz/+rVecHBWNfV MK2Zwzyy/6Jb0siCnW2dkgYQ5pfYC9RyCXGRs3rv+Ucym3YXjEzu3+oy5fOhUtmXgqNS E3Pw== 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=e+RoyTz3ioafoGh1CV850v6zHYBwTfvOJ8SdICb6XYM=; b=VlKWnczOZsC/kbU5zXaHf/h8GHJzYuyveBrQ3mCpoiNaI2s9kwJ8cPiwDhEbxI7jWD Ocjff3LJSPDO615b78TqSMA79M+htE1Ott37csce58GoahzD3TUoCNHN2f38EUGMtIcx uvgca9I5DoXJcVSpHzgcZg9yfYcC8F7aGvQVe9sLj2eRAyzj1SpQwnzdrdaWpU6Sy3xt bV0Lz3+/LXAudPR6+SdaPwh8Y5jnubrtSxIAAM/IlpmPW+3KB+PvbJKgbm0dax9xEObG HLFS93eVqmSQcZczN0kbQUmSs13vCVt3e+AwR/TjCzZQI7HuiFEAC4uln1SfuIQXjq7z KX1w== X-Gm-Message-State: AOAM531rA2ZPl6aS5G5uxaBcawnCXLlsjmfk7PfelvpoOHmejFrwB+Kl r4BZuUakcgBFprgcyahiGwo= X-Google-Smtp-Source: ABdhPJxfR8HnL+OYJPS86Mj4YW/rYlFIKRTtgPAJ4YYQQr3+pG/W8DVlyJsJDP56SmzPsDj2OeVTEA== X-Received: by 2002:ac8:7d90:: with SMTP id c16mr44142363qtd.337.1626048228764; Sun, 11 Jul 2021 17:03:48 -0700 (PDT) Received: from localhost.localdomain (94-29-37-113.dynamic.spd-mgts.ru. [94.29.37.113]) by smtp.gmail.com with ESMTPSA id h10sm4970290qta.74.2021.07.11.17.03.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 17:03:48 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 3/5] soc/tegra: pm: Make stubs usable for compile testing Date: Mon, 12 Jul 2021 03:03:20 +0300 Message-Id: <20210712000322.4224-4-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712000322.4224-1-digetx@gmail.com> References: <20210712000322.4224-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The PM stubs need to depend on ARCH_TEGRA in order to be usable for compile-testing of tegra-cpuidle driver. Add the dependency. Signed-off-by: Dmitry Osipenko --- include/soc/tegra/pm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/soc/tegra/pm.h b/include/soc/tegra/pm.h index 08477d7bfab9..81701944fe78 100644 --- a/include/soc/tegra/pm.h +++ b/include/soc/tegra/pm.h @@ -16,7 +16,7 @@ enum tegra_suspend_mode { TEGRA_MAX_SUSPEND_MODE, }; -#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM) +#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA) enum tegra_suspend_mode tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode); From patchwork Mon Jul 12 00:03:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 474955 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B299CC07E9C for ; Mon, 12 Jul 2021 00:03:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A2B3561042 for ; Mon, 12 Jul 2021 00:03:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbhGLAGj (ORCPT ); Sun, 11 Jul 2021 20:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbhGLAGi (ORCPT ); Sun, 11 Jul 2021 20:06:38 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78420C0613E5; Sun, 11 Jul 2021 17:03:51 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id r125so8672615qkf.1; Sun, 11 Jul 2021 17:03:51 -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=cZO3c0fpnwQfqDRvDUKCPGXMXP2rFLnO7bySGQVOuzg=; b=vCZay26jzh9L01bS8XWPXrySgaXzdy3IEphMKjLpnfs1p87ywLc5mFprJnM6+Bf3YB j2ukdxz6ossB8bsiOnfeLKoRZBCn7dDN4Fp2foztbrKYl6MMnt7ubosy7tD8UXgyK0lE RbFdk3ueSYLEe8EYBGrGPKEfRVDGzG1RD+1RJ+Ejb0In39BPI9AVOE1R2L+MH+F/5G4b qoLCijXF1T+0oct9Ik0vSZphNzdOLm13HsW4qnIUD+dwg2gvz1CpWVLw4lUqmxaBo4kx DI/M6QEePdrYTCTjYTSYb5ZagPIL3f0jxdiMtFLWZhCbNl3LHTFhK/4LJLjsvZ/2ekaE UTzw== 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=cZO3c0fpnwQfqDRvDUKCPGXMXP2rFLnO7bySGQVOuzg=; b=pHY1fQgboY50OH4u1KcGJkdhNiEdYiPdUYRDwaeiAeltvmUG984+QV8QwBJuITx8dN coNdUF6ihCG8oFtT6kc8B6agED21byMBZ+gfSpDWOlBcgGKZpqdbQwW816enru+0v81J bDyLtyUYewdLJhsODjkCfl16sd6zMmXHoH5WxUuFq/2xhs5QjAkOVq+SmEw3jSsjhVQC hPKKk2NFiVklfzebTRocQaG7aVdcvMgcgIHtOCy6+WVt2a7Wz4jKq+EeTAHWNnDdUPYT VPlyGEBy7jWWtpwnxrEk2gjq+Fs+zAsCNOBbUXuxYil/zoPt4ovTZu1QaZewQKfmoTGX 94ew== X-Gm-Message-State: AOAM530o8BnRLKSDeivyHePSFcrXjYgUMnNZCCnImJvacu2+Zl7+vO3i KdUeNWH6WF1XZ2B2W4xjAAo= X-Google-Smtp-Source: ABdhPJxDwzwszqHn2YG0fUt6K6A2ORAvtr399U72TEdUNOWdtRUQwX2aAk2Yxig0bu/tfSihnCCTZg== X-Received: by 2002:a37:b881:: with SMTP id i123mr50189620qkf.207.1626048230707; Sun, 11 Jul 2021 17:03:50 -0700 (PDT) Received: from localhost.localdomain (94-29-37-113.dynamic.spd-mgts.ru. [94.29.37.113]) by smtp.gmail.com with ESMTPSA id h10sm4970290qta.74.2021.07.11.17.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 17:03:50 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 4/5] clk: tegra: Add stubs needed for compile testing Date: Mon, 12 Jul 2021 03:03:21 +0300 Message-Id: <20210712000322.4224-5-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712000322.4224-1-digetx@gmail.com> References: <20210712000322.4224-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add stubs needed for compile-testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko --- include/linux/clk/tegra.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h index d128ad1570aa..9bd06d8a5436 100644 --- a/include/linux/clk/tegra.h +++ b/include/linux/clk/tegra.h @@ -42,7 +42,11 @@ struct tegra_cpu_car_ops { #endif }; +#ifdef CONFIG_ARCH_TEGRA extern struct tegra_cpu_car_ops *tegra_cpu_car_ops; +#else +static struct tegra_cpu_car_ops *tegra_cpu_car_ops __maybe_unused; +#endif static inline void tegra_wait_cpu_in_reset(u32 cpu) { From patchwork Mon Jul 12 00:03:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 472777 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE164C07E9C for ; Mon, 12 Jul 2021 00:03:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B11F66102A for ; Mon, 12 Jul 2021 00:03:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231318AbhGLAGl (ORCPT ); Sun, 11 Jul 2021 20:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbhGLAGk (ORCPT ); Sun, 11 Jul 2021 20:06:40 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7132DC0613DD; Sun, 11 Jul 2021 17:03:53 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id 201so2162783qkj.13; Sun, 11 Jul 2021 17:03:53 -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=a0H54VcaSkULvQ0XfRhbooC/ZXW5WM4Ks5Bh/dzSIL8=; b=e4tTE5FEkSBBCbpxxhRslLR+2FSeJg8YMnsImNK0Vb6m+wvbITg7MnJXonZnXBbUI8 WU0Chy8hffriA4Mxca7sOqC/Nb7YMxIaKhqmou3VHd2rso2j3Dhok9m1rKd7cBEfZTA5 Gnj/eOrtQm/srWOmYlViEMQUVzEY5Ws7KLb6a316TGPj5WEEbmRNEQ0pLBGihwv3A60Z YOQRs9UftzToLoZ1ZyChxBAzzRGkWUPzE4XZkk+CseOxRL/ipGW6UXQQ9YvYL8Aa4sx7 RgNIN4806+p327bw/xw41UU0Y/XBtQVmGrml6jUFrCn9z/kaDyrb87xb0DO835uYDnsI Fm9w== 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=a0H54VcaSkULvQ0XfRhbooC/ZXW5WM4Ks5Bh/dzSIL8=; b=PMYY7IE6ZzuqGGQvqQtUrGQPi9UIDEHVmIAsGDsdXvttnvf8zNGNNlVXGssRORLIRk Gomsn6SkzN1cYAqBHxFC1gPPE7v5DKwPbAo5aVuT4R36kfZjQa2l3BIYUNDB/Q1l4Bv3 5dLnt6hgo2lxPLDkn2ArOkZsmaXBLFHP1NrauJ1eolKFvXtbf2zwJz4tRrQQ7shdaSPR kDbNP0TQNq3eFySv4XJkyqbhDFvoEIVQaov3icueK4qcyzR/rv9gCgQgqn7EkK8F9EUU UbEdafFOGe/3U96WirO5h5IOGln03jOnqu3HxRawcjSgp6WXr3tjpgbZHurrYqqoTcYH gKKQ== X-Gm-Message-State: AOAM530b/ypcVe2ZiPsG4U8bvTME01SFV8W/PPv7FgeHKWI7DM5Nl70W FhmjZA/TNeaOVMtYvXmG/qo= X-Google-Smtp-Source: ABdhPJxByIV3MBJU0iRjyJ3lWh3bHIqYzT937mhcsMmKxM8++/Z3qM4wD0GiITUg/5s1XiLMjTkHLQ== X-Received: by 2002:a05:620a:16b7:: with SMTP id s23mr27610431qkj.495.1626048232722; Sun, 11 Jul 2021 17:03:52 -0700 (PDT) Received: from localhost.localdomain (94-29-37-113.dynamic.spd-mgts.ru. [94.29.37.113]) by smtp.gmail.com with ESMTPSA id h10sm4970290qta.74.2021.07.11.17.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 17:03:52 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 5/5] cpuidle: tegra: Enable compile testing Date: Mon, 12 Jul 2021 03:03:22 +0300 Message-Id: <20210712000322.4224-6-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712000322.4224-1-digetx@gmail.com> References: <20210712000322.4224-1-digetx@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Enable compile testing of tegra-cpuidle driver. Signed-off-by: Dmitry Osipenko --- drivers/cpuidle/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 334f83e56120..599286fc0b08 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -99,7 +99,7 @@ config ARM_MVEBU_V7_CPUIDLE config ARM_TEGRA_CPUIDLE bool "CPU Idle Driver for NVIDIA Tegra SoCs" - depends on ARCH_TEGRA && !ARM64 + depends on (ARCH_TEGRA || COMPILE_TEST) && !ARM64 && MMU select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP select ARM_CPU_SUSPEND help