Received: by 10.223.176.5 with SMTP id f5csp2207014wra; Sun, 4 Feb 2018 23:28:13 -0800 (PST) X-Google-Smtp-Source: AH8x226qchem2EeuO3ls7WIf9EkcP8JVRlC/kKzJXkcoVezgq/h1H4d8cnA/+F4JDpx87rEoFUcx X-Received: by 2002:a17:902:4181:: with SMTP id f1-v6mr43195946pld.59.1517815693548; Sun, 04 Feb 2018 23:28:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517815693; cv=none; d=google.com; s=arc-20160816; b=rAL8Av8gva43xvUHJdsfLGDcR2BPFYvXIRzSogT/CtDHO+Yo7dtOJZf9mM0a7O768X mxv39EU1wY8BhzuZiyBfYfap5pdVUhkoqW3FyHOsT69TaJ6Jv5R0HhS8oPPZ7ql0EjqU tCZTt+IYGPm/DAcVRNIUUx0c1vOFXGCTEFlRUaamu8xDIv36lk9sCzWKxOad0yqCQRFO ZeajbG5o5W/+HH6ZPnwBD/wFJnMPzZqXbVS4ftZO2H0QKmmL5IKhaDIgcrZECAXQs4Ap XeSJWn1eKVO5RSOQjW5xgS/95u3uMsBNMCNS2jOaMRyIsyvQoIziWyI6r8Im69ynDaSh jeAw== 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=z9jrVL0TPR14YaeZJwdyamryRmx+cp2X6g9rxoa/F88=; b=fIV3oZx5LaU/iVLpLuzl7ceq5u1osO2aNgBLRII97zHSjvRRd6vMRT6c+5zO9rbGW1 54GGtrrMNeTvOhUi98ySKOPHx5s1qatc3bmADdS2MpNNMDgJjfO4Zh+YSOJufzHvUKaH J5SV8ZPlZkmWi/Pbo1IuasWHsbQi0wW6WaTn95JPW/wbRFmJbHtK5B4wcFyepn4Kug8t 4lngfLU6J1d6xYKxDTC9G63D7XYABDqK4oOYwhehh8OVCJpSXSL7bNI77YiBTHcYAUkZ NstGNA2XYdKB3klYO7VPoEW3uobDmZsLDMNeLzQZZmSgTfelTpMjBDGm4ugBeQcMkptQ pRhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WFyIQ9kc; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si6532603pfg.62.2018.02.04.23.27.58; Sun, 04 Feb 2018 23:28:13 -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=@gmail.com header.s=20161025 header.b=WFyIQ9kc; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752603AbeBEH0G (ORCPT + 99 others); Mon, 5 Feb 2018 02:26:06 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:45333 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbeBEHZ6 (ORCPT ); Mon, 5 Feb 2018 02:25:58 -0500 Received: by mail-io0-f195.google.com with SMTP id p188so29213764ioe.12; Sun, 04 Feb 2018 23:25:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=z9jrVL0TPR14YaeZJwdyamryRmx+cp2X6g9rxoa/F88=; b=WFyIQ9kciSSBLBi0tr+75J7+/96c1mxRekcne6teBOb7fkuxGg9k5bXo6Y0BSLtIGO dr6cZQ9EaZxETpEBCkYGqwNVnpb3Z2mpyAop6U3MH9FVKDixDwItyWJ6Wju23XZV4JvR pKyx3E7WIGwqWRca606OadWE/s+JcDZpWGEgnpCJIR2M30bO+oJQATaa90kkPW7Gmbme ViGUuRFgNEYEw3kH+N+2tqOvTC8ex8wS9ynsZyl8xzSiZxOZ95mTYAywfZd7V+zK+MBY exPjRZQh/k+ISACDK0HWsCgXLMEQBb4Alymrl5w284PlOXC689ikU3CO/oYM1+rjhW5o kxhQ== 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=z9jrVL0TPR14YaeZJwdyamryRmx+cp2X6g9rxoa/F88=; b=lK8rnezz9VXQXIbvgIV1c1Fooh5ry6SbEIWI1C3XiHSdUDpII5tM4m7Tk97qLvgGzh lVJgcp+j3/5J3a/v05hIyLhDn/IvFX6ZQ7hHDPL2UNJk6p3FdjTwgG3V1fVSfiqgI/jb ETQ21z/jk9N6XdXr4UYYO6XrEj+9kmj0pFtDvwz0U5mlIdB/ypXLcTzRjNROrrYzLzV1 gelnKPVJqCywGke2JxwHqdrE00C/PAmobhoTtJds5ehpBLOezn0Wf1vVX2PeP4RkVRwu wmBcoHvlLMfcJEfjUTC01gAp2nkn9TArLCbg7Y1ZHi2x9RDLxXlBs7Gld9sQmNocUlob 668A== X-Gm-Message-State: APf1xPDegA7+pg716pryYEwAd4zBT6ed2CYgR7dEsGAyE+tiyk0+Zs6R Xen0zCiVprZwt3ScPYeeDY8= X-Received: by 10.107.197.66 with SMTP id v63mr15534iof.298.1517815557500; Sun, 04 Feb 2018 23:25:57 -0800 (PST) Received: from mordor.localdomain ([49.205.217.87]) by smtp.gmail.com with ESMTPSA id b41sm4957472iod.30.2018.02.04.23.25.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Feb 2018 23:25:56 -0800 (PST) Date: Mon, 5 Feb 2018 12:55:50 +0530 From: Aishwarya Pant To: Daniel Thompson Cc: Jani Nikula , 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: <20180205072550.GA9376@mordor.localdomain> References: <6523e26889d3dd65e90ea27c0d302a95aeb9da8b.1516978005.git.aishpant@gmail.com> <20180131110727.rmmwyqzwozwhda6z@oak.lan> <878tceckli.fsf@intel.com> <20180201113604.kcue6auuivud52qz@oak.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180201113604.kcue6auuivud52qz@oak.lan> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 11:36:04AM +0000, Daniel Thompson wrote: > 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!). > Hi Thanks for reviewing. Should I take it to assume that we would like to keep the debug-like attributes in documentation for now? Aishwarya > > Daniel.