Received: by 10.223.176.5 with SMTP id f5csp2590444wra; Mon, 5 Feb 2018 06:41:27 -0800 (PST) X-Google-Smtp-Source: AH8x2257OwD6snxPy/UlmsFNwJHccHsEzl2V/blRD1LG8qKbLQHb6X0b6ey77VY0kS9Y5hTABa/v X-Received: by 2002:a17:902:8e86:: with SMTP id bg6-v6mr45627191plb.402.1517841686989; Mon, 05 Feb 2018 06:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517841686; cv=none; d=google.com; s=arc-20160816; b=hl9ENtfqJI+Ce9hr8+A+5nVKkIHdx7cIb8Uz9KUsmlrL4VoCPZdLMunq5LUZoY4Ilv M7OTV5cjox4Ne+tx+EPAhR/BJdz3LW5RpbQwKXYNTfbAQzzg0uqJp458WKtYckib1UGi pS2p0RwTF6zyUj/GDGEuGE2bEHnWRJMMkIvEO3rKWXYmejr0wo+c4/zA2cFtZiwtmj3R UmL8HGusx5Zi4YG1eXQGjiJ2UCZvlCynMnnVsMGYS9AX2Cd7GdTbeh40qRy49STBF88Q Q42lutEc8R1+0NsKcEF3eU0z7TNiQJ4uLe9godEQ4qvSU5g0zBSg0Q/uDO0dPx3eQX6+ P56w== 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=The+VmksUU+wdS1gOCSUKFItl7UKWROrOobQD1cAP/A=; b=OCVyM6T3+5pYTefTyiUJsV1USzqFcBQffSSY83KEXpQPxTDA18wUd52MViG57zEGZ7 nCtshHlMI+6qK3IX6rVndvVcL37UCf1gXvcrLzaAARGSmGKkfjOmItCYkFs6C9HHfmk/ WlYn6FttQ8WRY5zaHImp9Y3gBk8cAG9+cxNfO2SFn9WdayoVsihVMzHRsRb2QSqva072 HdATyS6DHZyOYmYXNITvaOxP3WqpTjtpb4cRXGVrnV3KptaJcSRelKUZjgFkl72yUPSk uKUo2557jJUDqR+b0rR+Hp2W1OwdO1wVprpXS1OEDCPFKiql5R6EGqUdxI2BpojL1eK/ P2Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PNYh0DcR; 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 l5-v6si596502pls.98.2018.02.05.06.41.12; Mon, 05 Feb 2018 06:41:26 -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=PNYh0DcR; 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 S1753168AbeBEOkC (ORCPT + 99 others); Mon, 5 Feb 2018 09:40:02 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:45517 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752925AbeBEOj4 (ORCPT ); Mon, 5 Feb 2018 09:39:56 -0500 Received: by mail-wr0-f196.google.com with SMTP id h9so16825138wre.12 for ; Mon, 05 Feb 2018 06:39:56 -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=The+VmksUU+wdS1gOCSUKFItl7UKWROrOobQD1cAP/A=; b=PNYh0DcRewRCVfRe7fvXYjgNY8lkj24KvG+j9FTJYwVLueluwyDvDVbOIuiR0EWDnw 4JLJ/t2uiSsc6Z/HH61oWelfsAB+oayqOEJDfLltsPROrAFyxdWOC879YJ4bUIAN4xCW DO0fnEfwPSgK2t9THjqvFkliYa7+3+MoPS6zE= 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=The+VmksUU+wdS1gOCSUKFItl7UKWROrOobQD1cAP/A=; b=ntit9L3n4w3ga4ZEuuOzwAqchRj5Jm0wAYOS/BVNmaNHw/EqxIiYgSm37ZzXlKzFxI 70ZG3m0tA9to0T4wRgKdRVReNUke21sKtQVhBOzgBLJT2qqwpGmo9S8S9jPH+iI8xAmF NNsMpVjRqg669kNUCo7UYrkpHbu1WYRz7EG092FAzAIf/S9jWVEHgm2+bo2mFntGrmGh ja9+y9cNrzE46Aj7Rsq+nCojel22brU4QeW0BDs113H38kFKtUrcbpSOSAlAARpQAm2T lb3J41lBeu1XN3pxJWAkW9bG41J/N0Vna2vO7qV2AxOlekXEEc+WlcnmcPOeOF69/R7K BJVg== X-Gm-Message-State: AKwxytfnwaQYWgde6y56g3CdK26m2myRLMcjPa62CR573zXYhyz/9AUZ IB9dFQZBL1IU4gtJKjPMuJZong== X-Received: by 10.223.195.49 with SMTP id n46mr14976147wrf.191.1517841595432; Mon, 05 Feb 2018 06:39:55 -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 p1sm4727921wra.90.2018.02.05.06.39.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Feb 2018 06:39:54 -0800 (PST) Date: Mon, 5 Feb 2018 14:39:52 +0000 From: Daniel Thompson To: Aishwarya Pant 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: <20180205143952.tqzywm6wtgw23jvb@oak.lan> References: <6523e26889d3dd65e90ea27c0d302a95aeb9da8b.1516978005.git.aishpant@gmail.com> <20180131110727.rmmwyqzwozwhda6z@oak.lan> <878tceckli.fsf@intel.com> <20180201113604.kcue6auuivud52qz@oak.lan> <20180205072550.GA9376@mordor.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180205072550.GA9376@mordor.localdomain> 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 Mon, Feb 05, 2018 at 12:55:50PM +0530, Aishwarya Pant wrote: > 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? The opposite I think! Can you drop patch 1/2 from this series, tidy the maintainer values, etc and resubmit? If you want to propose patches to remove the debug attributes from the TI drivers that's up to you (perhaps adding a dev_dbg() containing equivalent information). If you want to you are welcome to add to these: Suggested-by: Daniel Thompson Daniel.