Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1130862imm; Thu, 6 Sep 2018 16:13:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbYp6WRHuhM5xs9id6/hPUwxt14A//udomQIl1Mx5y8a4scUJUvwXR3oWNOtuucok/fccRO X-Received: by 2002:a17:902:7586:: with SMTP id j6-v6mr5063351pll.295.1536275630425; Thu, 06 Sep 2018 16:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536275630; cv=none; d=google.com; s=arc-20160816; b=npRE8JsTwsq4v9HbcJMOJqAJA7bAEzbDdz9AliHX4qY9k5HELJmjjJcOvwIt5UQW73 v5WJn8ZHB6T5nKE9GJ6JwjX1Cam7i52iWO0FPRuJtVaxDP/KmXr2NTbSC0/Dz7/JCVJB k7JEF4AMso9JxE11prbQn76ksgpg6dAiEcpLVVk2MERSbpVXDADUw0fu/HpD4FgwMxpu nEVmRO9Jf95ZdGbAyhIp+udELw6I1ui6zORnx3Ow7XPg3X5USBKPut6eRkvdOqddPZdO +rMhTK7HcqhK3pSspoGd9fGP+WJHVBB9t7OqI0mFppgcjD2fFRMUtY5sju8F3QfENHYj ft8Q== 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 :in-reply-to:references:mime-version:dkim-signature; bh=LmancTlO5kqIFPOUXqIjP3ViZzZlbj25PWPkw9PCSxY=; b=vYIQjS2ic4pxZGlAIXuE5APG2535lYy/tTsbsgOy1JzoUUUoyUx78k14fw6rpBCzeo a6NH8tZDFLrQ05mKAkd80bLsu0ua69ZsifPX6gUrdzmah+rC4NTCp+zw06FA6oIK4IRE QWV0orzHrhqNy/r3ivEBLJLw2S1w5eIG7SlzYvAslHimSU71IxHRNSR9L2lqKzRCMiqQ 43ut8u3S/useZIVOLXDDg1GKHAup3ET/uJF6QvTgHWZiIpu/hptdI1/fIFLPZfUeyBNZ FLCZjcYglUscI/uZ0MhYAwnOiULVmvg2nEi51q42wZlHTfK4zWT+7hCbCBKZ9QJLtMvJ MQfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hFPouwoG; 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 m10-v6si6514848pfe.133.2018.09.06.16.13.31; Thu, 06 Sep 2018 16:13:50 -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=hFPouwoG; 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 S1730539AbeIFX1L (ORCPT + 99 others); Thu, 6 Sep 2018 19:27:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:50170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbeIFX1L (ORCPT ); Thu, 6 Sep 2018 19:27:11 -0400 Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (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 3479620861; Thu, 6 Sep 2018 18:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536259824; bh=tmMm7eVA0zGd3cTvdEC/8cNW4aOFfHy8SpZxDZPRmzc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hFPouwoGLBOaKZ0KKdNCsSZ/M3i1UG+AsclfPT+XjHRn7JNrlGdZJ4WptrIGkoPoB jn5rovBAVi9oLjSxKPYp9We8Rhu21spzh4IDwZ6i+7ge5rBfN6b0VX6TAAOkXTgnRl 7zcnBR+Hw/7kuSsED/8c9UHwZMyJhT/Y/QWy9YV8= Received: by mail-yb1-f182.google.com with SMTP id k5-v6so4518355ybo.10; Thu, 06 Sep 2018 11:50:24 -0700 (PDT) X-Gm-Message-State: APzg51BeZSxGZqyfh9UfJL04zAVOnF9VIrsXXlW6NDBHlRcsqKimntAw iRClNeekMqnS4e1STIfEu8SgS2GJP7MESFUxZms= X-Received: by 2002:a25:9884:: with SMTP id l4-v6mr2341944ybo.255.1536259823418; Thu, 06 Sep 2018 11:50:23 -0700 (PDT) MIME-Version: 1.0 References: <20180904212237.3078-1-atull@kernel.org> <20180904212237.3078-4-atull@kernel.org> <20180906181918.GA20419@archbook> In-Reply-To: <20180906181918.GA20419@archbook> From: Alan Tull Date: Thu, 6 Sep 2018 13:49:47 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/8] fpga: bridge: add devm_fpga_bridge_create To: Moritz Fischer Cc: Moritz Fischer , 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, Sep 6, 2018 at 1:19 PM Moritz Fischer wrote: > > Hi Alan, > > On Wed, Sep 05, 2018 at 10:38:53AM -0500, Alan Tull wrote: > > > > - * fpga_bridge_unregister - unregister and free a fpga bridge > > > > - * @bridge: FPGA bridge struct created by fpga_bridge_create > > > > + * fpga_bridge_unregister - unregister a FPGA bridge > > > > + * > > > > + * @bridge: FPGA bridge struct > > > > + * > > > > + * This function is intended for use in a FPGA bridge driver's remove function. > > > > + * If the bridge was created with devm_fpga_bridge_create(), the bridge struct > > > > + * will be automatically freed. If the bridge was created with > > > > + * fpga_bridge_create(), the caller is responsible for freeing the bridge with > > > > + * fpga_bridge_free(). > > > > > > I find the formulation somewhat confusing, since it could be > > > interpreted as if you > > > used the devm_() functions you don't have to call unregister(). > > > > Yes I'm being too verbose and it's making things muddled. How about > > if I take out the part that starts with "If bridge was created..."? > > That just leaves "This function is intended for use in a FPGA bridge > > driver's remove function." > > Sounds good. OK, for v3 I'll make a similar change in patches 2 and 4. Alan > > Moritz