From patchwork Thu May 11 23:02:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Puthikorn Voravootivat X-Patchwork-Id: 9723219 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 428D260236 for ; Thu, 11 May 2017 23:02:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 394A12684F for ; Thu, 11 May 2017 23:02:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C3AE28660; Thu, 11 May 2017 23:02:41 +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 B845D2684F for ; Thu, 11 May 2017 23:02:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2DB286E5F7; Thu, 11 May 2017 23:02:40 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) by gabe.freedesktop.org (Postfix) with ESMTPS id 36EBB6E5F7 for ; Thu, 11 May 2017 23:02:39 +0000 (UTC) Received: by mail-pf0-x236.google.com with SMTP id e193so20654247pfh.0 for ; Thu, 11 May 2017 16:02:39 -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=7HxOZxPfrwsSMDItbdypVUttwkaA1GbiVNnuCFwV9fg=; b=jpBD7oYg4TLGLqqjO9UsZrQFmvX/5O1LFRmKY5cmE+FZXrZE4fLWQIomrMEBr6homU q3S+JWGOz+0p8o9U9mfSfHNWbttzrC3yqLkqhLr1xncD9Yevm0OzSsj+UHYHcuxhqxFq VKShFxGYoxyplnSJjyXmjoqUCTThxxnPAe++KQc2VYU9WzPr3nwYH/x/WPJckCf4IlhM O6m9yE3kS5no2W+YcGEWVsPaYB4KtQuWTbSEg4har58pHq+q0gJhAcAFFl1PULMqwsn+ rxBlf0GEhZPuH/l/f+NoBT5Tp1b5oUkciizEiCwpIxlrR4xhRUFlZo4GAw9jM1gt9S0E Jl3g== 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=7HxOZxPfrwsSMDItbdypVUttwkaA1GbiVNnuCFwV9fg=; b=Zu4IEWKlkEwiMW2CUcI+lViMkXPXFfpKzkikDziaq7g7CW9qAf1tytHqt/reS5+cPH I0ZfqKXD3ZFOr/3tCKcz4zEfXqOoYQYkdU5Pc9V3a38uWM+W5l4yq9oKoJHDN9aPFtUj zLOsaMmOOCZOP6mF/IQbLOMObT334LkFlftlEUiEQ/4Oi9lppB3Asv7OrkOVmH5ks97P YYtPbzrTokNqQj/xumunr1ZCKK8Hzs82SURxCzPXsGJvxode2NcARCmHpkmdw1xAi6+3 +bKHVhh2BCOIsrmSMu8C9SMYdqZYR25Pxc4pjFnjdm/5mJ6ALx8FKmapnGBR889qI0ZZ 1WCg== X-Gm-Message-State: AODbwcDUBU23lNs2GAQP18x57Cw/qv/rok7qw6Dt520L2uyD+ZfMzBDi lqb/lGTmtgmOpmv3 X-Received: by 10.98.215.72 with SMTP id v8mr994347pfl.121.1494543758561; Thu, 11 May 2017 16:02:38 -0700 (PDT) Received: from puthik2.mtv.corp.google.com ([2620:0:1000:1301:e1bd:1991:2100:b4ef]) by smtp.gmail.com with ESMTPSA id k23sm2052813pgn.11.2017.05.11.16.02.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 16:02:38 -0700 (PDT) Received: by puthik2.mtv.corp.google.com (Postfix, from userid 218808) id 7BA0611F861; Thu, 11 May 2017 16:02:37 -0700 (PDT) From: Puthikorn Voravootivat To: intel-gfx@lists.freedesktop.org, Dhinakaran Pandiyan Date: Thu, 11 May 2017 16:02:17 -0700 Message-Id: <20170511230225.142870-2-puthik@chromium.org> X-Mailer: git-send-email 2.13.0.rc2.291.g57267f2277-goog In-Reply-To: <20170511230225.142870-1-puthik@chromium.org> References: <20170511230225.142870-1-puthik@chromium.org> Cc: Puthikorn Voravootivat , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH v7 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");