patch "bus: mhi: pci-generic: Add missing" added to char-misc-testing
Subsystems (2)
This is a note to let you know that I've just added the patch titled
bus: mhi: pci-generic: Add missing
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-testing branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will be merged to the char-misc-next branch sometime soon, after it passes testing, and the merge window is open.
If you have any questions about this process, please let me know.
From a25d144fb883c73506ba384de476bbaff8220a95 Mon Sep 17 00:00:00 2001
From: Christophe JAILLET <[email protected]>
Date: Mon, 21 Jun 2021 21:46:13 +0530
Subject: bus: mhi: pci-generic: Add missing
'pci_disable_pcie_error_reporting()' calls
If an error occurs after a 'pci_enable_pcie_error_reporting()' call, it must be undone by a corresponding 'pci_disable_pcie_error_reporting()' call
Add the missing call in the error handling path of the probe and in the remove function.
--- drivers/bus/mhi/pci_generic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/bus/mhi/pci_generic.c +4 -1
@@ -665,7 +665,7 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) err =mhi_register_controller (mhi_cntrl, mhi_cntrl_config);if (err) -return err; + goto err_disable_reporting;/* MHI bus does not power up the controller by default */ err =mhi_prepare_for_power_up (mhi_cntrl);
@@ -699,6 +699,8 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)mhi_unprepare_after_power_down (mhi_cntrl); err_unregister:mhi_unregister_controller (mhi_cntrl); +err_disable_reporting: +pci_disable_pcie_error_reporting (pdev);return err; }
@@ -721,6 +723,7 @@ static void mhi_pci_remove(struct pci_dev *pdev)pm_runtime_get_noresume (&pdev->dev);mhi_unregister_controller (mhi_cntrl); +pci_disable_pcie_error_reporting (pdev); }static void mhi_pci_shutdown (struct pci_dev *pdev)
Signature · 1 line
2.32.0