From patchwork Wed Nov 15 23:18:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 10060501 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 6ED88604D4 for ; Wed, 15 Nov 2017 23:18:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CD1E2A384 for ; Wed, 15 Nov 2017 23:18:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FD9F2A38C; Wed, 15 Nov 2017 23:18:16 +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=-6.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_TVD_MIME_EPI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70DFD2A384 for ; Wed, 15 Nov 2017 23:18:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757744AbdKOXSO (ORCPT ); Wed, 15 Nov 2017 18:18:14 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:48594 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757328AbdKOXSN (ORCPT ); Wed, 15 Nov 2017 18:18:13 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 2028E81569; Thu, 16 Nov 2017 00:18:12 +0100 (CET) Date: Thu, 16 Nov 2017 00:18:11 +0100 From: Pavel Machek To: pali.rohar@gmail.com, sre@kernel.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, clayton@craftyguy.net, martijn@brixit.nl, sakari.ailus@linux.intel.com, Filip =?utf-8?Q?Matijevi=C4=87?= Subject: [PATCH for sre] Fix "backlight" on N9 Message-ID: <20171115231811.GA25191@amd> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi! This should get "backlight" to work on N9/N950. First hunk may not apply to you. Signed-off-by: Pavel Machek diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c index 24b459e..57827a1 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c +++ b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c @@ -374,8 +374,6 @@ static int dsicm_bl_update_status(struct backlight_device *dev) else level = 0; - level = 0xff; - dev_dbg(&ddata->pdev->dev, "update brightness to %d\n", level); mutex_lock(&ddata->lock); @@ -1382,6 +1380,7 @@ static int dsicm_probe(struct platform_device *pdev) if (ddata->use_dsi_backlight) { struct backlight_properties props = { 0 }; props.max_brightness = 255; + props.brightness = 128; props.type = BACKLIGHT_RAW; bldev = devm_backlight_device_register(dev, dev_name(dev),