Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6309574rwd; Mon, 5 Jun 2023 16:43:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GmDxX89oxHXQe9xK6NcJxYita8vOchwiLQkBDSuR6TcpK5nxStPSyuthUsIwWv0M4/Pog X-Received: by 2002:a05:6a20:8f1c:b0:110:d78f:8156 with SMTP id b28-20020a056a208f1c00b00110d78f8156mr542216pzk.19.1686008635743; Mon, 05 Jun 2023 16:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686008635; cv=none; d=google.com; s=arc-20160816; b=u3S+wVDCg0/3OdXRwpikrAPLV62lbN1oE0KSpg8oUJOJ71S0Ol0pR4/GJLUPNiZFuH wYdLVf67fufAx7HPGGs5IB0Yv0LeCVnJJ/UBDC9i8FAqcEmNFaqVYiWfJqABUtWHXJqn 2H99DTcwFzAtrwHIkizngiOU7gaqyaMM7mS5vB7DQbBJiewXw/9zGhCiWr82y570IdcS DKIWHtUGWSWRt9TEAzhvZflvCkpNhknr2/BI7hZEqiA7a17JWrHKMAFgcXivxg0cXr5r QZWH54b/KR7fq/G2dWWaM0bYnJ+yyHbOPHiT9MkHS03al/wGEag10tgydmBHTN/4YDkZ KLyQ== 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:mail-followup-to:message-id:subject:to:from:date :feedback-id:dkim-signature:dkim-signature; bh=a7KMYicZEUIE6uw7owk+wAQbBZMSOwnOCGbW7LMEHdQ=; b=rfMEDRjBYV1+eUgF5nCTTTdHm0UuiwaokI2+JqDr/QJmqzBTIsju7ZMX5NE3Zovmmx UUZec4eD6RcE4R1EoMPl5kImpvFMXfFvKwAw86aDjo0TxuxJ0t3xjXGo03r4hfetoRrE 7aHBRVCC4UlTyhqA4GStxIYxSPUwrZkXnI/IcDb5UrJViF2SFMteadY1UKjxhHkzcpn/ XJN57fb8i0Pad7LYVXveW2bDwwvmQ6cTrOU2x44SBdcrnoqRV1CQsAnj/DHVJEPuOV3z bSyb5X2XxTjT4OGb0Kh+4bjLy/KKfFDHJaBl4f6BODHFKOvZNDUxCreFqeUhbTM0xK5V sjGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=ZRckXazy; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="QFIi8G/i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a170902c40600b001a95c413f7csi6232435plk.550.2023.06.05.16.43.43; Mon, 05 Jun 2023 16:43:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=ZRckXazy; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="QFIi8G/i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232896AbjFEW4h (ORCPT + 99 others); Mon, 5 Jun 2023 18:56:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232056AbjFEW4g (ORCPT ); Mon, 5 Jun 2023 18:56:36 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 721C2DC for ; Mon, 5 Jun 2023 15:56:35 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id CEC9D5C06DD; Mon, 5 Jun 2023 18:56:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 05 Jun 2023 18:56:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1686005794; x=1686092194; bh=a7 KMYicZEUIE6uw7owk+wAQbBZMSOwnOCGbW7LMEHdQ=; b=ZRckXazygVE2iBj1KT C43WeNABbbX96WzodVN7/uF2MN9F+dl7AUHe52F5I2Z6wcxZhfGtenmkJdsGzmRs gUfs4cDXQhxljZUnS57fg6KvxKCRKrwiC2+MJdgC1bhXaVlbZfr+aCBGIex4mDnN g35pvDoN+LQcwNaGpdUv0agon1xNpExoah1SQSwxyviuaGyXY00vFKPitR6kWDaV gPT9IXpeJDDgp7HTefb3Q85U0gRYCIjqFy+k8df44zcS3efmMxEieNTuBE3niawi r0t+lbjQf39EzRb71ak+hrIp+7ETQ64pSYSLIzlG/gWJLL9AenugiPDBNn/RTIL8 w4Ew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1686005794; x=1686092194; bh=a7KMYicZEUIE6 uw7owk+wAQbBZMSOwnOCGbW7LMEHdQ=; b=QFIi8G/idAhkoxhnvL5yqUFlhtIe3 y/LzMNRdN2nvMlVTYBbTW1SsSRmVP84klSrYVzXEIOoOvSWYF2zCQlsts6HTpLhK 77nLsHBuAi0SNJsq0fcYnHKFlY08oAmQCq79L55tgYerA/NvGcM3QTOm4ZSe5Kjf L7RGtv49HNH3bda3aYipQVuvFiBk6miK4iz4KkgHkh30V1MgFHTpCoHkIDRaujLu VfiR6Bqw2Y6kyrsnRvMy8JrzW/AZq/oGYr+zHY+jM059PpEqnbcfmtgn6Ds+e9ZT vCQHW7f+0MerTCBlib1iQgP/7Tz15wXt7jTEBfiFdT5ccEkQR/3QTsquA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedttddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepvfgrkhgrshhhihcuufgrkhgrmhhothhouceoohdqthgrkhgr shhhihesshgrkhgrmhhotggthhhirdhjpheqnecuggftrfgrthhtvghrnheplefhueegvd ejgfejgfdukeefudetvddtuddtueeivedttdegteejkedvfeegfefhnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepohdqthgrkhgrshhhihessh grkhgrmhhotggthhhirdhjph X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 5 Jun 2023 18:56:33 -0400 (EDT) Date: Tue, 6 Jun 2023 07:56:31 +0900 From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/9] firewire: ohci: adoption of device managed resource Message-ID: <20230605225631.GB178739@workstation.local> Mail-Followup-To: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20230604054451.161076-1-o-takashi@sakamocchi.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230604054451.161076-1-o-takashi@sakamocchi.jp> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sun, Jun 04, 2023 at 02:44:42PM +0900, Takashi Sakamoto wrote: > Hi, > > Linux FireWire subsystem includes a driver (firewire-ohci) for 1394 OHCI > controller. The code of driver is mostly written at the time when device > managed resource (devres) was not widely used. Nowadays the usage of > devres is standard when writing drivers. The series is an adoption of > devres for firewire-ohci. > > I note that MSI-related operation is left as is. The hardware vendors > forms their products of extension card with 1394 OHCI controller > connected to PCIe bus by several ways. If chip of 1394 OHCI controller has > PCIe interface (e.g. VIA VT6315, LSI FW643), it is just connected to PCIe > bus. If the chip has PCI interface only, it is connected to PCIe bus via > PCI/PCIe bridge chip (e.g. VIA VT6307 + asmedia ASM1083). There is some > chip of 1394 OHCI controller integrated with the bus bridge (e.g. TI > XIO2213, XIO2221). The MSI-related operation should cover the above > forms as well as module option, while it is still unclear that the > operation from pci device driver to the bus bridge. > > Takashi Sakamoto (9): > firewire: ohci: use devres for memory object of ohci structure > firewire: ohci: use devres for PCI-related resources > firewire: ohci: use devres for MMIO region mapping > firewire: ohci: use devres for misc DMA buffer > firewire: ohci: use devres for requested IRQ > firewire: ohci: use devres for list of isochronous contexts > firewire: ohci: use devres for IT, IR, AT/receive, and AT/request > contexts > firewire: ohci: use devres for content of configuration ROM > firewire: ohci: release buffer for AR req/resp contexts when managed > resource is released > > drivers/firewire/ohci.c | 174 +++++++++++++++------------------------- > 1 file changed, 63 insertions(+), 111 deletions(-) Applied to for-next branch. Regards Takashi Sakamoto