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: 10060505 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 9D365604D4 for ; Wed, 15 Nov 2017 23:18:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85E922A384 for ; Wed, 15 Nov 2017 23:18:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7911C2A38C; Wed, 15 Nov 2017 23:18:45 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2CF9F2A384 for ; Wed, 15 Nov 2017 23:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=1EQjP3G6p4hqknT5cgSmHESrIyu5KwTulVOVYwXhas4=; b=BtE SJESIdxXU8cRH/LyrJvdKVUZlPfJjqsuO4hGC/FzBY+8O0B451P1Y8jHZXrFym6+Y+C/sFbkp8vtN ABhoYZZxAoJrcu76/ohswiaePxoLjQqw1WNxX4MbKkmIA615NWHd3s4aeze9eqDCMXq4RrvJqMRX4 PMGNameO4STUWyhwwiFlt7jUNnNmhWm+t12K5jgJ/bgaF3kaeCi05Aw57WNj4cROHZeOEU2iLAgkF yrxAs5vjwJMj00A+Ca4znSxX4L2cyV/1YgiwOOjEJ0YgSInIH4WAUvT25icL+wcEmT/ZbxtxixDki nEPs2BazFYuW2AJd+3BizsEgJaB7asA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eF6x9-0003X6-1Y; Wed, 15 Nov 2017 23:18:43 +0000 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eF6x5-0003OT-Hn for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2017 23:18:41 +0000 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 User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_151839_757059_64F9D5E9 X-CRM114-Status: GOOD ( 12.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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),