Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3498729pxf; Mon, 29 Mar 2021 04:05:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5H0+M050aVlR61rgAEpRdNKnz9kur9McCCp2hTT5ujpLe3rZZTewmZi26a23qjvvxi7JI X-Received: by 2002:a17:906:340d:: with SMTP id c13mr28231196ejb.29.1617015923810; Mon, 29 Mar 2021 04:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015923; cv=none; d=google.com; s=arc-20160816; b=mb+HGPEn37FGxJIiGXTtG2M44mondhyNzNfSVbz10HY5IAg0SZbhjeGLPpdwm/SyBy p4GbEkzb1JjSlrFJaAv0vdfvKqtg0ow/d0Bwduw2xKT3DPxU/t3QsaGa/cCwBOlq8JLv wHznG9mfit9WL9Ac8deLWTSuN3gY7T1WkV8J5QdT0BDhihbUkEh83qXEwO1fB6xQ8Cuz MHvtWya/Ai5aSxRGHds1VyPwkBFpMlChdpk7okk1hZnke40YwAlG0jWAZMPHs/ZWWwzY 08vnvzSrzRZPSkvl3J+9OhqkcH4HQSvYP6nEtL332HiORouowK6lNUm1kM2zHKypRETQ bKUg== 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=w/CdWcj1eCchbRjYfPzoshhBlvTGpydLtwyP0EsNT8k=; b=MWB5RgiH2RTBZsyVpMb81AcmoNXmyQFoh6g/e6gc10Rhvh+Yb5tWskDmT15zQksmVy EgOgU0juigrI3Rzxf7HZ510bU6K8dc0fZ3lCF9ppn1BPIcjiuTEND/vpJ5U3N6GKivns ujihKRBOodGo+3z4vdULAKqF5gN0YDM6sX5W+oYjWDpBvNeaINktSgOT/muzZvK6BOfb MXVSqMvR+Dh8mwxj2zPONmgZD1CO2ZHJQO0u/tmVMRlyFhwNPRLHvTYgtYUJT4SO95DF XchtC69M59glFI2bXXI4vLCD3qZhk9ThXsqntYXgELTLnJlDQZwCLFlikVnOT2noOb6o giBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ig+lk1oU; 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 i5si7810738edf.408.2021.03.29.04.05.01; Mon, 29 Mar 2021 04:05:23 -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=ig+lk1oU; 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 S231911AbhC2LEE (ORCPT + 99 others); Mon, 29 Mar 2021 07:04:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:51118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231735AbhC2LDu (ORCPT ); Mon, 29 Mar 2021 07:03:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A2F461883; Mon, 29 Mar 2021 11:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617015830; bh=eKeLc/eUxq4hM0vTtXWv5c1gnqKwCfyDPdzZJI49lRM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ig+lk1oU61xxoTGM5ALvhcXo3iGoh4jlwm5PkJ4uljdLJrwOdJUc871y6VMSeO01h IIWpkLpJFAIxrz0+2OmHJ+ckVIOnQTpfIZbN0w5HwB4xtGHlD4ly0/XvraMsYkTxSo 2RH3jXuVUjmnTNTibOCoSpzpSb/g4N06IvK3Ad+c= Date: Mon, 29 Mar 2021 13:03:47 +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:53:38AM +0000, Gustavo Pimentel wrote: > On Mon, Mar 29, 2021 at 11:40:28, Greg Kroah-Hartman > wrote: > > > 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? > > I found kstrtobool() just now. I'm adapting the code as we speak. > After testing I will send the v10 as soon as possible. There is no rush, take your time. greg k-h