Received: by 10.223.148.5 with SMTP id 5csp7148865wrq; Thu, 18 Jan 2018 01:21:11 -0800 (PST) X-Google-Smtp-Source: ACJfBouonA5WF1YQ8ypVuG7zDcaVRwG+nxFvLVfRfnxeLrGp6ETbLyPP/vn0CMvM7kthBZT5UIM8 X-Received: by 10.84.149.168 with SMTP id m37mr44380306pla.353.1516267271818; Thu, 18 Jan 2018 01:21:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516267271; cv=none; d=google.com; s=arc-20160816; b=GWMaFmzusIJqCBC0GjDArf7CnH3364g7ffGSyBpurGUUthBD5jNr+AFQ36p7wQxN4i z0bRCoyZqdJJiOVORlRnQ6+i6oaWVVl5Pyp14ntEILZOfvs80i8k9uUXlHhONGA6mPKn qZ0FBJ0lX0qmrsNQvhLchzcj7RdNXiZAnESpvwo4afGhH4ElAgmAQINv5K8D8s2hIrnD RFNc1fSgj/DDrkHsYbQZwZbWqrKsjCS5eg6QrJ0F7FlrGKNCz568rq8UNMkXvvKRbUWR xbjkCSV9Tcbliiq58nv8d3LNwSGz1sMG58gMpqiIc0CVIdnFTzqFPgvJQDXJAJLX3eVn 0aLw== 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=sIODQxpnzEVsw8AqKUMxMiEJpwHWzCF0J4o8QXxcIDc=; b=XjjKZ0ABaqLhMbciRwOzMEUH2VYeZ7h4Q+MRfc/rvTMaeekR5zKPmuLOmyYCJ3DB1d JrNNw+NioiDlAGjB80RM9Bv9vnFDZXgT3EahdG2WOBRRti/YyRupLbkYy2QbkBFPDy+P 7pPgxoVNnUXCtjr7EMp9gvB3rcdWs/THrTLPvQloCDtM2bnJoQSNzWXenuEPp9B6iwAZ tRHpwqxKmpDW6zUxTE22uu+ZSHBAap8x7B35nLFGa5vjDWv0Epxf7Yu7Uaj7sIlpzlSf yJl9Hki//YlG4OlbEeQpTws4bVKj1SzuufR3BA5UJW7JF9NyKwnkYfofLTdCGEd2m1si 0HKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aXQUK3gi; 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 b13si6280447pfd.85.2018.01.18.01.20.57; Thu, 18 Jan 2018 01:21:11 -0800 (PST) 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=aXQUK3gi; 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 S1754806AbeARIcx (ORCPT + 99 others); Thu, 18 Jan 2018 03:32:53 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:37237 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753541AbeARIcv (ORCPT ); Thu, 18 Jan 2018 03:32:51 -0500 Received: by mail-wm0-f53.google.com with SMTP id v71so21043431wmv.2 for ; Thu, 18 Jan 2018 00:32:51 -0800 (PST) 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=sIODQxpnzEVsw8AqKUMxMiEJpwHWzCF0J4o8QXxcIDc=; b=aXQUK3giGFbJ3U2VB7JKpGSE0gH7B36ODEBeyUg1rcKGyluML0wpQdBfND27LXUpeB GrjNQoYou4uvOXjEywjJPIdczDtasDVYPkzVw+UEN2k0AoYLsw7s2xwJu5RTy+QD8IdU yem/eOcCR/MgGlNEYS6uLKYpK+Px22LGJr+9Y= 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=sIODQxpnzEVsw8AqKUMxMiEJpwHWzCF0J4o8QXxcIDc=; b=jqMIt6VDpdXbfMx1SAv2nq7cNz16awNkFWU1CWf5KynHaxtw+1oXmVUhUUzm06JZET cca3c0oMiYCdblmC6dhx8hvSGyHUcLnT1nwZv4M4Jxj2Gi9+23ivJIhKRe3a6QOgVIZe iPsyY6vVxs3m28RYNypalI+x3RxetzvULy/5BwugzGwrec9ZcZ9bHldcESp//m/BTILX HfwBQe/90JTgxwnfWptGmlALNybFDqEx2dP7O15t73ir4kdG7QFA2xdsmlXjUcREJ7ll CpkUVa7Fov8vSIGscnKcmQPWWtxZmq4C0Y6r7m13czAHzdxzZ0sSoJMTUBaioEbuByXj +8JA== X-Gm-Message-State: AKwxytdd/TfT6fjhgS3voaM7MGR79y8x6cpE62bhqLnFheCFMffxQxH5 0NPQEfSKsBG+XVz/EzOFw14dXw== X-Received: by 10.80.177.13 with SMTP id k13mr6648488edd.154.1516264370455; Thu, 18 Jan 2018 00:32:50 -0800 (PST) Received: from dell ([2.27.167.60]) by smtp.gmail.com with ESMTPSA id w2sm4248214edb.4.2018.01.18.00.32.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Jan 2018 00:32:49 -0800 (PST) Date: Thu, 18 Jan 2018 08:32:47 +0000 From: Lee Jones To: Daniel Thompson Cc: Daniel Vetter , DRI Development , LKML , Jingoo Han , Meghana Madhyastha , Daniel Vetter Subject: Re: [PATCH 1/6] backlight: Nuke unused backlight.props.state states Message-ID: <20180118083247.2nwwguejmww5cb2x@dell> References: <20180117140159.27611-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: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Jan 2018, Daniel Thompson wrote: > On 17/01/18 14:01, 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. > > > > Cc: Lee Jones > > Cc: Daniel Thompson > > Cc: Jingoo Han > > Cc: Meghana Madhyastha > > Signed-off-by: Daniel Vetter > > Acked-by: Daniel Thompson > > Daniel: Ack is info for Lee J, not to imply you should take it through > one of your trees. Right. I'd rather take the set as a complete unit once all Acks are acquired though. Hence my silence thus far. -- Lee Jones Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog