Received: by 10.223.176.5 with SMTP id f5csp2631679wra; Thu, 1 Feb 2018 03:38:04 -0800 (PST) X-Google-Smtp-Source: AH8x2253+MHja6UBxcnGO8+/9DUpLA7tsnOIGTuJsqsqWTxMLVq3cc5hNmL2PLCEyoANn4ZpaP8a X-Received: by 10.98.110.202 with SMTP id j193mr36702695pfc.19.1517485084204; Thu, 01 Feb 2018 03:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517485084; cv=none; d=google.com; s=arc-20160816; b=b2QueIDFzPfJdoRdzn2ijCafdVeZ7ncbRKdt2nFk8qgFLvHdCuhcwABiOthvC5+m+S oKIbUrK75fCRh/HTOJpLb5e+bBE5Dcr3v+Zj4IqTAVAIcjHJD6M2MUHwlMxPJd9cAkDM DGKM75tWUmjflKnx7eIAq0Tk3FMR0u1nB2qZYM3rDq369wxu4ac7TaAMdy4gGEkQ0pEH qRd+/iPcDF37XJ/KgTKXMLh53fGS2XV4wDhnV07bHq2NdE/3W66PGxBsp3BVIdHHgM8h 2rkwA0bCrzUqLqZwIvOcexdpA5Vg0TskU0viE2W0b/SjX9A+vsfmoKzBhng8xEfVw5Tv 8u9g== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=PMrojZ+EC7QQSJjYcQ4qgqKNtyna5iWciwcCfTCxaUY=; b=D4zhxf0QzZpm/OmyKwQw8+MzGakD2GmSQ9bFAdrnvZsQ5d3h6Cp6FVa6okkvLEAVv/ 7ZvnyXKFmLVRphAejqe66BlmUbTfHAv71+/TfHEPuph+GerJ2ga6q01PlL9IQHKWs0xe JP7rw/auxd+H2ijTKwmV+sqwLdJ3wlXO0f9kEAx1yD1Uh8j5oZAoTkqZuWrPlnQVZlwY kzX4dIJn1EuPm0Jr2gPdwxyjzpZtudCYdy7fr+enH5QVlKv4WgxpQL40ATbV9ObLFOzk RdIMucMgdmbOnyLuRWsuYupPoj9SFMqHyhkhRTIGy5+N1DmHcAythIkA5nIXUAe711U4 K7yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C74MxRjH; 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 b3-v6si3774795pls.325.2018.02.01.03.37.49; Thu, 01 Feb 2018 03:38:04 -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=C74MxRjH; 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 S1752417AbeBALgL (ORCPT + 99 others); Thu, 1 Feb 2018 06:36:11 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:47031 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbeBALgI (ORCPT ); Thu, 1 Feb 2018 06:36:08 -0500 Received: by mail-wr0-f193.google.com with SMTP id g21so18561734wrb.13 for ; Thu, 01 Feb 2018 03:36:07 -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:in-reply-to:user-agent; bh=PMrojZ+EC7QQSJjYcQ4qgqKNtyna5iWciwcCfTCxaUY=; b=C74MxRjHnB5oyp6RdmEDaSqemPJQGZoULp9kc6MEpxDFolj5FZC4RZjiufsuqN6rc4 T4yBWtkn9/2xg4Wfg5Rs6AtBH8dpb/YI54pHIIWffKVL9cCqJdtLEnH6QwmBBiaCSMUw M3X8HYhaJkFtv0Hm0UJljMFs2+RminCbJJX0E= 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:in-reply-to:user-agent; bh=PMrojZ+EC7QQSJjYcQ4qgqKNtyna5iWciwcCfTCxaUY=; b=WCoWTMx/n43bgISYPw2jy/qUJcDCny0eISb5bcK2o1G/qUeqiYtO1y8HPvwPmiqu0s UdEw0zaL5aRhokxazn4FBm3MaoYQDtuAdanWqKsESAcDICWrdLmvPKjLxIJOKkW7MTQr CXu0z7uYNiVGd2IWrRHKS7HiTaDW4TUunDsrosL03G3mYCOfGfPdAeI9HwXif16On+0M 7f06igcn9vBLOeAeGvkd0Ewrk0chdEPlWa9V7KMwD9l1dHKuxp4vXfhGQi7+Ttn+/YZ0 p1SPIidS5VedqUW14dM0eSP/1/jSdeL70+iGL36FRVx1Rf0ceVJm5sTyUJjnLBmRdLIG /8XA== X-Gm-Message-State: AKwxyteg9qPKrc0P1phz4eWzo8jKONdG/Ih4QN6aNKy4ML5+M/qbM0gP 6zvgifw9GLAJgFA4NfVNoGShoQ== X-Received: by 10.223.188.6 with SMTP id s6mr13522549wrg.208.1517484967122; Thu, 01 Feb 2018 03:36:07 -0800 (PST) Received: from oak.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id c24sm19792087wre.10.2018.02.01.03.36.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Feb 2018 03:36:06 -0800 (PST) Date: Thu, 1 Feb 2018 11:36:04 +0000 From: Daniel Thompson To: Jani Nikula Cc: Aishwarya Pant , Milo Kim , linux-fbdev@vger.kernel.org, Bartlomiej Zolnierkiewicz , Jingoo Han , Jonathan Corbet , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Julia Lawall , Greg KH , Lee Jones Subject: Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes Message-ID: <20180201113604.kcue6auuivud52qz@oak.lan> References: <6523e26889d3dd65e90ea27c0d302a95aeb9da8b.1516978005.git.aishpant@gmail.com> <20180131110727.rmmwyqzwozwhda6z@oak.lan> <878tceckli.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878tceckli.fsf@intel.com> 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, Jan 31, 2018 at 01:51:21PM +0200, Jani Nikula wrote: > On Wed, 31 Jan 2018, Daniel Thompson wrote: > > On Fri, Jan 26, 2018 at 08:20:08PM +0530, Aishwarya Pant wrote: > >> Add documentation for sysfs interfaces of lp8788 backlight driver by > >> looking through the code and the git commit history. > >> > >> Signed-off-by: Aishwarya Pant > >> --- > >> Documentation/ABI/testing/sysfs-class-backlight-lp8788 | 10 ++++++++++ > >> 1 file changed, 10 insertions(+) > >> create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp8788 > >> > >> diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp8788 b/Documentation/ABI/testing/sysfs-class-backlight-lp8788 > >> new file mode 100644 > >> index 000000000000..c0e565c8d63d > >> --- /dev/null > >> +++ b/Documentation/ABI/testing/sysfs-class-backlight-lp8788 > >> @@ -0,0 +1,10 @@ > >> +sysfs interface for Texas Instruments lp8788 mfd backlight driver > >> +----------------------------------------------------------------- > >> + > >> +What: /sys/class/backlight//bl_ctl_mode > >> +Date: Feb, 2013 > >> +KernelVersion: v3.10 > >> +Contact: Milo Kim > >> +Description: > >> + (RO) Displays whether the brightness is controlled by the PWM > >> + input("PWM based") or the I2C register("Register based"). > > > > I rather dislike drivers with this type of "bonus" sysfs controls. I'm > > struggling to come up with any reason why the userspace would want to > > read this control (and I think bl_ctl_mode gets the fewest hits after > > searching with google hits of any search I've tried) . It looks to me > > like this is debug information that should never have gone into sysfs > > at all. > > Agreed. I think the same holds for the other extra sysfs attributes. At > worst, having these prevents the backlight class from adding the names > later on, which is just backwards. The problem is that they do exist... For controls which appear to be misplaced debug attributes I think I am happy to nuke the values entirely. It is extremely improbable that any userspace will notice. Unfortunately some of the controls look like they could be poked by an custom userspace so I'm quite so confident about nuking these ones...and if we don't nuke we should document (so thanks Aishwarya!). Daniel.