Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4196005rwd; Sat, 3 Jun 2023 23:17:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5obND+UJKvNtYo3Oiy9xjC5kc4HojtoykgYlj/JNE8DQjArWl2C6nPbpLB+nQaNpg3e/6s X-Received: by 2002:a17:903:2696:b0:1b0:577c:2cb with SMTP id jf22-20020a170903269600b001b0577c02cbmr4589117plb.25.1685859439460; Sat, 03 Jun 2023 23:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685859439; cv=none; d=google.com; s=arc-20160816; b=AmrCKwdGa/R0SH8lgLTEFZwZlh7OKqWD+ubmqC3lT9rJl8xz66ASOn8shrDm1NRDTL 8aoR9CCT22F2a8RwJsBZn6szGqRSs6dZBJssrqpFgQvbLny72m8bgw8Oy1FTT6fkRyVK ILsK1IOgy9Ptsj4XwN5/S7LwxtV6XKmRTPKI2cF9m7BU62RtQ6jtRenrOpAi0+B/tsiP 8JTxKhPOJt3lfhO0iLwzisVSDNV9cl0ctpuyFCc9GkEDB2gIDzRMXlivcXBmRyp54NDp yLAwzttX8VvcaAxLn91O+u+TbrAbgGwV8ng/uPoY6cCsdmX3F57Lk5KU5jWFxU+y14yB sHRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:feedback-id:dkim-signature :dkim-signature; bh=mYfYawhR6/FwU6aA3Or07fkbdZ6eFN/9YA8MoLGiTOI=; b=KfnCzkjl8fCh5TNlHDIv6dCAhIRwyESZJPnBrITEeh2+fG25DZ8Qtc4ovWhOGbrKbO HQlf0lPrm4hQwB2q0qvfLOEkZ5ChJ5KVG401x/c72r1ENsc0o+5xU5G2dUQI00SovFa9 W84zr9TKqOpSn/bKOLThNDe+Nui2sGxwvCwEWEi+YQ70+jX6fLuatVNT7s6Oy1XHUK93 RPFlXsWCEiRG7BbDBiIawT9gDwLNUzqmjsGeJwfY7kL/FI8GhFv1DtsAO/QfBG4Ht2yo Rf0woA8F7zXdaPo2PcDQVRjcSlAZhKS1+xxVwn/dKwYD0IOMBAFlDI2IptTHLCMvIeTj 5tdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm1 header.b=nzbvAALf; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="vS/BRBm5"; 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 b1-20020a17090a800100b00258b1d44af6si5310414pjn.6.2023.06.03.23.17.05; Sat, 03 Jun 2023 23:17:19 -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=nzbvAALf; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="vS/BRBm5"; 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 S230061AbjFDFpD (ORCPT + 99 others); Sun, 4 Jun 2023 01:45:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjFDFpA (ORCPT ); Sun, 4 Jun 2023 01:45:00 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEDDDD2 for ; Sat, 3 Jun 2023 22:44:59 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9A0865C0103; Sun, 4 Jun 2023 01:44:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 04 Jun 2023 01:44:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1685857496; x=1685943896; bh=mYfYawhR6/ FwU6aA3Or07fkbdZ6eFN/9YA8MoLGiTOI=; b=nzbvAALfuKK8lO11gTvuhUocJ2 qHT2Pvh9oKeKPUL0QwvzOQtP292DO/53pAimHHT09OcMDfWapT6EH35yBN3MFRxr va4xQe2DwCJXfTh/mFFE8eQGGySGh7gCqzdaCay3HjXxqfMzrJmoPbgBth7WRJEQ 22Oq45p9IJ7dgVOpqAB/TIUo95fE7udI7bEyOGaFXVtscrWzKWCYgIst3b0GjgXy 92Eb6V4rHSX4WxyqYnFCUkBk/XZJwfe5QurGkoRiHse00e+A4pWaT69wpbAjkmgX 4hc099B9ik4lTy/XpRmXEnKAFk2RmbpT0Z8yGGDPO3uJGB/+3w62xHTTmp0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version: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=1685857496; x=1685943896; bh=mYfYawhR6/FwU6aA3Or07fkbdZ6e FN/9YA8MoLGiTOI=; b=vS/BRBm5+glxkXhS8cAZ2qCCRd6TEaOBtWeH54E1Fau9 CBjAuQNGGeq3rEm/bboWVSmKSFdTmezYDjDlDHGmYLq0pWSHEPXyWyXoI2/nh/pB D3YkZ98bC8Ab9+i8t9Ccb0e2hwkadqXWZEgL9gvWnHTFP0Czc5FhS5kh32SHdYfX scgmupmeVcpXweVvxZ9cn7s+1iEMEK+s1dRRNbQa9Gs6xljzoNR05MCu3H0JM9pq nHoYLMdRYXiertr9RVsBWFBbfd2oLm4LirjvrW5lp2jyEGdEdrT/M05uH8voAtJc qVx0hDlCi5j52VGvLrHBJ62lPF0xSo/YBRLtIg21dQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeliedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghkrghs hhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpedujeetlefhtd dtkefgtdeuieelhffgteejjeehkeegveduvdevgeeiheeuueekjeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehoqdhtrghkrghshhhisehsrg hkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 4 Jun 2023 01:44:55 -0400 (EDT) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 0/9] firewire: ohci: adoption of device managed resource Date: Sun, 4 Jun 2023 14:44:42 +0900 Message-Id: <20230604054451.161076-1-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.39.2