From patchwork Tue May 9 23:40:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9719089 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 59A5E60364 for ; Wed, 10 May 2017 00:22:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49ACF28307 for ; Wed, 10 May 2017 00:22:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CD4228473; Wed, 10 May 2017 00:22:39 +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=unavailable 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 1239628307 for ; Wed, 10 May 2017 00:22:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 998E36E365; Wed, 10 May 2017 00:20:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com [IPv6:2607:f8b0:400e:c05::234]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0463689DC5 for ; Tue, 9 May 2017 23:41:05 +0000 (UTC) Received: by mail-pg0-x234.google.com with SMTP id u187so7232885pgb.0 for ; Tue, 09 May 2017 16:41:05 -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=3A9Rrt+vKdBak7IZPqVreipVUC8YjIBGLwlvHk6m4TA=; b=JJmDHTKPCGZPNcO/H6uhnAH9kQWNxhprPIfa3X3t/XKImEMzDMdDJY9QFFMRZutx9+ C88QJtOgbuBxFvlmBvQ4Me6J1iLJOgH65FEeMrwJ1QLmxRbzf2xJbCvHZOi5bF43FOLs NdJTZQvxSoIx73jyKGARUtzvJjL1AJA9wepLr1Npu4nAXy1ySeRpzTsi2JBGtnIOiZl8 EdMlF7z20GZhr0I6+ZslRaQ7/Qpphd+yunhnbAf7aHszK65x0CsWUvojf3txPLUijIlm paB5G+bPVfoOYHq0cPZzKl1LzuCoKn/fVaCpHMwOuuZMxatrZsw6UKVhLszEZLjgg7OZ jXhA== 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=3A9Rrt+vKdBak7IZPqVreipVUC8YjIBGLwlvHk6m4TA=; b=Sek53bF34+SDII1AfhFGia4TKzALSaxuP0Zox5FGuMYRtUE4FfHRFoHwpJs+vVXZds el8GQbQ7fMV7XXW6bBfnuivuCHFgls1TWEk/XF2JPLpH1RwdQT3tco+UnwVuf1Y4SArm MXFcMK8zOgchL8EQ6wifNi6FzaviqyRCloyBcCpxQ3Dvr5ewdLZ8F5/auQetcIRKSsdo mPE2pT/Wta1b1cKb++GzB1nEdYMH0H2dW7bKeuKAjXuI/hGUpNAvJIgxYcIMiOEfEYaa ezb5xccFEr5yHbP/ia97W+Hyr6qozkxTTcXXX2qOOc4venTOEBcK9YBW38lt+0JI0HC8 SC4w== X-Gm-Message-State: AODbwcAkSrj7whxMejA8Zt5vdSSlGhvvSjRsMcUU6bV4i7jLSyA3HA+y CXiC1t47NUE9dGq5 X-Received: by 10.98.209.65 with SMTP id t1mr2819904pfl.132.1494373264437; Tue, 09 May 2017 16:41:04 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([172.22.64.53]) by smtp.gmail.com with ESMTPSA id c12sm1807886pfl.79.2017.05.09.16.41.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 May 2017 16:41:03 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 024AB11F910; Tue, 9 May 2017 16:40:59 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Dhinakaran Pandiyan Subject: [PATCH v6 1/9] drm/i915: Fix cap check for intel_dp_aux_backlight driver Date: Tue, 9 May 2017 16:40:44 -0700 Message-Id: <20170509234052.189575-2-puthik@chromium.org> X-Mailer: git-send-email 2.13.0.rc2.291.g57267f2277-goog In-Reply-To: <20170509234052.189575-1-puthik@chromium.org> References: <20170509234052.189575-1-puthik@chromium.org> X-Mailman-Approved-At: Wed, 10 May 2017 00:20:18 +0000 Cc: Manasi Navare , Stephane Marchesin , Puthikorn Voravootivat , dri-devel@lists.freedesktop.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 intel_dp_aux_backlight driver should check for the DP_EDP_BACKLIGHT_BRIGHTNESS_AUX_SET_CAP before enable the driver. Signed-off-by: Puthikorn Voravootivat Reviewed-by: Dhinakaran Pandiyan --- drivers/gpu/drm/i915/intel_dp_aux_backlight.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c index 6532e226db29..341bf2cb0c25 100644 --- a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c +++ b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c @@ -144,6 +144,7 @@ intel_dp_aux_display_control_capable(struct intel_connector *connector) */ 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))) { DRM_DEBUG_KMS("AUX Backlight Control Supported!\n");