From patchwork Mon Jan 3 14:32:20 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: 12702557 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 A93DCC4332F for ; Mon, 3 Jan 2022 14:32:39 +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=hkRDoh2mJsIBBbhrLJ654UcLX2SUX403/r0xFGn/JGA=; b=YUgxYyHd9Cpd/p 7pEMnVhfDTP/K1ZrFCMcu0Cwx8doeMR/Nff/beeA5e1+t8sjY9fwfV5pi+7CmHF08N7T135yX0csb sgVSO/ckZkFgcQQBfUl0XqyBhfQK9ibXSrf3yuKOQmsDRfyeZammmcCtxKs1pU7XbtWv/baLlqpt8 gABJD0nxZgoXaPLOr8wAiE2+QUKJV2G3BtLvOA81tvauYumQPItLK+gBOVAltwuXIx/jGQWl1ZEoy BRqMznByHFLUkVr5AOkAi4Zlw5TTzx61qPda9jAfJCf0LRWtZQywdiUr5e95l7y+FVbcGhFfMEFza ecKt+i+ab5T/Ox/bvFrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4OO7-009CP6-2n; Mon, 03 Jan 2022 14:32:39 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4OO4-009CO6-Pi for linux-phy@lists.infradead.org; Mon, 03 Jan 2022 14:32:38 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 54F526113A; Mon, 3 Jan 2022 14:32:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A09C6C36AED; Mon, 3 Jan 2022 14:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641220356; bh=c8/AwhHCvUapCITvr7UjO+PcgfZQDF66eZu1Hl7lDj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BGrzl6pffQ4uZRUutTmQbjaNiDo9nP6d0ng6g7YwHcC6w1hq2daZvVbLssT+hOvFY aLK6tYVDRjTruZCE5PUBLxMTNUInzR5NdurBANc4b7Mu7zieB3qfD0T+EsJX3MtoiQ wN9qqVj+6oJHF3gB9S9TDe/HlKy+p9LyVfgQFnRRpCfAIYRpMetXULlcLWy1SjnoRx nUdtrRJ4fQt9SJQ/nFHG8QTSrsbS56ziXXuKTRyd36KpVMyAv2Ac6B9PL0IzndwFCU nbAudGrXMTUGf8gpHVm7AqCq1f6YPlDZCDJ1Q9x2/SNyLPvvNq/22RrnP+IZtbud+m Eux20/U8a01Xg== 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 v3 5/5] Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware" Date: Mon, 3 Jan 2022 15:32:20 +0100 Message-Id: <20220103143220.13070-6-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220103143220.13070-1-kabel@kernel.org> References: <20220103143220.13070-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220103_063236_894743_15EE4954 X-CRM114-Status: GOOD ( 11.21 ) 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 c3b725afa11f..e3794abe78b0 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -1473,9 +1473,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; }