]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: j721e: Fix j721e_pcie_probe() error path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 27 Jun 2021 11:46:24 +0000 (13:46 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 3 Nov 2021 18:46:11 +0000 (13:46 -0500)
commit0fa1adc6136f7b3877d35bb01ee752b248d7bd2e
tree3efa10b0891c8c5c379377509504ae06f4a6a003
parentfa5d4460cfe6a4ab811a36d49fe44ccb61944b70
PCI: j721e: Fix j721e_pcie_probe() error path

If an error occurs after a successful cdns_pcie_init_phy() call, it must be
undone by a cdns_pcie_disable_phy() call, as already done above and below.

Update the goto to branch at the correct place of the error handling path.

Link: https://lore.kernel.org/r/db477b0cb444891a17c4bb424467667dc30d0bab.1624794264.git.christophe.jaillet@wanadoo.fr
Fixes: f27ba36106cd ("PCI: j721e: Add support to provide refclk to PCIe connector")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/controller/cadence/pci-j721e.c