Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1402824imm; Fri, 29 Jun 2018 18:07:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ7PyGaCnLA3fEA56t5g0WLWHxWGhGENPG1u7XU2MLGmhFcZiEPzGE0+Uj3Ydjrac01NXuW X-Received: by 2002:a63:2c94:: with SMTP id s142-v6mr14065466pgs.39.1530320844811; Fri, 29 Jun 2018 18:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530320844; cv=none; d=google.com; s=arc-20160816; b=YhqyQ683+aumVFTEHspZd/C9mMjZx6oyEM4TSEJi041EUb24OjQnGCVpfgNoVkD7de mKO/LLoBUQsARJXrsc74Pz53E7HwZuYNrEi2w2uMOljPwb2F3ExbsP50XbDaZi14BJUb Iv/kvTewFlYZ+aX7mKyo/nuv7G2fSdJZghJCLotN76pEq5T9BaKp4qmROSAPIcHmqsFv yaL5VtEXo6bTMvRtnIGxifEE2ngBGOB0VI1Mt4AWd3+C/ZtRK3Y9fKY/x740HwoivhNu 8Fpo/+gR8qcPODjVxMralQnThcgNR0O2Wpnhu/CymeIzViQeHEmt/G2cWnlbZZcd7HQm dwlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=G8IZjo800HG3X+vXfyUyMZPRF+6WFy/IUkcaOJMnoWI=; b=Yo3DAFl2rHMIqaLoLb7F9vXGTGuYLQWkxMHGehXOsFZnkgBTYqCDQ+qHLdCBTx4ccu B6075oSAAN6HHVfsYDZVvakwb/Mg2qyNMmwFXVeUpGzFgNw1/LphWDnlIl6/etDWifLy oC611asMWZGWduNFe7NsMcgJD4fx8w/f4N7HSF9OL/9m0SkYwGyTETwTL4SwTSPx9Rpj lFL4XpDL0Ep0b06lFkXX74CaatEyZ0vAKe068YK0jDhizQa3g+W10MPWQPG/zV84dfMp 3XQ7pJn+1lhazqy1b2b2FRW8ivDJnhSm7IyWESeGxQRxttqzNtTyKjq6VUkaDbcw2PJH U+HA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i84-v6si5638944pfd.17.2018.06.29.18.07.10; Fri, 29 Jun 2018 18:07:24 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934898AbeF3BFy (ORCPT + 99 others); Fri, 29 Jun 2018 21:05:54 -0400 Received: from mga07.intel.com ([134.134.136.100]:23612 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753239AbeF3BFt (ORCPT ); Fri, 29 Jun 2018 21:05:49 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2018 18:05:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,288,1526367600"; d="scan'208";a="212317182" Received: from hao-dev.bj.intel.com ([10.238.157.61]) by orsmga004.jf.intel.com with ESMTP; 29 Jun 2018 18:05:41 -0700 From: Wu Hao To: atull@kernel.org, mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-api@vger.kernel.org, luwei.kang@intel.com, yi.z.zhang@intel.com, hao.wu@intel.com Subject: [PATCH v7 02/29] fpga: mgr: add region_id to fpga_image_info Date: Sat, 30 Jun 2018 08:53:09 +0800 Message-Id: <1530320016-24712-3-git-send-email-hao.wu@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530320016-24712-1-git-send-email-hao.wu@intel.com> References: <1530320016-24712-1-git-send-email-hao.wu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds region_id to fpga_image_info data structure, it allows driver to pass region id information to fpga-mgr via fpga_image_info for fpga reconfiguration function. Signed-off-by: Wu Hao Acked-by: Moritz Fischer Acked-by: Alan Tull --- v3: add one line comment for region_id v4: add Acked-by from Moritz and Alan. --- include/linux/fpga/fpga-mgr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h index eec7c24..3eb6b9d 100644 --- a/include/linux/fpga/fpga-mgr.h +++ b/include/linux/fpga/fpga-mgr.h @@ -77,6 +77,7 @@ enum fpga_mgr_states { * @sgt: scatter/gather table containing FPGA image * @buf: contiguous buffer containing FPGA image * @count: size of buf + * @region_id: id of target region * @dev: device that owns this * @overlay: Device Tree overlay */ @@ -89,6 +90,7 @@ struct fpga_image_info { struct sg_table *sgt; const char *buf; size_t count; + int region_id; struct device *dev; #ifdef CONFIG_OF struct device_node *overlay; -- 1.8.3.1