Message ID | 20210624211727.501019-6-trix@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=ak/p=LS=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0B2DC49EA5 for <linux-arm-kernel@archiver.kernel.org>; Thu, 24 Jun 2021 21:20:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8164B6124C for <linux-arm-kernel@archiver.kernel.org>; Thu, 24 Jun 2021 21:20:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8164B6124C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qh2n9SpgWp8yAaV1vUH4cG9R42RVDwINZj5Tf6ZYHsc=; b=OvNTtu6DJTUkS5 2FNsT0TNiAb+YPFp+m/hWNBN2/9ZFnihKN96RZeTB9zYmLyMy8mHXyU5oKEGZs+xTkQKDSKzKRRfk 6+GE6Luy0F1l97Qx+LZzAkBKEhmaA9hxrla4Byzs2nrC3FG4afxlkQsLh1qXP/vpH7Kju5WzzPwn7 0Q1ZGQ7v/Qe8S6LnSU7UiTYOXTJOKvKnAPhSAphyXMOCLmVjhQmLbS/ycWjLTONeCTGOBOGbQrrAf udE0JTlmMDIBGoLcIMEOTWBPuY3+vwhyEQXIqHkwgz2P00XaLvoKk5kcUsMKg8j9mWfln6JZEq/NR Ts7FD9EhyjMVBFFikgHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwWkG-00GKRx-Pz; Thu, 24 Jun 2021 21:18:45 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwWjZ-00GKFU-B3 for linux-arm-kernel@lists.infradead.org; Thu, 24 Jun 2021 21:18:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624569480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mFedRc0xrO8oseMlvLubEPJS4VuKtnhUf95dNVhDdKc=; b=DJosz9AfAWcPgU5QKwPKTSvpUXqhoWjjerYuJvhII0xwXug3vP0TFyldyTYQcElIuSddPk MGNHYeA19xSKwIwdE/HiDvychICTkVi2x5rF4fK2emCCYIaIsiIda3UjjOFXmAbmL1VIP5 kN71W3yizSzMMfzFpuQAuR+MLuQ0X6w= Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-412-rgWcumQuP3afppt13QXc5w-1; Thu, 24 Jun 2021 17:17:58 -0400 X-MC-Unique: rgWcumQuP3afppt13QXc5w-1 Received: by mail-ot1-f71.google.com with SMTP id y6-20020a9d51860000b029046100bd0f34so1594912otg.22 for <linux-arm-kernel@lists.infradead.org>; Thu, 24 Jun 2021 14:17:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mFedRc0xrO8oseMlvLubEPJS4VuKtnhUf95dNVhDdKc=; b=PaVgr89YzbhDVTXK3jw4YBzt4udLUiiFTBnVRzaZp/LLOQ3zcCL7bID9oQO6lumdU5 FgHeb37yH9vAnWosSqxlGccaIY7xgMzlnwx+PkWymnCLodF0Xoj02GDBpQi9BSXut04S M95vsPy9E2nYSvVbKxH8liJ9RNTy4t/3AD9dsy9KwysJzEAcxwS8YRT4cWnqzA5grMu9 /sBxJ8elujuMDjWyKoN5yf0btOcld6urZIcJ+yoRkC+vBeevjfnKH0NMaLK6Dlz0WL7y 9AZF6cOLL2rOOdcN2S3S7vHqOXYfhN4iscnUGX4cFPHjAJIGuYQ6GcbFycZMbRRPjUI7 IELw== X-Gm-Message-State: AOAM530fhkcgpmMpEHJhzTgXS1OV268UR8w+jHqsc4W6iNQMEuterj4O +ws4QVTjykG2xsQgCH90OZ+FMNDsNPIfNyJllP7xbE+jyfquPrTvzSBoEkvqCcDrOXCm4tU8RSp Fx95II1TpelvkQ9woxT/eIzkhyDiQSrRD6cg= X-Received: by 2002:a05:6830:1ac4:: with SMTP id r4mr6259373otc.36.1624569478212; Thu, 24 Jun 2021 14:17:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymkYtjbDACtIBCrlWJa04+yJJF5DcY75EP2JsqstF7I/shhvTHBjE5r+wDrfOsOzapIRL9Aw== X-Received: by 2002:a05:6830:1ac4:: with SMTP id r4mr6259359otc.36.1624569478058; Thu, 24 Jun 2021 14:17:58 -0700 (PDT) Received: from localhost.localdomain.com (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id 94sm915513otj.33.2021.06.24.14.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 14:17:57 -0700 (PDT) From: trix@redhat.com To: mdf@kernel.org, hao.wu@intel.com, michal.simek@xilinx.com Cc: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tom Rix <trix@redhat.com> Subject: [PATCH v4 4/5] fpga: use reimage ops in fpga_mgr_load() Date: Thu, 24 Jun 2021 14:17:26 -0700 Message-Id: <20210624211727.501019-6-trix@redhat.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210624211727.501019-1-trix@redhat.com> References: <20210624211727.501019-1-trix@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210624_141801_526647_8592CCDE X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
generalize fpga_mgr_load
|
expand
|
diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index a785b7dc5dba0..2abb7043858dc 100644 --- a/drivers/fpga/fpga-mgr.c +++ b/drivers/fpga/fpga-mgr.c @@ -420,6 +420,9 @@ int fpga_mgr_load(struct fpga_manager *mgr, struct fpga_image_info *info) { const struct fpga_manager_update_ops *uops = &mgr->mops->reconfig; + if (info->flags & FPGA_MGR_REIMAGE) + uops = &mgr->mops->reimage; + if (info->sgt) return fpga_mgr_buf_load_sg(mgr, info, info->sgt, uops); if (info->buf && info->count)