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: 9719031 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 B90D46035D for ; Tue, 9 May 2017 23:41:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA9A228458 for ; Tue, 9 May 2017 23:41:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FA482847D; Tue, 9 May 2017 23:41:14 +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 31D8028458 for ; Tue, 9 May 2017 23:41:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B304D6E1E8; Tue, 9 May 2017 23:41:13 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pg0-x22a.google.com (mail-pg0-x22a.google.com [IPv6:2607:f8b0:400e:c05::22a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1066D89DE5 for ; Tue, 9 May 2017 23:41:05 +0000 (UTC) Received: by mail-pg0-x22a.google.com with SMTP id u28so7243010pgn.1 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=E6mMx21A83/Sm5cfSHnJtWdTImSpeb4OPG0M26i/t2+o9XjEBi9wl7vWQf/O/6zIqH E1+mYaTWNxD3utszLtDGt30DJNVMmEMMsQybSWJ2Vh2/MoazfwQa0K/mI3c934z00R7b BYFAOp27h4+BM+7U+QOorUTRlJsMzVSImJV3EmUmx3PxkXcTVWs/f9oKKIE7njRxcQjM ntSOOpK1miHS7vft1J37e4jJd1tnLQLTSgg2KkYJiFHAcAZfJ54rgumVC1Xpc+P+3okZ ZFeiHhGzvrp/Tq7fXd+KkLjdCOd+US0PIrk9kOf5rGgiU8W6AD7qlwZV1j4zBOTU4P+O fcug== X-Gm-Message-State: AODbwcAK0WdwaL3gM9aJy4jfKezO5UAvjq13wyPBt7eWBjQgNEmoW274 3zuA2ey1/QL4rOPa 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 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> Cc: Puthikorn Voravootivat , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v6 1/9] drm/i915: Fix cap check for intel_dp_aux_backlight driver 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 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");