From patchwork Wed Sep 2 14:43:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 11751091 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1823D109B for ; Wed, 2 Sep 2020 15:56:36 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E617220829 for ; Wed, 2 Sep 2020 15:56:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MTBwAcU4"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="tL0jebnX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E617220829 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=SxX1m7jaBIlcP6N9+KSiRTiaY0/SEkosceJdBEloH54=; b=MTBwAcU4d6Dkk4SwOw+PXz4o6k RP0BjvkfushVuDthVfUrMb1XNxxoY3BL9jEePsHcPsAodfGr8F2BiOrM5HLcamdOl+WguG+N/LZfd tHBe8Bbfvu8qn9+h9xxiWUOj9nH1YB3rJshFaWDxhE7TuYBuj61i63Kpf4mNHyLA/vW4U6rjMIyzT vCmYFnoTy4fh5SP5JFZcZnDvjQ4kws/iFynw9X73dHzfsSuO2vQh5fz3QEGwoaO1Xefqt5BZeYr+f laBCH0afVsZX42mAFQwMM2ncDuurJZ2QtX5COxmj1qCIEM2sSWMp7uFmf0sLP0EpfiPtOppY5Jd2f u7XMnLXw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDTzf-0000MX-UT; Wed, 02 Sep 2020 14:44:12 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDTzd-0000LW-2V for linux-arm-kernel@lists.infradead.org; Wed, 02 Sep 2020 14:44:09 +0000 Received: from pali.im (pali.im [31.31.79.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 54F7320767; Wed, 2 Sep 2020 14:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599057847; bh=PKHjUtAreXfWb++VphGeoWKV+TcuA+RY4EiaozG6fBk=; h=From:To:Cc:Subject:Date:From; b=tL0jebnX5Prxdd++Cm7XmzFmxmOr88Sg43klka4x49j57xFUpqR5AmDWbQh6VE6lf bPND0fKd3z38QErZUJkQBn+6HxsLtZj+dFbO5LBDEsLH7fjyIRf0cYnoTNvv2OZ8hG bTfUzk0ZPTALjYJvIeiC19QBRJVLUDYyKsxbTaGM= Received: by pali.im (Postfix) id E7D777BF; Wed, 2 Sep 2020 16:44:04 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Miquel Raynal , Kishon Vijay Abraham I , Vinod Koul , =?utf-8?q?Marek_Beh=C3=BAn?= , Tomasz Maciej Nowak Subject: [PATCH 0/2] PCI: aardvark: Fix comphy with old ATF Date: Wed, 2 Sep 2020 16:43:42 +0200 Message-Id: <20200902144344.16684-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200902_104409_186007_0164EA4B X-CRM114-Status: GOOD ( 11.52 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch series fixes regression introduced in commit 366697018c9a ("PCI: aardvark: Add PHY support") which caused aardvark driver initialization failure on EspressoBin board with factory version of Arm Trusted Firmware provided by Marvell. Second patch depends on the first patch, so please add appropriate Fixes/Cc:stable@ tags to have both patches correctly backported to stable kernels. I have tested both patches with Marvell ATF firmware ebin-17.10-uart.zip and with upstream ATF+uboot and aardvark was initialized successfully. Without this patch series on ebin-17.10-uart.zip aardvark initialization failed. Pali Rohár (2): phy: marvell: comphy: Convert internal SMCC firmware return codes to errno PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware drivers/pci/controller/pci-aardvark.c | 4 +++- drivers/phy/marvell/phy-mvebu-a3700-comphy.c | 14 +++++++++++--- drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 14 +++++++++++--- 3 files changed, 25 insertions(+), 7 deletions(-) Tested-by: Tomasz Maciej Nowak