Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp294537pxx; Thu, 29 Oct 2020 02:51:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOTDqLYr2lpfubdjCo7McQSX5IOY4xD0LOPSLnNOxW3Vpc8fgvlBFYNmTu9IejIhI94ACk X-Received: by 2002:a17:906:f151:: with SMTP id gw17mr3109438ejb.119.1603965091093; Thu, 29 Oct 2020 02:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603965091; cv=none; d=google.com; s=arc-20160816; b=vzOT3zxGvfnk0N9pkfa8qwAlkOoXfiqj+vKoCoj7kUS8V3vMOjyFCnhFF3iRFc+VvC 21EHD2YDSpbHtSkfdJUTNNETsdPnR1FQaK6lKV6sz2CPR5g3bsiB6aAM723exnSE6D2u 8Kw88QOhxKthw3DRfJrdLHTsGKBvzqDxeYYOECe1hPMyJLDIaLrQ+9+WtNoUO3F+IKtO n6eg7m49zFwIjFaZlyxUBxkT4NzLLQDM+N7HyGYM8NtHdQ8sSzz4k9WjKIscuCQzaL7n pNoJ8lYe3bCFz3uKnydexvqbMm3GH5lLZ53fztO0trpPl92w74LhuVaMZZVxZHbLuk3U Lqlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=v4juQfAx3LxBzTcqekjK+MOSoDZx1NTXS/wKZYQGOXo=; b=Az5Nxvx7oJ1FMbXD7QADUO9d3bPvYcrknZmf8Y6xVY787CPbfX133CgQLcqzCaegRR O/O4VDDEspmCBn2NBof6796AAXI15XoVbbdQ1ylkUYI9k9Jf69KYz69Mz7CGXKcN5nEG IS0YLrqLpoBxRzrys2bC+Kd9XcAkiLx5ZB5xocD3i4XsPPip93/4CXOiQ+ChAW3l4nb2 gjWHwNkbml/5aKNgNbt4XjdyPKwKY4P2XPGd0u9df8a5T30hOMtJs5iirF3EwpXj0egT 9DWaL2PHVVjbH97eqKc/ZsmsYPcDqhc87fYZYviV6Ac7GE0VkyP1igEqzVQARhUaGt6M Ux/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LK9phlxH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v25si1574884edr.36.2020.10.29.02.51.08; Thu, 29 Oct 2020 02:51:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LK9phlxH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726858AbgJ2Jqp (ORCPT + 99 others); Thu, 29 Oct 2020 05:46:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:59294 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726829AbgJ2Jqo (ORCPT ); Thu, 29 Oct 2020 05:46:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603964803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v4juQfAx3LxBzTcqekjK+MOSoDZx1NTXS/wKZYQGOXo=; b=LK9phlxHhIvI3B603Us6mzSVBuplg1RWGtGfKwCvMEtUptCOkedY1hkoGm5yrQRU1KVEP2 nK3Hv+AtDfly1She7KLOmtJ1b+TM6XAk5blBfq2BbXaK4YPF0XsGRY/jxZ2W+ee1BFOAeN i0n15t7KH2zucFCYYYDdZMcl//V3q/k= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-457-MYcVTQkzNZmj-pmHejOSSg-1; Thu, 29 Oct 2020 05:46:41 -0400 X-MC-Unique: MYcVTQkzNZmj-pmHejOSSg-1 Received: by mail-ed1-f70.google.com with SMTP id u12so937955edi.17 for ; Thu, 29 Oct 2020 02:46:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=v4juQfAx3LxBzTcqekjK+MOSoDZx1NTXS/wKZYQGOXo=; b=CmzKPDD5SNVePvy+6Y7EE/c6CIGLYqLp8PNz5mnT9RzN0YZU9ykWZ/Zi1RczsBGObU 6V+GQR7YBzsFbRp0XspWbYzL5+QX1VVpvbLqCHdselWJstG60dew2ECQJGhthT9IMx3N zVQG3z6tEljVU4NnhLSNF3ALdU42fH8Oz8fAzVhx3PmQQRRy7VVLLCMBxjt60U6D29iY +ADU40AwKZgZoqIqiaNJAmhQ3Q259HslL+f7N1iRG2UVWQ4R9By8vGLCNWR8crt8OQRW WcrBCaSklcKJN26oKfTLSOS4ePWpI2DzcHilDuFAvoPhSxjuXpVSVGFP8Pc6tEUs8Xui f5IQ== X-Gm-Message-State: AOAM530TuzR1c9W06uRiiIUeJGm4na6z3j9xTC6gKhSniuzaDKGyRxwB KwWbio96LyHKS93lt5OJbbdsusn5mqsxj85AJrf0dBN+MYnds1rgokw7ZXgtgygsoxfDhQ2B/KU z2+qNtXS5qOIoU1JZikVyby9N X-Received: by 2002:a05:6402:1691:: with SMTP id a17mr2984352edv.264.1603964800377; Thu, 29 Oct 2020 02:46:40 -0700 (PDT) X-Received: by 2002:a05:6402:1691:: with SMTP id a17mr2984338edv.264.1603964800185; Thu, 29 Oct 2020 02:46:40 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c0c-fe00-6c10-fbf3-14c4-884c.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:6c10:fbf3:14c4:884c]) by smtp.gmail.com with ESMTPSA id p20sm1140405ejd.78.2020.10.29.02.46.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Oct 2020 02:46:39 -0700 (PDT) Subject: Re: [External] Re: [PATCH] Documentation: Add documentation for new platform_profile sysfs attribute To: Mark Pearson , Bastien Nocera Cc: dvhart@infradead.org, mgross@linux.intel.com, mario.limonciello@dell.com, eliadevito@gmail.com, bberg@redhat.com, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201027164219.868839-1-markpearson@lenovo.com> <5ca1ae238b23a611b8a490c244fd93cdcc36ef79.camel@hadess.net> From: Hans de Goede Message-ID: Date: Thu, 29 Oct 2020 10:46:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/29/20 1:55 AM, Mark Pearson wrote: > Thanks Hans and Bastien, > > On 28/10/2020 13:23, Hans de Goede wrote: >>> Is there another file which explains whether those sysfs value will >>> contain a trailing linefeed? >> >> sysfs APIs are typically created so that they can be used from the shell, >> so on read a newline will be added. On write a newline at the end >> typically is allowed, but ignored. There are even special helper functions >> to deal with properly ignoring the newline on write. >> >> Regards, >> >> Hans >> >> > OK - does that need to actually be specified here? Or is that just something I keep in mind for the implementation? IMHO it does not belong in the sysfs API docs for the platform_profile stuff. But I guess it would be good to document it somewhere in some generic syfs API rules/expectations document (with a note that their might be exceptions). Ideally we would already have such a file somewhere, but I don't know if we do (I did not look). So if you feel like it (and such a file does not exist yet) then I guess a patch adding such a doc file would be good. Regards, Hans