Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1431854 > unrolled thread

[PATCH] drm/mediatek: add ARM_SMCCC dependency

Started byArnd Bergmann <arnd@arndb.de>
First post2016-06-27 11:30 +0200
Last post2016-06-27 11:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] drm/mediatek: add ARM_SMCCC dependency Arnd Bergmann <arnd@arndb.de> - 2016-06-27 11:30 +0200
    Re: [PATCH] drm/mediatek: add ARM_SMCCC dependency Matthias Brugger <matthias.bgg@gmail.com> - 2016-06-27 11:40 +0200

#1431854 — [PATCH] drm/mediatek: add ARM_SMCCC dependency

FromArnd Bergmann <arnd@arndb.de>
Date2016-06-27 11:30 +0200
Subject[PATCH] drm/mediatek: add ARM_SMCCC dependency
Message-ID<rOB1D-6Kn-5@gated-at.bofh.it>
ARM SMCCC is only set for ARMv7 and ARMv8 CPUs, but we currently
allow the driver to be build for older architecture levels as
well, which results in a link failure:

drivers/gpu/built-in.o: In function `mtk_hdmi_hw_make_reg_writable':
:(.text+0x1e737c): undefined reference to `arm_smccc_smc'

This adds a Kconfig dependency. The patch applies on my two
previous fixes that are not yet applied, so please apply all
three to get randconfig builds to work correctly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 8f83f26891e1 ("drm/mediatek: Add HDMI support")
---
 drivers/gpu/drm/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig
index 96ebf8bb6024..294de4549922 100644
--- a/drivers/gpu/drm/mediatek/Kconfig
+++ b/drivers/gpu/drm/mediatek/Kconfig
@@ -3,6 +3,7 @@ config DRM_MEDIATEK
 	depends on DRM
 	depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST)
 	depends on COMMON_CLK
+	depends on HAVE_ARM_SMCCC
 	depends on OF
 	select DRM_GEM_CMA_HELPER
 	select DRM_KMS_HELPER
-- 
2.9.0

[toc] | [next] | [standalone]


#1431870

FromMatthias Brugger <matthias.bgg@gmail.com>
Date2016-06-27 11:40 +0200
Message-ID<rOBbk-6NY-31@gated-at.bofh.it>
In reply to#1431854

On 06/27/2016 11:22 AM, Arnd Bergmann wrote:
> ARM SMCCC is only set for ARMv7 and ARMv8 CPUs, but we currently
> allow the driver to be build for older architecture levels as
> well, which results in a link failure:
>
> drivers/gpu/built-in.o: In function `mtk_hdmi_hw_make_reg_writable':
> :(.text+0x1e737c): undefined reference to `arm_smccc_smc'
>
> This adds a Kconfig dependency. The patch applies on my two
> previous fixes that are not yet applied, so please apply all
> three to get randconfig builds to work correctly.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 8f83f26891e1 ("drm/mediatek: Add HDMI support")
> ---
>  drivers/gpu/drm/mediatek/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>

Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>

> diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig
> index 96ebf8bb6024..294de4549922 100644
> --- a/drivers/gpu/drm/mediatek/Kconfig
> +++ b/drivers/gpu/drm/mediatek/Kconfig
> @@ -3,6 +3,7 @@ config DRM_MEDIATEK
>  	depends on DRM
>  	depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST)
>  	depends on COMMON_CLK
> +	depends on HAVE_ARM_SMCCC
>  	depends on OF
>  	select DRM_GEM_CMA_HELPER
>  	select DRM_KMS_HELPER
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web