Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp38152imm; Thu, 16 Aug 2018 15:04:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPylCUnkQNLhkzq/jMykhwBQYMLxm4ZXyfvQ2UWvx1I5vEbHNQoa6ViVMZL4E8OU++zz+Y9/ X-Received: by 2002:a63:4663:: with SMTP id v35-v6mr30090018pgk.178.1534457045953; Thu, 16 Aug 2018 15:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534457045; cv=none; d=google.com; s=arc-20160816; b=qixhzQDmngi9sVDD1L609ZOrFNHqQJVVEkkMWpKYxzaIhuaDYWmGXCeT1nE638cI3+ Q9fby3/hKvbbnYzZDHEvicVL2mqQ2t1u6Iyta6OiRUXhqT+7VzxLimrKrIDMSF/FC12n RIvm6MoK9OlKUrbKuhJVughjYbuYAsVU1R3IwzftUTRdDbfy3s/ppayoF+ia5fgg6hhJ KdXwxp5X3i9MgIRdSCciCwcg0oRKMIApFyiN1tyb5NK9j3W31ploEklrTDwRNS/aXJxF cTXLugH1yOcg8wXpt8YrV4N67eXegpu2KfkWxvqYIy2rOPC2z8v1ezvqlLViDk/J7QJU 0GNQ== 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:arc-authentication-results; bh=vY2vAjXXpKGhI+EAjkttBWanAVSOhrzsn8CK9ogg6Fc=; b=Vzqf3MqlPQungwatZxapjGS82SlqGrNQ05E5SS3w3hvbE1QYcuIbxy384bJQQwft20 IB6X3WwIv8PTRe10ymQycN8oOQ+7dAQxsahqY4GEnTzm1NqG+wspN+qMBT0tCnZk7BpD U3uKkteRUSNeSuEZHAbJLRcUGJoOeoQhFVi5vEENlt7/aMnmmOpPVFdscCORQ3zvkTMw wRKkpgUdjR9pDskDksjHccDzYbL3SGWRQS+xwLCK7Lse7LGX2uqNoTfumbvx3VQiN/BB T09DH4o41xVsah4LFx0MqMkGMBj2xRJ1RdHxrxzcouVkjKdtsPSs8NWXKfz78JwsYP0W 2tWQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si476909plm.375.2018.08.16.15.03.49; Thu, 16 Aug 2018 15:04:05 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726072AbeHQBCR (ORCPT + 99 others); Thu, 16 Aug 2018 21:02:17 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43109 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeHQBCR (ORCPT ); Thu, 16 Aug 2018 21:02:17 -0400 Received: by mail-pg1-f193.google.com with SMTP id v66-v6so1325076pgb.10 for ; Thu, 16 Aug 2018 15:01:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vY2vAjXXpKGhI+EAjkttBWanAVSOhrzsn8CK9ogg6Fc=; b=Hh0xCsL+32INMNxqdpoSjPkEbBXbiYIJf+6jw/1F9Pv6vim/Uhgn7v+n58BXhLHJkr o+j9ycEHPIkc+IL4jmzfzMUWYgnwyPjJvDmcodOYx+4Eq1xiBTQ2JFX3PGOD/RdCr8fz VsP8JGvOkorwspvSd0/7gaIKBDvEH3tNE22M2UJFX4rlHRbwkgMbzto+YXPrwLBvCVZ1 tLA2TrDGpTt5MWxkn8KVGIkktQJzXBCciWrVhLlteh0VVEl+od7jMb7FhX2miwtziEau njAb4CvYR+KipNxXk0MViG/NldJS+8BPu1/5GDwc2/HOawfja7SqTZZ1koBPvgpAKLer zfIw== X-Gm-Message-State: AOUpUlG7Cgg9SsPg1UTU0/nzgIn6LRaDjI7iOZDykKXpsMk/zc3Yt3ZG pUJwJmh12zyZgf0IOneAYHwLeA== X-Received: by 2002:a63:4d06:: with SMTP id a6-v6mr30215848pgb.408.1534456887173; Thu, 16 Aug 2018 15:01:27 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id x7-v6sm274306pgk.9.2018.08.16.15.01.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Aug 2018 15:01:26 -0700 (PDT) Date: Thu, 16 Aug 2018 15:01:23 -0700 From: Moritz Fischer To: Alan Tull Cc: Moritz Fischer , Jonathan Corbet , Randy Dunlap , linux-kernel , linux-fpga@vger.kernel.org, Linux Doc Mailing List Subject: Re: [PATCH 7/8] docs: fpga: document fpga manager flags Message-ID: <20180816220123.GB4431@archbook> References: <20180814191526.3247-1-atull@kernel.org> <20180814191526.3247-8-atull@kernel.org> <20180816190252.GB3932@archbook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 16, 2018 at 03:20:12PM -0500, Alan Tull wrote: > On Thu, Aug 16, 2018 at 2:02 PM, Moritz Fischer wrote: > Hi Moritz, > > > Hi Alan, > > > > On Tue, Aug 14, 2018 at 02:15:25PM -0500, Alan Tull wrote: > >> Add flags #defines to kerneldoc documentation in a > >> useful place. > >> > >> Signed-off-by: Alan Tull > >> --- > >> Documentation/driver-api/fpga/fpga-mgr.rst | 5 +++++ > >> include/linux/fpga/fpga-mgr.h | 18 ++++++++++++------ > >> 2 files changed, 17 insertions(+), 6 deletions(-) > >> > >> diff --git a/Documentation/driver-api/fpga/fpga-mgr.rst b/Documentation/driver-api/fpga/fpga-mgr.rst > >> index 431556d..db8885e 100644 > >> --- a/Documentation/driver-api/fpga/fpga-mgr.rst > >> +++ b/Documentation/driver-api/fpga/fpga-mgr.rst > >> @@ -183,6 +183,11 @@ API for implementing a new FPGA Manager driver > >> API for programming an FPGA > >> --------------------------- > >> > >> +FPGA Manager flags > >> + > >> +.. kernel-doc:: include/linux/fpga/fpga-mgr.h > >> + :doc: FPGA Manager flags > >> + > >> .. kernel-doc:: include/linux/fpga/fpga-mgr.h > >> :functions: fpga_image_info > >> > >> diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h > >> index 1ca02ce..777c502 100644 > >> --- a/include/linux/fpga/fpga-mgr.h > >> +++ b/include/linux/fpga/fpga-mgr.h > >> @@ -53,12 +53,18 @@ enum fpga_mgr_states { > >> FPGA_MGR_STATE_OPERATING, > >> }; > >> > >> -/* > >> - * FPGA Manager flags > >> - * FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported > >> - * FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting > >> - * FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first > > > > We are actually missing the ENCRYPTED flag here, can you add that while > > we're at it? I must've forgotten to add that back then ... derp. > > Sure! > > > > >> - * FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed > >> +/** > >> + * DOC: FPGA Manager flags > >> + * > >> + * Flags used in the &fpga_image_info->flags field > >> + * > >> + * %FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported > >> + * > >> + * %FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting > > How about this description? > > + * > + * %FPGA_MGR_ENCRYPTED_BITSTREAM: indicates bitstream is encrypted Works for me :) > > >> + * > >> + * %FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first > >> + * > >> + * %FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed > >> */ > >> #define FPGA_MGR_PARTIAL_RECONFIG BIT(0) > >> #define FPGA_MGR_EXTERNAL_CONFIG BIT(1) > >> -- > >> 2.7.4 > >> > > > > Thanks, > > Moritz > > Thanks, > Alan