From patchwork Thu Jan 12 08:57:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 91055 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1822348obz; Thu, 12 Jan 2017 00:58:19 -0800 (PST) X-Received: by 10.84.229.13 with SMTP id b13mr1461235plk.175.1484211499105; Thu, 12 Jan 2017 00:58:19 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id p61si8630138plb.159.2017.01.12.00.58.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 00:58:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F0E3D6EBD7; Thu, 12 Jan 2017 08:57:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5C0E46EBD5 for ; Thu, 12 Jan 2017 08:57:46 +0000 (UTC) Received: by mail-wm0-x22f.google.com with SMTP id c85so10455757wmi.1 for ; Thu, 12 Jan 2017 00:57:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=vzv+v5o5pY++OkVEdDSuF4fmpS2suY4shw9KJDUQwcM=; b=HbJqZ8LUULL36BoU0bpc2jNq9k9h9YcuNiG91/xknelZk+9DoiLTGsVGVUO/099VXT sUGfgjPmObf0BK7KFAFMuBnkU2kOneK0VcutTRLVqqknVCS6vNRp0UUitmg0m3tHuyiB tz8qs50roRb1leGmFtZmx4qqPh7+iRtTvUPxw= 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; bh=vzv+v5o5pY++OkVEdDSuF4fmpS2suY4shw9KJDUQwcM=; b=ikTYJqTSnRi69jIyFSErqGuB6SIqpia5p8Jy9dFk+x4Tbb8bofzteB+XdeyKTeMn1j TV0g+5htIu+9PT5x0Wz5Nt1agyP8F9BxvF3tmkWyUxKAquzK0MfO2cHL9n5KhEaiMIjV O8LNEAd219COhC1QBZyus7tP9tLevDNBoJGE2ywX0TUgojW/pNNpPEqN7wandqaCqwvd XjXvM/y/Tqop5rBdGbGFz8MtSwniRqrGz4pjU4cUPzQDQWSVfjvU0dtCHN61Dl2s2DDm DyrVkWMOOeAaArFh8aotnYarJpfTPdIry3pYszDA5eHpgBtQonioVdtIwYemGd/jrA06 aFiw== X-Gm-Message-State: AIkVDXI81nbYPH1W/Gh+NxD9qWLFwVY8vaf9xQLtnYxxL8Bndxd+0FMBOBj4atOG+xWysvEa X-Received: by 10.223.139.19 with SMTP id n19mr7259421wra.5.1484211464897; Thu, 12 Jan 2017 00:57:44 -0800 (PST) Received: from lmenx321.st.com. ([80.215.5.248]) by smtp.gmail.com with ESMTPSA id 14sm2075976wmk.1.2017.01.12.00.57.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Jan 2017 00:57:44 -0800 (PST) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm: fix MMU dependencies Date: Thu, 12 Jan 2017 09:57:36 +0100 Message-Id: <1484211456-5759-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: Daniel Vetter , Arnd Bergmann 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" DRM_VM and DRM_LEGACY shouldn't be selected if MMU isn't set. Fixes: 62a0d98a188c ("drm: allow to use mmuless SoC") Signed-off-by: Benjamin Gaignard Cc: Arnd Bergmann Cc: Daniel Vetter --- drivers/gpu/drm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 6f3f9e6..90bc65d 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -138,7 +138,7 @@ config DRM_KMS_CMA_HELPER config DRM_VM bool - depends on DRM + depends on DRM && MMU source "drivers/gpu/drm/i2c/Kconfig" @@ -267,7 +267,7 @@ source "drivers/gpu/drm/meson/Kconfig" menuconfig DRM_LEGACY bool "Enable legacy drivers (DANGEROUS)" - depends on DRM + depends on DRM && MMU select DRM_VM help Enable legacy DRI1 drivers. Those drivers expose unsafe and dangerous