Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3461638pxp; Tue, 8 Mar 2022 15:05:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSAXyN/6yl+ER9GG7FB5fSc+ChP2r25MEM/Lmy5TFuhISfuYh5f5W2l27KU6qbTEhe75WX X-Received: by 2002:a63:4665:0:b0:374:7305:dab4 with SMTP id v37-20020a634665000000b003747305dab4mr16105429pgk.256.1646780753747; Tue, 08 Mar 2022 15:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646780753; cv=none; d=google.com; s=arc-20160816; b=KqcyILit3eisS7UosI31pcUkXkMDRDd224alNylB9rNjN2OzmiNcv7WUUi3Hdns8iQ GODS+15PTSM8qUjHZlXTxKv/RZ27KMmoJVlzjchZeo7b5NxoiXfNHvXxYVoCNKv0UzIM cmjGIXslNLLQad9SzMjlsonSB3w0/78UiGiSN+Vayr7Rz7GUiOdq6QkghzTAkRCMZ4jO 78Rakrcgq76UUFjQMKz3/sqd2nE1Cy3bwgJGE0IFF8GBkcco9Xbrdb+APkLXAsJC/u97 YS3IbZ2jquajE0be5kLlhE+DV09RtWwadh3dsHjKmnba591gDL6pSmOrODsBljqy/XTg jwxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=4+5fIsUdnhJaqUBKRUIXsouFBz/FXzcKIyXbHRA8mZc=; b=bSLFXePYbl8s7PIuHRqZ6kFtm4dnKlDUJ06pAy2M2N5tsOZLtiXrAtv2JmZI1CrtJr 7xQplfXYa37whJ34y1X1sT+Y3uc6OFkhNGt2JUK8GfulNou/A8jruXnAFUSpKVqtpL9u 6dKA2wEGJ9q7Gj9QxIZC0uGNtrPunX+iaLuWxKXCs5sseN8B+xzcn1Grd+8nvE9Ms1Za /LK7UuXUquN9TfEsPiIxxt91Nb/DyWLpWKUx8p4wr8L3oyPaMgEfZnJWGVoY0WoGt/yv Xb6sdF7/+nseVjeXHql2jV+QBhHu/2Hnn9qgfTAZYlnwB3vHLnLOu48j4azUDtB6bkPa hY3w== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q20-20020a056a00151400b004f6f2ff6a86si175545pfu.212.2022.03.08.15.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 15:05:53 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1B3D65FF34; Tue, 8 Mar 2022 15:04:58 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344313AbiCHHAG (ORCPT + 99 others); Tue, 8 Mar 2022 02:00:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbiCHHAF (ORCPT ); Tue, 8 Mar 2022 02:00:05 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91B6A25C46; Mon, 7 Mar 2022 22:59:09 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 0533B68AFE; Tue, 8 Mar 2022 07:59:06 +0100 (CET) Date: Tue, 8 Mar 2022 07:59:05 +0100 From: Christoph Hellwig To: Ondrej Zary Cc: Damien Le Moal , Christoph Hellwig , Jens Axboe , Tim Waugh , linux-block@vger.kernel.org, linux-parport@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/16] pata_parport: add core driver (PARIDE replacement) Message-ID: <20220308065905.GB24269@lst.de> References: <20220305201411.501-1-linux@zary.sk> <20220305201411.501-2-linux@zary.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220305201411.501-2-linux@zary.sk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + > +static void pata_parport_dev_release(struct device *dev) > +{ > + struct pi_adapter *pi = container_of(dev, struct pi_adapter, dev); > + > + kfree(pi); > +} > > +void pata_parport_bus_release(struct device *dev) > +{ > + /* nothing to do here but required to avoid warning on device removal */ > +} > + > +static struct bus_type pata_parport_bus_type = { > + .name = DRV_NAME, > +}; > + > +static struct device pata_parport_bus = { > + .init_name = DRV_NAME, > + .release = pata_parport_bus_release, > +}; Hmm, wouldn't it make sense to let the libata device hang off the device in struct pardevice?