From patchwork Wed Apr 19 17:00:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9688231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DD3CB602DC for ; Wed, 19 Apr 2017 17:01:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC9612842E for ; Wed, 19 Apr 2017 17:01:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C14A428438; Wed, 19 Apr 2017 17:01:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C8C7A2842E for ; Wed, 19 Apr 2017 17:01:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7FF3C6E0AE; Wed, 19 Apr 2017 17:01:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 17B776E0AE for ; Wed, 19 Apr 2017 17:01:03 +0000 (UTC) Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MUxAq-1cXHHu2tmG-00YDrm; Wed, 19 Apr 2017 19:00:30 +0200 From: Arnd Bergmann To: Mauro Carvalho Chehab Subject: [PATCH] [media] exynos_hdmi: improve MEDIA_CEC_NOTIFIER dependency Date: Wed, 19 Apr 2017 19:00:19 +0200 Message-Id: <20170419170030.2869578-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:HFCRn0Mr4dA86SXJOWDtl3q6u/ZiAiWhoO2V3B0cxJJfl5JqbcV UsF5l9gS5VfVT4tEFH0JG3wdeiJQjE8XZ4B1y2MwWcvZRIJiYuoMDph0mr4G9oVP/jLOGuT CjZ0Z0hJWstNVHqSZduqWCNo+2pBMfhEDAkyfeZzg7CrDnyN4j1TBSH0JZhSqf5FM2VUxqC T6y2LR1LKyis1dwf1DT0A== X-UI-Out-Filterresults: notjunk:1; V01:K0:uuIaT0dtK7o=:WyZ2PZHwP8fvJNrPRhcBwF hopu2QRW4XkPD5ZKCaf/aFDghm96pFH/FihwvPL+4A2H0O9kOvX583HthyEK625paHdOC4jzk D5uyc/ollXzccrnW1yNkR+4eAAYKqeiF/wcejFUCFeff6fn893bocflL49HEhQLZM/IrFbMXi 6ZGaBI/BmYCIZJW+HK4xv12biQcDEHSZNbeP6HxuZb0yk4GTnd+VTgqm1LhTAdFuSXcT7On/b U3ha08ksYDVu4CTXqpHDvbJaCcaAFZ8rJGPyvKjx0HdKJozP6C1ZCWQ+PbHREFWoNqnjo96zP Ibk0kk8EU+Zp90mvWgRVyVynrZj7y2jovUr4qDBRsBIfoAwI/VzsMS0JGf0T1+3CYuKNJPxQq jE0MmncIZmiNT96L0tIGa/PJ7Jx7+TaC3ZvUcJazCLhrLzqKLvi/dWq8IGaqrwydnRKMu4YKU 8NNCeDnxBMUvRJ5Z5OqwVSq/CRwMQNypjsTDEyfScX0FjeRZqEjLPNACeWBzxTpQwQ7hkJJDU 2ZrvuyO5Mzutvs75KbjdVsm2Mp29TLrGUW9Ma4+88mmHxquVuMpOwWMwrMRtlbWQYkiNkIatZ 9ViB7qMWYpsMUvVW8Z7Mv8ta4wGHF27lRYvzNgB1aOYrPPkc+vjR65WPbHxI15wzXp1mq2FIg yLgG7bqCNspdjwSHtzMbC2sFtRtFAQ0ZfJQNqtXquZrGLBber5HHooBYdKygZv/Uu2tc= Cc: Hans Verkuil , linux-samsung-soc@vger.kernel.org, Arnd Bergmann , Tobias Jakobi , Daniel Vetter , Seung-Woo Kim , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Javier Martinez Canillas , Kyungmin Park , Kukjin Kim , Hans Verkuil , dri-devel@lists.freedesktop.org, Marek Szyprowski , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP When the media subsystem is built as a loadable module, a built-in DRM driver cannot use the cec notifiers: drivers/gpu/drm/exynos/exynos_hdmi.o: In function `hdmi_get_modes': exynos_hdmi.c:(.text.hdmi_get_modes+0x80): undefined reference to `cec_notifier_set_phys_addr_from_edid' drivers/gpu/drm/exynos/exynos_hdmi.o: In function `hdmi_remove': exynos_hdmi.c:(.text.hdmi_remove+0x24): undefined reference to `cec_notifier_set_phys_addr' exynos_hdmi.c:(.text.hdmi_remove+0x38): undefined reference to `cec_notifier_put' This adds a Kconfig dependency to enforce the HDMI driver to also be a loadable module in this case. Fixes: 278c811c5d05 ("[media] exynos_hdmi: add CEC notifier support") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/exynos/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/exynos/Kconfig b/drivers/gpu/drm/exynos/Kconfig index 1d185347c64c..65ba292f8e40 100644 --- a/drivers/gpu/drm/exynos/Kconfig +++ b/drivers/gpu/drm/exynos/Kconfig @@ -1,6 +1,7 @@ config DRM_EXYNOS tristate "DRM Support for Samsung SoC EXYNOS Series" depends on OF && DRM && (ARCH_S3C64XX || ARCH_EXYNOS || ARCH_MULTIPLATFORM) + depends on (MEDIA_SUPPORT && MEDIA_CEC_NOTIFIER) || !MEDIA_CEC_NOTIFIER select DRM_KMS_HELPER select VIDEOMODE_HELPERS help