Received: by 10.192.165.148 with SMTP id m20csp3725006imm; Mon, 30 Apr 2018 05:27:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqhbmuj4kmJs9a3rJREX70TP9Iy6Xs/Xh+JOoEIMpkMW1l+3k5XRCEG8dDhZs2NlUIvzlf/ X-Received: by 2002:a63:78ca:: with SMTP id t193-v6mr9996245pgc.255.1525091261420; Mon, 30 Apr 2018 05:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525091261; cv=none; d=google.com; s=arc-20160816; b=paQ1Y9gcbpUZrlrp3GZKxSBys83Xn0E84s38uRpFbfleBPLWvl7nSY4DIWXlqevmAD RWBn9sh/Ob0yvuIVxByy/YH3OJk7ci7uAN5yKAtc/qLyL4Bd+cgzoo/7RE53DWk3n0PO RZhsj0pJNTIewYiRUDDgxnlJNuF03rvWlkD8rzaZVMktgEdXXcbJStjB+rbHZqM+DzJq Kl3qGhHch90RqGdym12GpX1xBezxOmfXB3cHqi/rRZwOXVx5FnWPjGrIEBksrxOYs6Iz xMzE5qxOd5JImnCMynB5PIk8mBxko4lrnaAR7jza3ZjmPod4S/RmISFzKZ9rx3rlLI56 9VYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=WfW7QckoHZktQ2+rD8sBqBHueTwI0rpXZjbmtfwf7gI=; b=1Loe+EgC/JTJgYZ4izkh+W8VYEZg3RaFOOCE2PJMNAlo/24J7RmWwTAqASbWKFJ1Yc 1ooM2Oq/ScPVjnpkR8xC2C5YYUwgyj7iyYBmRFQTPRUgUNzzVIKQJE51gRNxhcu9w0Yc /LD9SgAvDfi9srf7kkaWqqwMnd5SNxsKYdZPEYV6IqPazAJZutSHPrKa1RzwUzWp/FHX 4K7kuXjMQAxb1grRwscJK+4b1pAJTnk6anYTgwlNxvjf9O1X8ZXvAqFFd0zCRRwltKip s+qRjnX4MseshkxCqiCV8jJwnzAo2YskOSydBT+6lEFhr1+sonwADnqSUXpFPZBSmNso Ne5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRwv1MPa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y34-v6si7148426plb.248.2018.04.30.05.27.26; Mon, 30 Apr 2018 05:27:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRwv1MPa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752959AbeD3M1R (ORCPT + 99 others); Mon, 30 Apr 2018 08:27:17 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:51038 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752255AbeD3M1Q (ORCPT ); Mon, 30 Apr 2018 08:27:16 -0400 Received: by mail-wm0-f44.google.com with SMTP id t11so12876897wmt.0 for ; Mon, 30 Apr 2018 05:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=WfW7QckoHZktQ2+rD8sBqBHueTwI0rpXZjbmtfwf7gI=; b=MRwv1MPasNoe10n1LKtx5+kQBJq6HtqqWnGVYByT2ZD+/rbn20z2A+c4I8yLyfiiH5 Odwb8srVddo0Txh1mzjL6/+SKo+mYJtdeT1JGu37Ja2iF+togOJb5OlVF8eWDUsbIgDy +HDj8p2pjXoYUAbYaKnSp+p+uOtQW3HNMpWWE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=WfW7QckoHZktQ2+rD8sBqBHueTwI0rpXZjbmtfwf7gI=; b=Rje97AAmb6TpgMrqfHuQx5bVSaInjoAu0wsFz3TDyY6+NiXDVjNryr2srdNhAIIjr/ mIPlhNjbK/WhNlem8Aqg1HYV6yw918Z5Jat/x+mW0UQic5alXiEJXtcFh5Z9ZJGy7g+E KPJlYA/hPhyc+ADCbKGylIBa3ptpT+0GuWuLqQhh308g3VRkgvoppz7Hdi8ILuqGXXNg J6J4CI9TgIVTYaZcQrV23rYwGEAwyUhUOeJKduTzpVOrtYhP1VCbzglM4r29ANEhi7Ag kdfqvnnvVVN8Sc6LJd/bDCbmwGkINwYVR6H036WlAvHWNjvtqfF7OirqMH2FGR+op3WJ 8dzg== X-Gm-Message-State: ALQs6tBVXGwQrEQsHlV9O+56ARcccI/sDbSYD953iX1dfKBKfsUHGT/9 lriwJDrBw2CHmpcl0jmGZvEBBg== X-Received: by 10.28.69.132 with SMTP id l4mr7240089wmi.142.1525091235010; Mon, 30 Apr 2018 05:27:15 -0700 (PDT) Received: from dell ([2.27.167.55]) by smtp.gmail.com with ESMTPSA id m134sm12499705wmg.13.2018.04.30.05.27.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 05:27:14 -0700 (PDT) Date: Mon, 30 Apr 2018 13:27:12 +0100 From: Lee Jones To: Daniel Vetter Cc: DRI Development , LKML , Daniel Thompson , Jingoo Han , Meghana Madhyastha , Daniel Vetter Subject: Re: [PATCH 1/6] backlight: Nuke unused backlight.props.state states Message-ID: <20180430122712.GG5147@dell> References: <20180425174253.4616-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180425174253.4616-1-daniel.vetter@ffwll.ch> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Apr 2018, Daniel Vetter wrote: > The backlight power state handling is supremely confusing. We have: > - props.power, using FB_BLANK_* defines > - props.fb_blank, using the same, but deprecated int favour of > props.state > - props.state, using the BL_CORE_* defines > - and finally a bunch of backlight drivers treat brightness == 0 as > off. But of course not all of them. > > This is way too much confusion to fix in a simple patch, but at least > prevent more hilarity from spreading by removing the unused BL_CORE_* > defines. I have no idea why exactly anyone would need that. > > Wrt the ideal state, we really just want a boolean state. The 4 power > saving states that the fbdev subsystem uses are overkill in todays hw > (this was only relevant for VGA and similar analog circuits like > TV-out), the new drm atomic modeset api simplified even the uapi to a > simple bool. And there was never a valid technical reason to have the > intermediate fbdev power states for backlights (those really only can > be either off or on). > > Cleanup motivated by Meghana's questions about all this. All applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog