From patchwork Thu Feb 3 21:44:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12734680 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E02FC433F5 for ; Thu, 3 Feb 2022 21:45:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E9z/1cIr25Wpw0kgrNO8H+mUxQ49JtkJKniujqy1VBU=; b=CzvLFSC19gMLn2 BlJF1RYRRBEQUzirip4Q3LepG55FGqCir5X4EUKkcEtq0tZZkwtEsn1wz1TMhGZUe9I06djzLonHg XZIBQiAQDj7J3sAzKWaTZ4zLZYEQHZcXfePIg5/NK3Bpk+ZHrnTQX9LDqB/cxjIhudPtlhAJwCWRs szMiAu3+mVO/KxJRCO8brbs9GL21aoOl89xsA2qGlyst7GDr4REJN9pT9m+/WLznY+xN2VRQVv67j 8cC9YjsViYYnC0vmeDpu9YdvNUPWpo2youlX2FfCehv04vHdEx0zMxiLxhsvr3WRr3m58jdCqqbCe rdVWNb0CmW51JshA/RFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFjua-002zej-3n; Thu, 03 Feb 2022 21:45:04 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFjuW-002zd7-L7 for linux-phy@lists.infradead.org; Thu, 03 Feb 2022 21:45:02 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id 3C042B835A7; Thu, 3 Feb 2022 21:44:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A067AC340EB; Thu, 3 Feb 2022 21:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643924698; bh=dD/dahhK4YN+UdwY8mA2ff+G8pyn2M10R+sHvINGFFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aXURb0gUhGAEvEwTHHxqNeeHFrBTyjohdx8Q7qMzX79YxUi8OzBI7aK7RZzD1rhtO WhH2xWPxKb4RYgTq57CXyKUCKcLKFGtZCOyl9RgXxiVrW26Uih/XXiMGsVRrAXx2v3 +puL7WROaTaMaIkJTxEK4gKxvBd20NmJXpnjLfUEzlwhuNVryUTn8aT9IlP0+Q6TVi wM1+77IXuUgAkmixpXfwP9CLXCCoXXkn+y3E2qpe8eJk3BTYDgN4AKaXTNKxwRXW91 GOYutVhnszEEm+4PevRHfxs1H7HaPc71f9XL1bp0wUITqYzRJmFOtMBCTmyKs2ydS3 e2NK8ibY4vjYQ== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Vinod Koul Cc: linux-phy@lists.infradead.org, Kishon Vijay Abraham I , pali@kernel.org, =?utf-8?q?Marek_Beh=C3=BAn?= , Miquel Raynal Subject: [PATCH phy v4 5/5] Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware" Date: Thu, 3 Feb 2022 22:44:44 +0100 Message-Id: <20220203214444.1508-6-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220203214444.1508-1-kabel@kernel.org> References: <20220203214444.1508-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220203_134500_860478_EF14408E X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Pali Rohár 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 Signed-off-by: Marek Behún Acked-by: Miquel Raynal --- drivers/pci/controller/pci-aardvark.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index 4f5b44827d21..6bae688852a5 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -1482,9 +1482,7 @@ static int advk_pcie_enable_phy(struct advk_pcie *pcie) } 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; }