Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp179634rwd; Tue, 6 Jun 2023 21:00:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6AsXZtSleNSUgtqeYNk4Sja8CaqneghnGh3hjSTtFiGdbhTZwicBvnIhnPhEszcRiG1/d/ X-Received: by 2002:a17:902:6b03:b0:1ac:83d1:9269 with SMTP id o3-20020a1709026b0300b001ac83d19269mr3889753plk.16.1686110412089; Tue, 06 Jun 2023 21:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686110412; cv=none; d=google.com; s=arc-20160816; b=SjtylAQuhUxzuvkvhPwMbA+vVrCT0pj/VpESqdWSMxlW9Gv1Omj9fdoznWBssXj+1Y Af6Bajs4a1nmVocW4WubU5ck/7L2QIjQtjXcaQ2nyIz7APDP/Zn8GAO+wV+9BEIiWrLF ABbe2W4DkLT239oTHx2bxleN2JLu40P4rZqc6oDwBRJYZVSVHToq6JfjLLulY8nBT+xP 2pI9QEQGVKOMf5JLhEMcqjokOk17AMMa7j1nF5eScxTR3yD6cewJJk+LjIlgGJgKhvt4 M5pSfwSd6fVRbthWIUKZPySZw8EuLUOUVqQ+u3uhnuRkMfE78xD+ozNdQ5OfYHRTM4zD oqog== 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 :message-id:date:subject:to:from:sender:dkim-signature; bh=IG9nOZCUv4yUauPuQq4zcNH7o7ub8jEFkawKImlrhhk=; b=K4er2qwrDFuyDsWvOzPU0KGJDHIpfV6doGwU7hTWjZQP7xug7ZqMxYw+q/787nad1Z JuavPOCrb8JUxJgc7hcYDN2A70t5hHXej2BuuAtekCNZrHefnC5gluV/Bv0DnMCr4Ngz sZp4MHEYk6lYk8WWbdhRmQKV+b4+dlDdsZki9iwJ1PXa8EVthwn1lgIbSr4stLRfyCYz dUrfsDlbNcrEm9jakXBCDSdogaYHpOx5hmkLT/nSVPaP93/tD7oaxQe5FMtuTVSdK6dr 8bsOelFFU6D83VEnS7ikGs7EgorBXcLIVLkGuvwaWPtrKXHY6wYAw8Y+OIPoDuEUuMhm eRjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qX3ZTWs1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020a170902d88200b001aada12d628si8040061plz.585.2023.06.06.20.59.56; Tue, 06 Jun 2023 21:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qX3ZTWs1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240645AbjFGDnk (ORCPT + 99 others); Tue, 6 Jun 2023 23:43:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234738AbjFGDng (ORCPT ); Tue, 6 Jun 2023 23:43:36 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09F1819B7; Tue, 6 Jun 2023 20:43:35 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-65131e85be4so6922191b3a.1; Tue, 06 Jun 2023 20:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686109414; x=1688701414; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:from:to:cc:subject:date:message-id:reply-to; bh=IG9nOZCUv4yUauPuQq4zcNH7o7ub8jEFkawKImlrhhk=; b=qX3ZTWs1IRMqIvjqq7bqnABkYurX/9l4HNYJZ2i7tTq57fsvu+M9epZ/q0UEZOn/Ic 4ZqsQZ1vMMD6GRJY++duyl6bRGikNkyup4l4TVii0ch/QXzZtgMnQTwrVllhDuznP96K 6qIO1euPWBoG/1K86g0cU8qhu86f8aeKXLmf4lH4HHtpqqdaPPq5U/Q/eFSh2RKXR+YH 2tPaxw9IED5MCocPPjkvaWFYj3StaWMMJ7LZBWKjGTH6gl+IzVV9ErDI+EROCin3qvZh U+ZajWgWT3Sob4nhDhl8mT/Bz6UQaNFoQAuO7kRIoJmK2UquREEaPiVD/ktGBnbr+HmM qjMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686109414; x=1688701414; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IG9nOZCUv4yUauPuQq4zcNH7o7ub8jEFkawKImlrhhk=; b=iDucgUTTUb2rQOybFoPpRkZAdTyVzScHWKSyaZ7m6dAOafkPqr9nvTMDUkrcGvGT/g WU3Df7R6vFzXySvLl0eHgq5LIknAq7UtClvHbioI+3eZoXhiOgPih0t4ai3c43uJNryF kPIpJEeXj2G+ONMw58qq0D/pwImCDV1tMwCOJ+59hm/TRLr2+OkyE8BWrWcY6FlJxHu5 oM1cpLXTMfyl/C0hIacwU4d7rqbDqWbhyGPZQn4ew9yKfXnoipFGZ2LPCLuvPH1AQlCJ PppXvtOuXAmYEnBB7cf4CA658InqVDCXHSrurYn1UdenfxdYNne1/d9CWnSM5pq0Lu59 le3Q== X-Gm-Message-State: AC+VfDxuzZUadVTZOBgH/3dtC53FjeNjuGv350WcTutZxWJaPuj+9NKo CZf5Ruky/UPzw6PIgEPxRBw= X-Received: by 2002:a05:6a00:896:b0:641:39cb:1716 with SMTP id q22-20020a056a00089600b0064139cb1716mr5784067pfj.20.1686109414251; Tue, 06 Jun 2023 20:43:34 -0700 (PDT) Received: from localhost (220-135-95-34.hinet-ip.hinet.net. [220.135.95.34]) by smtp.gmail.com with ESMTPSA id g2-20020aa78742000000b006542462d040sm6233624pfo.206.2023.06.06.20.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 20:43:33 -0700 (PDT) Sender: AceLan Kao From: AceLan Kao To: Matthew Garrett , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Hans de Goede , Mark Gross , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86: dell-laptop: Add drm module soft dependency Date: Wed, 7 Jun 2023 11:43:31 +0800 Message-Id: <20230607034331.576623-1-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Chia-Lin Kao (AceLan)" dell_laptop is somethines loaded before nvidia driver, causing it to create its own backlight interface before native backlight is set. This results in the presence of 2 backlight interfaces in sysfs and leads to the backlight can't be adjusted. To work around this issue, delaying the loading of dell_laptop until after drm module has been loaded. Signed-off-by: Chia-Lin Kao (AceLan) --- drivers/platform/x86/dell/dell-laptop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/dell/dell-laptop.c b/drivers/platform/x86/dell/dell-laptop.c index 1321687d923e..535e6c3df529 100644 --- a/drivers/platform/x86/dell/dell-laptop.c +++ b/drivers/platform/x86/dell/dell-laptop.c @@ -2316,6 +2316,7 @@ static void __exit dell_exit(void) late_initcall(dell_init); module_exit(dell_exit); +MODULE_SOFTDEP("post: drm"); MODULE_AUTHOR("Matthew Garrett "); MODULE_AUTHOR("Gabriele Mazzotta "); MODULE_AUTHOR("Pali Rohár "); -- 2.34.1