From patchwork Tue Jun 20 09:49:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 13285517 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44D2FEB64D7 for ; Tue, 20 Jun 2023 09:51:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232526AbjFTJvc (ORCPT ); Tue, 20 Jun 2023 05:51:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231560AbjFTJu4 (ORCPT ); Tue, 20 Jun 2023 05:50:56 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C73152957; Tue, 20 Jun 2023 02:49:10 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id A5C7592009C; Tue, 20 Jun 2023 11:49:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id A241B92009B; Tue, 20 Jun 2023 10:49:08 +0100 (BST) Date: Tue, 20 Jun 2023 10:49:08 +0100 (BST) From: "Maciej W. Rozycki" To: Bjorn Helgaas , Dennis Dalessandro , Jason Gunthorpe , Leon Romanovsky cc: linux-pci@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] PCI+IB/hfi1: Fold duplicate secondary bus reset code Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hi, In the course of verifying my PCIe link training failure workaround (cf. ) in the context of secondary bus reset handling I found a piece of code in the InfiniBand HFI1 driver that duplicates what we already have as private code in PCI core. This patch series removes this duplication by exporting said private code and than making use of it in the HFI1 driver. As I have no means to run-time verify InfiniBand code I have only build these patches, for x86-64, with the HFI1 driver both built in and modular. Please see individual change descriptions for further details. Please consider. Maciej