Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2346683yba; Thu, 25 Apr 2019 15:02:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzz9kvfjHugauoK7FXnjT0Ui49YJjqY3MhApYcsLDqnB0c5qn8CDh1oFyHGnzBKKDausWh+ X-Received: by 2002:a65:500d:: with SMTP id f13mr22395532pgo.250.1556229724752; Thu, 25 Apr 2019 15:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556229724; cv=none; d=google.com; s=arc-20160816; b=EySxrkHRNpBTgL2xfIGfg1z1G0g7UuqRMJo4SmtKeI9CqVqCsJor3Tuswc0xYvn6KZ WODb8T691UgClBvVxqdBALsyhQym1bwAAZcpkl9yABttjczNhfkUFjhxQBW0f4gm046n XDc/+RzRckPEba3vFSm2YaASlZnaaaZ2CRiK+mwlb+DFCWefopp8vbeFzfLAmFEqogOF 3E5yXe69reh1ItVnOjDzDZd6jsjo6nJD+5b5ppY0iwfUy6e3YoZ20Nl8mFA5Z0kl8uon 5TBi0zSiouSXMlqCG6i1oEfm+maCRxrIhLGqzEr1BoBVfK8r8orDpEpeXCMpeslpTeYe atDA== 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; bh=hnvQyyebk4+Q9lh5ozASkbxNfoeCTgiNX/ZZrqP+QXk=; b=MnlV/2eBR2eA41cPfGNSAK/TOdWnBBreXAHLgb5nA9PKuBxxBBqGYWMLtumzR/oqR6 6qdumxyO0XOdXzRI4R9Hm4ihT1TuNFG0qaophe6VhXG7FPYmHfgwttswqRbrW9wd2lL2 Yp7zNL1uJ8E6y2FLbUEbB6R8F0Bh8FKpoL6V0gjge9am06SBxROO/wl8B834LWa1pl4E CFQiAIKjm920GGu0oTY+8YxgppRixwO2QVhY8SNuWgbNUSCB95+Th/9Q0ooNpR8aSItl fwgBv9tsp1BqReLitaFwPaGFSxSG00gHJEGBGIGfxxhAzwcbJ5MjgrPPv2RoChHlCf3i QHJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O9+wxuK5; 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 g12si24289910pla.112.2019.04.25.15.01.48; Thu, 25 Apr 2019 15:02:04 -0700 (PDT) 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=@kernel.org header.s=default header.b=O9+wxuK5; 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 S1731003AbfDYU2a (ORCPT + 99 others); Thu, 25 Apr 2019 16:28:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:53102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbfDYU2a (ORCPT ); Thu, 25 Apr 2019 16:28:30 -0400 Received: from localhost (62-193-50-229.as16211.net [62.193.50.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14F38206A3; Thu, 25 Apr 2019 20:28:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556224109; bh=gZifByYJgdooXt4kQ6MZrP2zFplJNerVD2GHIfJwJII=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O9+wxuK5aT8aRSyD1zP0vuN28o0E5V9TLlRB4c4fyldeGItdv6MDzmpqso2tynmSC H4jRSBJlryI9xpjuk6L0iYzToPBt7lD3LlOASf62IgwdGLSMJzTPpEVxQzb8fRw+pX vujC1EbnkzQfV/e/TjdRcIRq53Q6G2Y5bHx9RFlE= Date: Thu, 25 Apr 2019 22:28:27 +0200 From: Greg KH To: richard.gong@linux.intel.com Cc: robh+dt@kernel.org, mark.rutland@arm.com, dinguyen@kernel.org, atull@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Richard Gong Subject: Re: [PATCHv1 5/6] firmware: rsu: document sysfs interface Message-ID: <20190425202827.GD22307@kroah.com> References: <1554835562-25056-1-git-send-email-richard.gong@linux.intel.com> <1554835562-25056-6-git-send-email-richard.gong@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1554835562-25056-6-git-send-email-richard.gong@linux.intel.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 09, 2019 at 01:46:01PM -0500, richard.gong@linux.intel.com wrote: > From: Richard Gong > > Describe Intel Stratix10 Remote System Update (RSU) device attributes > > Signed-off-by: Richard Gong > Reviewed-by: Alan Tull > --- > .../testing/sysfs-devices-platform-stratix10-rsu | 78 ++++++++++++++++++++++ > 1 file changed, 78 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu > > diff --git a/Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu b/Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu > new file mode 100644 > index 0000000..cb461ee > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-devices-platform-stratix10-rsu > @@ -0,0 +1,78 @@ > + Intel Stratix10 Remote System Update (RSU) device attributes > + > +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/current_image > +Date: April 2019 > +KernelVersion: 5.2 > +Contact: Richard Gong > +Description: > + (RO) the address of image currently running in flash. > + > +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/fail_image > +Date: April 2019 > +KernelVersion: 5.2 > +Contact: Richard Gong > +Description: > + (RO) the address of failed image in flash. > + > +What: /sys/devices/platform/soc:firmware:svc/soc:firmware:svc:rsu/state > +Date: April 2019 > +KernelVersion: 5.2 > +Contact: Richard Gong > +Description: > + (RO) the state of RSU system. > + The state field has two parts: major error code in upper 16 bits and minor error code > + in lower 16 bits. > + 1. Major error code > + 0xF001 -- bitstream error > + 0xF002 -- hardware access failure > + 0xF003 -- bitstream corruption > + 0xF004 -- internal error > + 0xF005 -- device error > + 0xF006 -- HPS watchdog timeout > + 0xF007 -- internal unknown error > + 2: Minor error code > + Currently used only when major error is 0xF006 (HPS watchdog timeout), in which > + case the minor error code is the value reported by HPS to firmware through the RSU notify > + command before the watchdog timeout occurs. Properly wrap your lines at 72 colums.