Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp884478pxb; Wed, 27 Oct 2021 14:26:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+zjjc0BwLIxRY5cJb/oydAPDR3PU9WcgGZL2pdEWrOiPsG/zg+GvWRjj5EIFhiQPxmgaw X-Received: by 2002:a63:724f:: with SMTP id c15mr165946pgn.227.1635370006460; Wed, 27 Oct 2021 14:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370006; cv=none; d=google.com; s=arc-20160816; b=wdVLZSO7S54fqBY8p3yUAOvzwiSOyK6iGKZaXil/WVFQpCYEw0HlB0Ngd3AECagx4g LjovRtaJllsq1fV9IphTt3uJy/MZw85UWWZFmfTgZyNk1wbGkrAlBnsCREUTb1ydMf9S Un7YGjWdo6b69C3TqsmbABSoD4Ppk40I+2NUIxezRCdeNrcLk24XGvsFQnynOiQVZris incwCqEygR68tfV2aZq3877CtHGu9V9IFCtOwCDD3ImBtTZrVmwSz+Qz0aeilcPqaaAn Uu50amJYVsa+gruWEJMbZdfnOH+tddNAALJmhh+Atdohw1NYgEMtx9BiDaLILfOZAbNx AXFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=atV3jPcnEVsT86Xg/Zlq4dcaHHJ1Ri2g2ZLr/E6tGhM=; b=Ar0cVi1ppfRqNSRXMVg7UckhNKh7ILj/x8jlYOQS4TThAaDRtp3KdsxslKmFd69pe0 qcHp1rZ7Hv4YjdZLdSwauBr24NLEWNV8ZGhdwOKf+9zEalFHs7fISFmsu8G84FP8CGmr a8erxZRzg95AaD3DKFpPAcQ8hCmT2fl04jIUdj8JnmU0kma7FVydk9r0Enm4VuPc1L7L 9OcEA9B33dJq5iubpMzSe0bqx0Qx71ruDVSav+rKzZCTC4d4cBkAfOM8O2utkfXkR4b8 ZbHNrvXceSC8XQaBhumOUTgmsN7IJahbnzHAw7m9Zx27NUzLaDiXL6daScNyV/fRd1qk YBiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gh6LrMhV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k34si1722643pgi.580.2021.10.27.14.26.34; Wed, 27 Oct 2021 14:26:46 -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=@kernel.org header.s=k20201202 header.b=Gh6LrMhV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242152AbhJ0Nar (ORCPT + 97 others); Wed, 27 Oct 2021 09:30:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:55640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233118AbhJ0Nar (ORCPT ); Wed, 27 Oct 2021 09:30:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1A41A60462; Wed, 27 Oct 2021 13:28:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635341301; bh=PGO1sKMkFxhSgafCfuIdDyaWHOAra0sduE/qroUyhJA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gh6LrMhVRb+w8cc6fASkt85HSUDcujVbPOdJf+kYKM4c10OkGaWKz0tej4i/v3gqL gqIpguIZ+CYCEkX8TMK1GyLQbICCXX8D3hVYu84Wn0s8UH3S16wO6eRz+4zepH+vZ+ yjfArY3xgIAwyH8kYC5jkIQ28ZeLXvkParFkxkxSzroPleW5KcOAvnt/V+vK6xwsrO 4k5WYVVKieMsJfrOe+vNpBAnsNhu7nEztCQqf/Q9FCiTcppHLm6f/7/iPdD4feBbeU m6EmfbImK972UruDY/qXwXB7qC9tmGF3gPJu4JWrykH2pXYQ4LAYB3ovC7PgfBauuc mL315UjXldK2g== From: Arnd Bergmann To: dri-devel@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter Cc: linux-fbdev@vger.kernel.org, intel-gfx@lists.freedesktop.org, Arnd Bergmann , Matthew Auld , Zhenyu Wang , Alex Williamson , Jason Gunthorpe , Daniele Ceraolo Spurio , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] [v2] i915: fix backlight configuration issue Date: Wed, 27 Oct 2021 15:27:14 +0200 Message-Id: <20211027132732.3993279-3-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211027132732.3993279-1-arnd@kernel.org> References: <20211027132732.3993279-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The i915 driver can use the backlight subsystem as an option, and usually selects it when CONFIG_ACPI is set. However it is possible to configure a kernel with modular backlight classdev support and a built-in i915 driver, which leads to a linker error: drivers/gpu/drm/i915/display/intel_panel.o: In function `intel_backlight_device_register': intel_panel.c:(.text+0x2f58): undefined reference to `backlight_device_register' drivers/gpu/drm/i915/display/intel_panel.o: In function `intel_backlight_device_unregister': intel_panel.c:(.text+0x2fe4): undefined reference to `backlight_device_unregister' Change i915 to just 'depends on' for both BACKLIGHT_CLASS_DEVICE and ACPI_VIDEO, which avoids a lot of the problems. Link: https://lore.kernel.org/all/20200108140227.3976563-1-arnd@arndb.de/ Link: https://lore.kernel.org/all/20200417155553.675905-1-arnd@arndb.de/ Signed-off-by: Arnd Bergmann --- This change depends on cleaning up drivers/video/fbdev to no longer 'select' I2C and BACKLIGHT_CLASS_DEVICE, otherwise it causes dependency loops. --- drivers/gpu/drm/i915/Kconfig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/Kconfig b/drivers/gpu/drm/i915/Kconfig index 84b6fc70cbf5..f427e6d50d9b 100644 --- a/drivers/gpu/drm/i915/Kconfig +++ b/drivers/gpu/drm/i915/Kconfig @@ -3,6 +3,8 @@ config DRM_I915 tristate "Intel 8xx/9xx/G3x/G4x/HD Graphics" depends on DRM depends on X86 && PCI + depends on ACPI_VIDEO || !ACPI + depends on BACKLIGHT_CLASS_DEVICE || !BACKLIGHT_CLASS_DEVICE select INTEL_GTT select INTERVAL_TREE # we need shmfs for the swappable backing store, and in particular @@ -16,10 +18,6 @@ config DRM_I915 select IRQ_WORK # i915 depends on ACPI_VIDEO when ACPI is enabled # but for select to work, need to select ACPI_VIDEO's dependencies, ick - select BACKLIGHT_CLASS_DEVICE if ACPI - select INPUT if ACPI - select ACPI_VIDEO if ACPI - select ACPI_BUTTON if ACPI select SYNC_FILE select IOSF_MBI select CRC32 -- 2.29.2