Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3496557pxf; Mon, 29 Mar 2021 04:02:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxst2x/L6d1LrDC2bqNo1M1WrvAJKVDTN0/BoA1F/7+r8qxjXBkTbZn4/vNpYvB+6vbTNPZ X-Received: by 2002:a17:906:7806:: with SMTP id u6mr26059221ejm.130.1617015748951; Mon, 29 Mar 2021 04:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015748; cv=none; d=google.com; s=arc-20160816; b=kLKvuRn52//ZqngDTsA76rg7a5Xi8xjwtzEFhiFJJ+ivCRPEOlM8W2RAgpgtPBbun5 CTjn+5WQzrDlf+xQC+POSOaQBEtUx+etkvIDxf/AkO1Tnu0sUvvui4oWNuA1RCp6ZDqW VCoKottqyk1ZHXLFDqty9fHRMF57hj0phiBlhPF+Wm/wzQE8+j/p+tBAQyXTyfsKx7Ou 0sTFdDI8ZlJqT8Mn3Xad3tA1DvhiWndEdGNimx3U7mo9QZC9o3BbwTkAI/18W2dFaPFQ l+H7llN2o2z06+0UxhbsTSZmizSBhwrZVadv2byzW/Mi57+S4zLSK7th7BSFa6JTYXmc AMvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=l5lLj2074R/VYO7r9lOngJkglh8TRUXUG26Gf88nEDA=; b=Td7onLPLKfRIwp5H4eQFZz7fUab/BRqDzeGft0caq3xP2jbCQSlY2uBgp63E9ELIaf MsmqDQbTrs3JgifDqxBY2tsl+JsJCqQ6zDf+LDHjqHzNzRsY7KwhhwqdTfrF1Z72upND hTuVGa2NwX4lVY4eOftQA7JtZcCoVy+/x7oo8j2pgR7rAWAdiwKkoGGiR/tWjUjEOhQM fb7Pn9s0H9w9+p+S0A6NLUAH73sZlhyRwT5B+Unonrfl8Wx/FutZYKsG4yyX9uRl4lRt 0eKUqeZ/aHPWNky/ShH+ytHe5FOzJ0drLJeF+8kKXy4sGriqMJ0/xFAl0ZQgTnCM8n5l RKOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="nFxHNRM/"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq17si13710598ejb.391.2021.03.29.04.02.06; Mon, 29 Mar 2021 04:02:28 -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=@linuxfoundation.org header.s=korg header.b="nFxHNRM/"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232454AbhC2Kkh (ORCPT + 99 others); Mon, 29 Mar 2021 06:40:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:45960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231842AbhC2Kkb (ORCPT ); Mon, 29 Mar 2021 06:40:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 21FDF6192B; Mon, 29 Mar 2021 10:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617014430; bh=1bwAu+A9nWc4hRxv9ICbykOqZtzSHWV2ft8Sxgq3Vfg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nFxHNRM/LWArdKC+besjAV5l9HY6/NBl5bhm0hyzhXDdjUoAPj4NzmSuXZ9dfvhTh t6b9F4BYadHNNMg9EY0k7+cLHsOs93gOTt0hR1GQtWTYaW7WhodYiQJVFCwieKx0K7 kHu3cwE4DoNnNQOjZj6oQFcvqAPCM5XnPFlFTJcw= Date: Mon, 29 Mar 2021 12:40:28 +0200 From: Greg Kroah-Hartman To: Gustavo Pimentel Cc: "linux-doc@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Andrew Morton , Jonathan Corbet , Bjorn Helgaas , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= Subject: Re: [PATCH v9 4/4] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver Message-ID: References: <5840637a206dd1287caf142a0dbedf0dac9ccd48.1617011831.git.gustavo.pimentel@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 29, 2021 at 10:25:25AM +0000, Gustavo Pimentel wrote: > On Mon, Mar 29, 2021 at 11:8:11, Greg Kroah-Hartman > wrote: > > > On Mon, Mar 29, 2021 at 11:59:40AM +0200, Gustavo Pimentel wrote: > > > This patch describes the sysfs interface implemented on the dw-xdata-pcie > > > driver. > > > > > > Signed-off-by: Gustavo Pimentel > > > --- > > > Documentation/ABI/testing/sysfs-driver-xdata | 46 ++++++++++++++++++++++++++++ > > > 1 file changed, 46 insertions(+) > > > create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata > > > > > > diff --git a/Documentation/ABI/testing/sysfs-driver-xdata b/Documentation/ABI/testing/sysfs-driver-xdata > > > new file mode 100644 > > > index 00000000..66af19a > > > --- /dev/null > > > +++ b/Documentation/ABI/testing/sysfs-driver-xdata > > > @@ -0,0 +1,46 @@ > > > +What: /sys/class/misc/drivers/dw-xdata-pcie./write > > > +Date: April 2021 > > > +KernelVersion: 5.13 > > > +Contact: Gustavo Pimentel > > > +Description: Allows the user to enable the PCIe traffic generator which > > > + will create write TLPs frames - from the Root Complex to the > > > + Endpoint direction. > > > + Usage e.g. > > > + echo 1 > /sys/class/misc/dw-xdata-pcie./write > > > > Again, this does not match the code. Either fix the code (which I > > recommend), or change this and the other sysfs descriptions of writing > > values here. > > I've commented about this previously, but I didn't get feedback on it, > therefore I assumed that justification was okay. > I will change the code to accept only the "1" input on the *_store() Why not use the built-in function to parse "1/y/Y" that the kernel provides for this type of thing? thanks, greg k-h