Received: by 10.223.176.5 with SMTP id f5csp1279432wra; Wed, 31 Jan 2018 04:09:00 -0800 (PST) X-Google-Smtp-Source: AH8x226tZDABDjdvaoCTchCfnh/ZZpeCPQT/1wsjUX5XkTBxN1emK3dLOkUihUySKutRYMdQWMM8 X-Received: by 10.101.74.71 with SMTP id a7mr26695032pgu.32.1517400540241; Wed, 31 Jan 2018 04:09:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517400540; cv=none; d=google.com; s=arc-20160816; b=HRoRxVfOoPxFlbF5sgSK/OphW+TqKMY9aNyAJ+P2Ga2/cxVAKh9gwOo1GnWnSdVRMt VKPGsU4FZ/MMYkgpNGdKzFpnX89alewCRVotelzyd8X8O6k5RNH2poltR6Ar58LSfIlr Fi42QIs9JP/Z6NqLfh3/p3mjQVor699cLheKChMCu0Y30yNfZyJpBYgK+WucgRapkROB bh+4oJ90o2/MXIBXlu1C89yg0H9bGHPP6PQ//JLd1t0WU8+lh/G3TjE7xMDcYC09uIDI xZsv83MeZpL8xPvGdZ6+T6+dKjeDXyqpuFbXcMOCAb20m0erJG1oyA88Q9mg9c2/3M1t l4vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=sDbVNVIZwNQ7pEdMofMPrY6f8cgJci8xslhdeQ6wfdE=; b=eqPEAi3ooQn2pWf32mWZCnniiIVUURphbP2VNhk7Aw2dvOq7nCpAjRBfAhcRgMqUnN 4EypcXPP+moIOUXoPaH9tYyEPZrt2OcmXTRxbVsNLvaBwXlv/pwpCVODhlbwaGpM3qQK WIv7OBVd5ZAfvMX50SmRZtl3e0UXpJlrM/n6ji2Jpnw7KV4rYUaAoKs1CPESjpuiFsgb 09XbmAxY8uBZGWFNfyTDceA56cN0afDGBSMN/5gAwjkSsALQkOk9x4/zk7c0w0tg7WuL 7b4UwDCc0kjIdd67WA54PviEoj89Q+OqZ84uADH7XDfTrY6WKJKkWry4uqp8Sy9njhC7 ti8g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v127si4529532pgv.669.2018.01.31.04.08.44; Wed, 31 Jan 2018 04:09:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753352AbeAaLva (ORCPT + 99 others); Wed, 31 Jan 2018 06:51:30 -0500 Received: from mga06.intel.com ([134.134.136.31]:24969 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbeAaLv2 (ORCPT ); Wed, 31 Jan 2018 06:51:28 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2018 03:51:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,439,1511856000"; d="scan'208";a="26917323" Received: from jnikula-mobl2.fi.intel.com (HELO localhost) ([10.237.72.62]) by fmsmga001.fm.intel.com with ESMTP; 31 Jan 2018 03:51:24 -0800 From: Jani Nikula To: Daniel Thompson , Aishwarya Pant Cc: 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 In-Reply-To: <20180131110727.rmmwyqzwozwhda6z@oak.lan> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <6523e26889d3dd65e90ea27c0d302a95aeb9da8b.1516978005.git.aishpant@gmail.com> <20180131110727.rmmwyqzwozwhda6z@oak.lan> Date: Wed, 31 Jan 2018 13:51:21 +0200 Message-ID: <878tceckli.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. BR, Jani. > > So I think this is either something that should go directly into > ABI/obsolete (with a fairly short expiry time) or perhaps simply > remove the property entirely. > > > Daniel. > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Jani Nikula, Intel Open Source Technology Center