From patchwork Wed May 17 00:33:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9729823 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 A8F4F60138 for ; Wed, 17 May 2017 00:34:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99BE0201F3 for ; Wed, 17 May 2017 00:34:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B24D286C4; Wed, 17 May 2017 00:34:24 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 2754C201F3 for ; Wed, 17 May 2017 00:34:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51B6C6E38B; Wed, 17 May 2017 00:34:23 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x22b.google.com (mail-pf0-x22b.google.com [IPv6:2607:f8b0:400e:c00::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id CDF956E388 for ; Wed, 17 May 2017 00:34:21 +0000 (UTC) Received: by mail-pf0-x22b.google.com with SMTP id e193so88305852pfh.0 for ; Tue, 16 May 2017 17:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ShdIkwwCASxfqphEKKnkfxOOQ8gWaSNZdzHqUSuZx8s=; b=M582BwStBclKN3Q++1pRCWR0kp1Zf2/6M6MbzTmckqJ00+8pRfMnHEu6YuMdCGO47W UtXldhOSgamoBpRDf0H3lInakWbKb+SG1g9gBzTrZEdEQqjWS52XwTXK9a8OCi3k7QIw KewGn8tnoihlXqW37l2j15f2bRKOGDrhI/q9KUJS8G55FqnClB3m6ZvA/qenqcsIRmsa nCe/FSrfvnitxRB9HQJx/+crmbCaNI2sqYveUNdWVbI/fuW12f63q0yyn33ryuHy1+pz fDAN3n+svhNoCQa6mNSMaEKbzN92TXk9viw7Z0vjUg//5Dy+Oxu7KgpdTVl1ie5W8NHn Sqng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ShdIkwwCASxfqphEKKnkfxOOQ8gWaSNZdzHqUSuZx8s=; b=p5vaPdM8QzEsJuxDae1prAMyChJ62YIbMP5nd8smaODhv7kP+sCc/qrxboRmbU6yWx Ff3+XY81+fdeTiASKBhMsBenhfFzwZ0bI49i7QbobuQYBh09nxPn4N/u0bL4XXLsB/AS vijoUHWyY4MG1Z5Ip/gLRZtEaOryxjoSAoFl0aI7nN1lThERaSMFLg1y6DE08FuvpcoA dYy9YMlphG7GIicyZ/Oqx4Vsc0ueCvEFi2ZQLky5JyPjNLcsvSJO8m6DOo4p3tiTw/X1 0wkrXcwPJr/0OBz/8sn36yoCevT8onIUfY3G6SIX7FnuNUXcaLQQGBkkX8ako40/W8xa K83Q== X-Gm-Message-State: AODbwcABXRxGWjG+YUgf3IJKD3lWllm+qZjJMNsqIkbXddf22KCmF32U WvfXLCHFGdojgAYp X-Received: by 10.99.181.25 with SMTP id y25mr761835pge.192.1494981261238; Tue, 16 May 2017 17:34:21 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([172.22.64.53]) by smtp.gmail.com with ESMTPSA id c12sm334400pgn.21.2017.05.16.17.34.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 May 2017 17:34:20 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 24F3B11F858; Tue, 16 May 2017 17:34:20 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Dhinakaran Pandiyan Date: Tue, 16 May 2017 17:33:59 -0700 Message-Id: <20170517003403.152680-2-puthik@chromium.org> X-Mailer: git-send-email 2.13.0.303.g4ebf302169-goog In-Reply-To: <20170517003403.152680-1-puthik@chromium.org> References: <20170517003403.152680-1-puthik@chromium.org> Cc: Puthikorn Voravootivat , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v8 1/5] drm/i915: Drop AUX backlight enable check for backlight control X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP There are some panel that (1) does not support display backlight enable via AUX (2) support display backlight adjustment via AUX (3) support display backlight enable via eDP BL_ENABLE pin The current driver required that (1) must be support to enable (2). This patch drops that requirement. Signed-off-by: Puthikorn Voravootivat --- drivers/gpu/drm/i915/intel_dp_aux_backlight.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c index b87c5a381d6a..d32c06583e0b 100644 --- a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c +++ b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c @@ -165,7 +165,6 @@ intel_dp_aux_display_control_capable(struct intel_connector *connector) * the panel can support backlight control over the aux channel */ if (intel_dp->edp_dpcd[1] & DP_EDP_TCON_BACKLIGHT_ADJUSTMENT_CAP && - (intel_dp->edp_dpcd[1] & DP_EDP_BACKLIGHT_AUX_ENABLE_CAP) && (intel_dp->edp_dpcd[2] & DP_EDP_BACKLIGHT_BRIGHTNESS_AUX_SET_CAP) && !((intel_dp->edp_dpcd[1] & DP_EDP_BACKLIGHT_PIN_ENABLE_CAP) || (intel_dp->edp_dpcd[2] & DP_EDP_BACKLIGHT_BRIGHTNESS_PWM_PIN_CAP))) {