123456789101112131415161718192021222324252627282930313233343536373839 |
- From 9a4556dad7bd0a6b8339cb72e169f5c76f2af6f1 Mon Sep 17 00:00:00 2001
- From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <[email protected]>
- Date: Thu, 3 Feb 2022 22:44:44 +0100
- Subject: [PATCH 3/3] Revert "PCI: aardvark: Fix initialization with old
- Marvell's Arm Trusted Firmware"
- MIME-Version: 1.0
- Content-Type: text/plain; charset=UTF-8
- Content-Transfer-Encoding: 8bit
- This reverts commit b0c6ae0f8948a2be6bf4e8b4bbab9ca1343289b6.
- Armada 3720 phy driver (phy-mvebu-a3700-comphy.c) does not return
- -EOPNOTSUPP from phy_power_on() callback anymore.
- So remove dead code which handles -EOPNOTSUPP return value.
- Signed-off-by: Pali Rohár <[email protected]>
- Signed-off-by: Marek Behún <[email protected]>
- Acked-by: Miquel Raynal <[email protected]>
- Acked-by: Lorenzo Pieralisi <[email protected]>
- Link: https://lore.kernel.org/r/[email protected]
- Signed-off-by: Vinod Koul <[email protected]>
- ---
- drivers/pci/controller/pci-aardvark.c | 4 +---
- 1 file changed, 1 insertion(+), 3 deletions(-)
- --- a/drivers/pci/controller/pci-aardvark.c
- +++ b/drivers/pci/controller/pci-aardvark.c
- @@ -1642,9 +1642,7 @@ static int advk_pcie_enable_phy(struct a
- }
-
- ret = phy_power_on(pcie->phy);
- - if (ret == -EOPNOTSUPP) {
- - dev_warn(&pcie->pdev->dev, "PHY unsupported by firmware\n");
- - } else if (ret) {
- + if (ret) {
- phy_exit(pcie->phy);
- return ret;
- }
|