From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 7B7F4C48BE5 for ; Tue, 15 Jun 2021 07:26:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5369E61059 for ; Tue, 15 Jun 2021 07:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbhFOH2s (ORCPT ); Tue, 15 Jun 2021 03:28:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:53498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbhFOH2r (ORCPT ); Tue, 15 Jun 2021 03:28:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8EF21600CD; Tue, 15 Jun 2021 07:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623742003; bh=rqLmbBPqLHcQc3DU4JjH/nhDlHNoF6Fp1fM2HpeNIuw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qydXXUAchFQHbbbdRulEfZ4gHvrpyVYobxK2XHd133w9a81vrO0QaebBctYsIyEGX 5/NPumgu+YwI8BozqL8Wb/0hwsptoSFPtX0fbHUljijpC9yCG6DXwt6LqNc4QnkXNW UDIzC8lfiDfWyGWXnhKPfHEt2h5FIEg/+0YKqSV4= Date: Tue, 15 Jun 2021 09:26:40 +0200 From: Greg KH To: Moritz Fischer Cc: linux-fpga@vger.kernel.org, Russ Weight , Xu Yilun Subject: Re: [PATCH 7/8] fpga: bridge: Use standard dev_release for class driver Message-ID: References: <20210614170909.232415-1-mdf@kernel.org> <20210614170909.232415-8-mdf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210614170909.232415-8-mdf@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org On Mon, Jun 14, 2021 at 10:09:08AM -0700, Moritz Fischer wrote: > From: Russ Weight > > The FPGA bridge class driver data structure is being treated as a managed > resource instead of using standard dev_release call-back to release the > class data structure. This change populates the class.dev_release function > and changes the fpga_bridge_free() function to call put_device(). It also > changes fpga_bridge_unregister() to call device_del() instead of > device_unregister(). Same "two step" problem here as the previous patch shows. And again, why are you having both a create/register process? Why not just do it all internally? thanks, greg k-h