Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762831Ab3ECOCE (ORCPT ); Fri, 3 May 2013 10:02:04 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:57111 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762766Ab3ECOCB (ORCPT ); Fri, 3 May 2013 10:02:01 -0400 From: Arnd Bergmann To: Thierry Reding Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arto Merilainen , Terje Bergstrom Subject: Re: [PATCH, RFC 06/22] gpu/drm: host1x: add dependency on Tegra Date: Fri, 03 May 2013 16:02:04 +0200 Message-ID: <3432070.tv7Jup0G8r@wuerfel> User-Agent: KMail/4.10.2 (Linux/3.8.0-17-generic; KDE/4.10.2; x86_64; ; ) In-Reply-To: <20130503134539.GA18652@avionic-0098.adnet.avionic-design.de> References: <1367507786-505303-1-git-send-email-arnd@arndb.de> <1367507786-505303-7-git-send-email-arnd@arndb.de> <20130503134539.GA18652@avionic-0098.adnet.avionic-design.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:o/uwgSLwEwoha/XUvQqm6QBJK1cfkojG84G22oSxI2b 1OJRswf7ZQmvMhD9kVn8MAqUPSxbYGJXhKJ2TuzsmQrQBOAiDH 9skg3vyKKnPm29HeQG+lPJ0NqkeTb40PTnhGmkcPHiDkEJEqAv oYAazYFqIl7RIWAz138Z6Hy+P8oL/42L9vVzSiZP8WWvLw+zbH W9C9hib/H3FBS2TguExzxibNMiuY9U9I32kxATr0XcP7Hh5dKs 0+mGt1FzBvtam6/n/5mSmf1Nbg+q87rVaCbKVyLYxVMAYtyFdn PgMwiYWh15pjUsZjaYzPjCndnGaAcmjKIWLvPx3yLqwqqMO+hO K5BdhdPDYpwzitO/DkAc= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1951 Lines: 55 On Friday 03 May 2013 15:45:39 Thierry Reding wrote: > > diff --git a/drivers/gpu/host1x/drm/Kconfig b/drivers/gpu/host1x/drm/Kconfig > > index 69853a4..5a6a5cd 100644 > > --- a/drivers/gpu/host1x/drm/Kconfig > > +++ b/drivers/gpu/host1x/drm/Kconfig > > @@ -1,6 +1,7 @@ > > config DRM_TEGRA > > bool "NVIDIA Tegra DRM" > > depends on DRM > > + depends on ARCH_TEGRA > > select DRM_KMS_HELPER > > select FB_SYS_FILLRECT > > select FB_SYS_COPYAREA > > This was solved by a patch that went into Dave's DRM pull request for > 3.10 by adding: > > depends on ARCH_TEGRA || ARCH_MULTIPLATFORM > > to the Kconfig entry for TEGRA_HOST1X. The plan was to eventually remove > ARCH_TEGRA from that condition after 3.10 since ARCH_MULTIPLATFORM will > include ARCH_TEGRA anyway. I'm not sure why that patch hasn't made it > into linux-next yet, though. I saw the problem with ARCH_MULTIPLATFORM enabled, so I don't understand how adding the dependency above would help. A possible alternative would be to define an empty alternative for the interface used here, as the patch below. Arnd diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h index 642789b..1397190 100644 --- a/include/linux/clk/tegra.h +++ b/include/linux/clk/tegra.h @@ -120,8 +120,13 @@ static inline void tegra_cpu_clock_resume(void) } #endif +#ifdef ARCH_TEGRA void tegra_periph_reset_deassert(struct clk *c); void tegra_periph_reset_assert(struct clk *c); +#else +static inline void tegra_periph_reset_deassert(struct clk *c) {} +static inline void tegra_periph_reset_assert(struct clk *c) {} +#endif void tegra_clocks_init(void); void tegra_clocks_apply_init_table(void); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/