From patchwork Mon Oct 17 11:47:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 616248 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 AB306C433FE for ; Mon, 17 Oct 2022 11:48:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbiJQLsD (ORCPT ); Mon, 17 Oct 2022 07:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbiJQLsC (ORCPT ); Mon, 17 Oct 2022 07:48:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E423C53D37; Mon, 17 Oct 2022 04:48:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B86496108B; Mon, 17 Oct 2022 11:47:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D867C433B5; Mon, 17 Oct 2022 11:47:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666007279; bh=XFapxTpHu9EzBGP12vik84DfocOA+gjV/xwOfeyX0eo=; h=From:To:Cc:Subject:Date:From; b=ZTMJIIza9WqAg9FcoVifjPEnqdm5bnc66SfCqoZNzaTiD+1fkBuPWLxLlf5L6KG6f MkbUXlcuWUplEpwvkxVoTOYnF/y29ieEEezT4x4dGDEBq/YQdQ+FFxq9rWqtxmrxvj t5KIS39DnkV2pzhoXXHpiHJrJrRKUGQ+8XWTBKU6S4v6Xn8SpaTIK0OrtDr7b07LQJ 4qM5C6Apu1/zr5C08NCusBgjquR/368GvVOkUgKIjqzk2yNOpNVQHndpgtYTfUjGV6 0bki8l7cajFT3inlnaUe60/CtJpeXgaY/36g7nStoZad+vNu8QeQBxdtWLN3EPv38o 4XMDtDffrE/pQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1okOay-0002Az-Ky; Mon, 17 Oct 2022 13:47:48 +0200 From: Johan Hovold To: Stanimir Varbanov , Lorenzo Pieralisi Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v3 0/2] PCI: qcom: Add support for modular builds Date: Mon, 17 Oct 2022 13:47:03 +0200 Message-Id: <20221017114705.8277-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allow the Qualcomm PCIe controller driver to be built as a module, which is useful for multi-platform kernels as well as during development. There's no rush with this, but I figured I'd send an updated version that has been rebased on 6.1-rc1 (where post_deinit() has been removed). I also broke out the qcom_pcie_host_deinit() handler in a separate patch as the host_deinit() callback has now been added to dwc core and can be used to fixes some late-probe error handling. Johan Changes in v3 - rebase on 6.1-rc1 where post_deinit() has been removed - split out host-init error handling - add Stan's ack Changes in v2 - rebase on next-20220720 (adjust context) - add Rob and Mani's reviewed-by tags Johan Hovold (2): PCI: qcom: Fix host-init error handling PCI: qcom: Add support for modular builds drivers/pci/controller/dwc/Kconfig | 2 +- drivers/pci/controller/dwc/pcie-qcom.c | 39 +++++++++++++++++++++++--- 2 files changed, 36 insertions(+), 5 deletions(-)