From patchwork Wed Dec 8 02:40:38 2021 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: 12663293 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 5089BC433F5 for ; Wed, 8 Dec 2021 02:41:01 +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=rxHR1pw1wK1bXyQ2XG4x0jRC/qpyreOURxrSJ1TvKUE=; b=iDLsPsWKrkDTAI 11fvxp9a6cfiLIN6H0rOUw3JXrBBRkClHThYWk3UrWLyxJNDoMSa9bmCIBw2oxA20dktEaurGNpMc 9zSx7SPsFwE/d42bLVeCi0bliv3DjZa0KxA9QkaRHXiLGi1YWm6wUzOGLVyUFyw5XYAcxSTNLB9cD VqX/OPTWNn3OMVP8PgkMhKY5QCQXQBHZN2rgSaJHGGNlpwA/0OYrZTSaxn+IxKN5qaPY457SedH8v oZkMKUrIbe6mtEC9q4tBL5s6bgQLwEX9QSIrUJjrmqf7Cr0p+/MK525Vfg/7/Q3t7tYfasGhSf3dQ wCBxDJDsFO3tbiJWxVoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mumtA-00AiF3-QA; Wed, 08 Dec 2021 02:41:00 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mumt7-00AiDt-FZ for linux-phy@lists.infradead.org; Wed, 08 Dec 2021 02:40:58 +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 37BE5B81F47; Wed, 8 Dec 2021 02:40:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 836D9C341C5; Wed, 8 Dec 2021 02:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638931255; bh=kLMB/kIPySxFjVyqYi4uXxir4ZGCxn3/YdAnNX6Xses=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o8Vprq3ZlnUtttzvMaInGDkTShZBn6zM3eZbUwtf/IFvawJVVRT3NOSEKQWzi2ILB 8b0hNfAJPuXhk/P9otR6Xza+gXc/x+Qmckp8Q9AwEkzafui3pyNk0gPXWDUP1fMXnE WGVvO9czbXCKu4WiAe5xEgsn8fIIWhdHwCjt0gAY4wiAMV8xmc50ttioyJTLtxKV2q bUhjn0xfMXCULOHKEhFQYaT0NGjRiRkauo1G3xljznoAlJjJgXLONZUXXouGDupxqI M4MNJtzBUUs9kKwFUyaEudv+E63R/bYsTz9tNLNaVfgaf623Z7DYTehQt9Fit3RxKn JZWioxBNhd5XA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Vinod Koul Cc: linux-phy@lists.infradead.org, Kishon Vijay Abraham I , pali@kernel.org, Miquel Raynal , Gregory CLEMENT , =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH phy v2 6/6] Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware" Date: Wed, 8 Dec 2021 03:40:38 +0100 Message-Id: <20211208024038.8797-7-kabel@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211208024038.8797-1-kabel@kernel.org> References: <20211208024038.8797-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211207_184057_685425_74ADF13E X-CRM114-Status: GOOD ( 10.86 ) 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 c5300d49807a..4a8452dd73e2 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; }