Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1321878pxb; Sun, 19 Sep 2021 13:33:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyybp0yO2RMT0zzOiPx5T8qB15tXFql7VwYIDSRQS8TwEzifRc6eh7Rsr0ucaE8rw4zu9Ta X-Received: by 2002:a17:906:36d6:: with SMTP id b22mr24168316ejc.387.1632083594817; Sun, 19 Sep 2021 13:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632083594; cv=none; d=google.com; s=arc-20160816; b=d3XCTq6k5NHA/3cn2iC45pT6/+h8jg54eCLIoMKVQ42OdLVAHl3dHeOAREDGVkhdTV 7CQgtPnXwOG3d58O5oxQb+RzRGU1wCMcSjX+6BnH9ZNfJ8U2FYJCpWGi2Ey3SycT/Qwo XjkkZNrH4BKHY4ixW4xnE04p2izIrOn2PsbeWsk04A1Mp5HOFljTDljgIzLRrovt1DxF Gu8UvOL2Nl7rWVERjNRu5GoAyc30dO4GdDFQaA6Mmfd67/1mg5cp3EJ8RHvhQQEZ6upq SzxKrLDH6BgHpdi4OgwQn4p4fyRbnQqZAQys+3xOWz3fpxihOVx9nTxpsuCJYH87RyIi qsIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=SkLH+UboopS3jydNhY/b3ibaID8wpHq9laVTqE2n57s=; b=x39T9DyCTQOt5y4d3YVzIbQJQxIJ82Z9H3WVCVP2sPSqfGKFeKJ1fGeqYGP02qOFNw wCprcs32QSoK2fSaSgkbq6uE34xx9aua++vYt4vla3APz3IFmbd1JOez5TuiqqmvJSok agK0lGJ1CF+n8zVM880YoP6L+IEC7tSaBgHk88iBAqKAL391fI+I5h8TXj7nLWqUbMpe rJlouDgu5IMl5qBN0VqyfqgpSX3ZYtN0endGatLma/9LRAjstEhVZcXYVPKRaD4vVD+y NKPRcoxkugVblz3I6GbU44ZglpRnm/vJpidwv1gm3OssGuL4zWhu2MHnU0qtvXJtxQrB QSMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=E3ZV85cV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca15si13894890edb.208.2021.09.19.13.32.51; Sun, 19 Sep 2021 13:33:14 -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=@infradead.org header.s=bombadil.20210309 header.b=E3ZV85cV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233934AbhISQma (ORCPT + 99 others); Sun, 19 Sep 2021 12:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbhISQm3 (ORCPT ); Sun, 19 Sep 2021 12:42:29 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B777C061574 for ; Sun, 19 Sep 2021 09:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=SkLH+UboopS3jydNhY/b3ibaID8wpHq9laVTqE2n57s=; b=E3ZV85cVknawbtUr32Gqm8RYhL Ab712U1reGxWRM7S4eKwC6U3oe3B9KULJHTMg7XyVm2d0Q1+CNzAh6qRZz9+WHwS/iemiw25p6ggr H2AUCcQC1kid2t5083+2fs8Fmh3pCJd15WFfFMUZe9x0UGi6YUn9SljaWcZdZkctQ4DCDFx0t6qkk xQQ1ps6/zrblGcdBsJ/QgHn8PsImtCIeL0kRYHq+TvCSMpXjAap/8jNxUSES9QMC2hf7dfXpEuy8H wMx+NDCGYitc3g+7cTX22FfyWxJEp9MfAS8g9XrG6l1uRXF8Mkr0NHDqrik/J8NL+58swO76H5Pj0 +tdu5ljw==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mRzrz-00HWNq-1w; Sun, 19 Sep 2021 16:40:47 +0000 Subject: Re: [PATCH v3 1/6] drm/vc4: select PM (openrisc) To: Maxime Ripard , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann Cc: linux-kernel@vger.kernel.org, Dave Stevenson , Phil Elwell , Tim Gover , Dom Cobley , Boris Brezillon , linux-rpi-kernel@lists.infradead.org, Hans Verkuil , bcm-kernel-feedback-list@broadcom.com, Emma Anholt , Nicolas Saenz Julienne , Maxime Ripard , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Openrisc References: <20210819135931.895976-1-maxime@cerno.tech> <20210819135931.895976-2-maxime@cerno.tech> From: Randy Dunlap Message-ID: <8a5cdcf5-33ed-398f-243a-b8889fd754e3@infradead.org> Date: Sun, 19 Sep 2021 09:40:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210819135931.895976-2-maxime@cerno.tech> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/19/21 6:59 AM, Maxime Ripard wrote: > We already depend on runtime PM to get the power domains and clocks for > most of the devices supported by the vc4 driver, so let's just select it > to make sure it's there, and remove the ifdef. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/vc4/Kconfig | 1 + > drivers/gpu/drm/vc4/vc4_hdmi.c | 2 -- > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/vc4/Kconfig b/drivers/gpu/drm/vc4/Kconfig > index 118e8a426b1a..f774ab340863 100644 > --- a/drivers/gpu/drm/vc4/Kconfig > +++ b/drivers/gpu/drm/vc4/Kconfig > @@ -9,6 +9,7 @@ config DRM_VC4 > select DRM_KMS_CMA_HELPER > select DRM_GEM_CMA_HELPER > select DRM_PANEL_BRIDGE > + select PM > select SND_PCM > select SND_PCM_ELD > select SND_SOC_GENERIC_DMAENGINE_PCM > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c > index c2876731ee2d..602203b2d8e1 100644 > --- a/drivers/gpu/drm/vc4/vc4_hdmi.c > +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c > @@ -2107,7 +2107,6 @@ static int vc5_hdmi_init_resources(struct vc4_hdmi *vc4_hdmi) > return 0; > } > > -#ifdef CONFIG_PM > static int vc4_hdmi_runtime_suspend(struct device *dev) > { > struct vc4_hdmi *vc4_hdmi = dev_get_drvdata(dev); > @@ -2128,7 +2127,6 @@ static int vc4_hdmi_runtime_resume(struct device *dev) > > return 0; > } > -#endif > > static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data) > { > Hi, FYI. This still causes a build error on arch/openrisc/ since it does not support CONFIG_PM (it does not source "kernel/power/Kconfig" like some other arches do): ./arch/riscv/Kconfig:source "kernel/power/Kconfig" ./arch/x86/Kconfig:source "kernel/power/Kconfig" ./arch/nds32/Kconfig:source "kernel/power/Kconfig" ./arch/sh/Kconfig:source "kernel/power/Kconfig" ./arch/arc/Kconfig:source "kernel/power/Kconfig" ./arch/arm64/Kconfig:source "kernel/power/Kconfig" ./arch/xtensa/Kconfig:source "kernel/power/Kconfig" ./arch/sparc/Kconfig:source "kernel/power/Kconfig" ./arch/arm/Kconfig:source "kernel/power/Kconfig" ./arch/mips/Kconfig:source "kernel/power/Kconfig" ./arch/powerpc/Kconfig:source "kernel/power/Kconfig" ./arch/um/Kconfig:source "kernel/power/Kconfig" ./arch/ia64/Kconfig:source "kernel/power/Kconfig" so with CONFIG_DRM_VC4=y # CONFIG_DRM_VC4_HDMI_CEC is not set I still see ../drivers/gpu/drm/vc4/vc4_hdmi.c:2139:12: warning: 'vc4_hdmi_runtime_suspend' defined but not used [-Wunused-function] 2139 | static int vc4_hdmi_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~ -- ~Randy