Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2661392imm; Thu, 16 Aug 2018 13:22:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyM7O5Awkh2gDPSfAP8O/BY1g57pHAlphdpgQOhzSPul5F71/QwDY/yJCsZ0FldKZvTWPiF X-Received: by 2002:a63:eb0e:: with SMTP id t14-v6mr30021772pgh.198.1534450938885; Thu, 16 Aug 2018 13:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534450938; cv=none; d=google.com; s=arc-20160816; b=lvExCMIR3eYO2dfEJ6A02yquFwL6abpN5F/MzgDJrVA2GSn4O/Y26lBAPWm5NzlGed AcuxmRAn3WKaUR8NyOb1rAa8UFdq/ETDd4MExfQ1nYbmRxkeWECl+HYvTarnlGyrfllQ vSHx68yVW73um/PTxrTKR0fRvtJJT2aPn9OcGB/mrqUBu/cqa6k4Cjjrn7RAq7T1iT3/ lLXIT1cK/Nt/U4Zu+OxeY1mv3qkBpW0vi1s+JhpzCZE4lK6KztWXP036c6YyUjKMGZk6 6rL9q1uvPfAqSugYmI7wASfqkEMTqwK3Rw+CEAL7a/SkFw1MTQi3y5298izmTxJIhF4F 62hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=6AyycJke3Qb2iQByG0HA92z7hrEfJkQ6w+rpbvQyM4Y=; b=FdoPU0CuxO56uHb+ex/VXVviMA7opjNSaDVYVT3ay7w7aL6UyirrO7l0tmstYklksl dYAxRDFB6rYZj4ZXKJjqu/YcToRySPjZgCw2Gsl9gyYPDjfFNNRbQL2DGs8gLgrntRVq t42LCUiCC9mgLZlitgjXUUCAuANDRVU1u4DFEIfzKOsciO+MhDZiefy/O79GAkgpxk4O /OGiOiKHa3OS9zopuRKfI1cVUyWXQjZA1mUVxXiJq2GdbaQvjtMsJR+nlM7HPfoaDXYs 4qETWLLSux77GPMJNXXjTtE1RalN/qX0CL9u2Er17sIV/gW3kQtbniCSNBzc5m8YC8sS Joow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c3ODO9aW; 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=pass (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 d27-v6si227802pgm.67.2018.08.16.13.22.02; Thu, 16 Aug 2018 13:22:18 -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=c3ODO9aW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725943AbeHPXV0 (ORCPT + 99 others); Thu, 16 Aug 2018 19:21:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:47272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbeHPXV0 (ORCPT ); Thu, 16 Aug 2018 19:21:26 -0400 Received: from mail-yb0-f180.google.com (mail-yb0-f180.google.com [209.85.213.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F962213A2; Thu, 16 Aug 2018 20:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534450854; bh=9J4lOxCNrfVUtXPcyGryaJQZcO1MjI6GpUIdCya5PJI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=c3ODO9aWB/6FkG26/m0I6Uerb7mFlBFeP1ADCQZIkLe3Yzf228NjeIj4XYMCUONFW jhu/YFZ10Yrwd3YnePjx3667TRVu7gwbLZs6Pzci56lLj+3e+CIHHEbQyXcYIERdbI 5XiPqyG1pTYEUneSE1LY5snm/zv4P9boCf5AzY/k= Received: by mail-yb0-f180.google.com with SMTP id e9-v6so1121998ybq.1; Thu, 16 Aug 2018 13:20:54 -0700 (PDT) X-Gm-Message-State: AOUpUlGjMbv7/y5loaKj6vjDjdkrZY5WhDuLlxsXYhdW05dIqDL9jm6O /d+oVvNYLiYOLtPmRMXU7FvCurHOawc2vUCf/B8= X-Received: by 2002:a5b:52:: with SMTP id e18-v6mr17303177ybp.88.1534450853337; Thu, 16 Aug 2018 13:20:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:81c8:0:0:0:0:0 with HTTP; Thu, 16 Aug 2018 13:20:12 -0700 (PDT) In-Reply-To: <20180816190252.GB3932@archbook> References: <20180814191526.3247-1-atull@kernel.org> <20180814191526.3247-8-atull@kernel.org> <20180816190252.GB3932@archbook> From: Alan Tull Date: Thu, 16 Aug 2018 15:20:12 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 7/8] docs: fpga: document fpga manager flags To: Moritz Fischer Cc: Jonathan Corbet , Randy Dunlap , linux-kernel , linux-fpga@vger.kernel.org, Linux Doc Mailing List Content-Type: text/plain; charset="UTF-8" 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 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 >> + * >> + * %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