Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp721850pxk; Thu, 1 Oct 2020 12:09:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQlPzGvjIw/U2ivj0Cf1ZaiO9vgQLVv8DDzzTTvg1f+sitADTotayPlPDyqV4NNR1LAu7g X-Received: by 2002:a17:906:7f15:: with SMTP id d21mr9837077ejr.470.1601579370109; Thu, 01 Oct 2020 12:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601579370; cv=none; d=google.com; s=arc-20160816; b=bGahXXY/3Nnu1o/y7DU0+uB+7MGr4z+WhODcJz7yALNN/dmcmyaJmpZ5lm2AA0cbA9 jRXFqrLAtyKMk0h2TyNhdRPr7CpwwDWBwVUKoOXo0Lk3r3nCNfDeRGPo3HeP8XnWGvks F1oInVUc4w5Oa+JnryWgxsGMZWtSNoW9uzGyB1XOo8DBieNJlqfT/tNbteqDjD1l3Son usulddWHYfZD+c+oRCB+ArYEd7pG76hrxY9PLCxFtHA5kINiKKGwYOK/bRLnB/TsLH6U 4PIyUVgZsAH7Ii+Ylkq3DQxKw75lWXcJaEZcJ7NcDpIQz5kfF7K1yIHCCDjhs9OwBsLi AqaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=OF+/WWqy2ml+kJBEjYBraZTkFSg1lEvm3pja+j1FJ3U=; b=VvdHb+TpV6wUNRycr7MjeBqSObDrWzOtHd3ZovoZKswVWNQxh92ZhxnRSoF8GUQG/Z ytb8jLXoZVklPbpKDZTZHae9kQyD4oDgPeXZoE4yVNm+LXisUbo3nrLG/9Q+7jT9US+V MHrOchqVJgRfLxPx/k01XvXOifp81P7IIVLgZxWRndmHtNhTCPG2RTcpB3srUqe3AgEI PUQksR5jsxtDTm3GE8fio067Nnp+3VfOkNCNlLRCWFHRlDJRvbFytNhtXl3RSz6/21DN qOPrnQkfCPIMc7O0A5zk/+uiOUTTcNxao6UMyFPcwgFxr05b0HWuwDOtf2tklBP5/zKE Fnxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id bo17si4120181ejb.391.2020.10.01.12.09.07; Thu, 01 Oct 2020 12:09:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1732792AbgJATH4 (ORCPT + 99 others); Thu, 1 Oct 2020 15:07:56 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:47029 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729418AbgJATH4 (ORCPT ); Thu, 1 Oct 2020 15:07:56 -0400 Received: by mail-pf1-f195.google.com with SMTP id b124so5450327pfg.13; Thu, 01 Oct 2020 12:07:55 -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; bh=OF+/WWqy2ml+kJBEjYBraZTkFSg1lEvm3pja+j1FJ3U=; b=Sdb7XHBDD2koLGxBHMwtKvW+72tqy3Mi1GAF/s1AitVJfeU2QisIYn92k5zohjoiRR mEVl/sTGl6a4N1ELxYUhxbK5m4ldzUPV1Oci+PpB1H7r6/fcGm8PnRkfimNy2tvth6lw wSvPRhLefKQH2jde6MJxoIFb+DW8jbD1443lj9S1M/nrgyqvZ56/GGXE3I8R3uwZ+uYT rjgBRKMOzbuy6hcHS6anCEzYFMZKE3Bq7XI4jQDTL7C1xivdXz9aVLU8tbcdGCW1cYTl i0Ee5KUrTMrll5peBlsDacdS/Hw7yEUW7R1WTsJP/AWIHQuGVmuf6nq/ds6iE2fM7MBw 2U5Q== X-Gm-Message-State: AOAM5335o5erHI3k0QML7WLtMiIlG5g2MCoEhY5n8Anxdhb2j5i6GZp+ JAJ7eq5auay0ZHIdlhc8TQQ= X-Received: by 2002:a17:902:ff07:b029:d1:e5fa:aa1d with SMTP id f7-20020a170902ff07b02900d1e5faaa1dmr8782666plj.84.1601579274789; Thu, 01 Oct 2020 12:07:54 -0700 (PDT) Received: from localhost ([2601:647:5b00:1162:1ac0:17a6:4cc6:d1ef]) by smtp.gmail.com with ESMTPSA id j19sm7250249pfi.51.2020.10.01.12.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 12:07:54 -0700 (PDT) Date: Thu, 1 Oct 2020 12:07:53 -0700 From: Moritz Fischer To: Russ Weight Cc: Moritz Fischer , lee.jones@linaro.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, trix@redhat.com, lgoncalv@redhat.com, yilun.xu@intel.com, hao.wu@intel.com, matthew.gerlach@intel.com Subject: Re: [PATCH v1 01/12] fpga: fpga security manager class driver Message-ID: <20201001190753.GD121420@archbook> References: <20200904235305.6254-1-russell.h.weight@intel.com> <20200904235305.6254-2-russell.h.weight@intel.com> <20200916201604.GA1076460@epycbox.lan> <20201001003101.GC121420@archbook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russ, On Wed, Sep 30, 2020 at 06:07:00PM -0700, Russ Weight wrote: > > Hi Moritz, > > On 9/30/20 5:31 PM, Moritz Fischer wrote: > > I think providing the devm_ managed APIs is nicer, and makes it easier > > for the consumer of the API to do the right thing. > > I see that the fpga_mgr code has support for two versions of the create() > and register() functions, one uses the devm_ approach, and the other does > not. Would also want to have two versions for the security manager? The devm_fpga_mgr_create() just wraps the other one. I think that's a good way to handle it for now. I'd keep the breakdown the same. Cheers, Moritz