From patchwork Thu Oct 28 18:42:36 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: 12590883 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CA0FC433F5 for ; Thu, 28 Oct 2021 18:42:54 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1019A61040 for ; Thu, 28 Oct 2021 18:42:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1019A61040 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=XQynAv/n/IbsV2gYnXa4NE7eD1pgh2s8MGgQHdl+MgE=; b=Iu7Kti0lhgmxxM nh6hz2JMyrrcQyHxihJJnH+wL1J9S2U9rnh5Z3X3WyLBIom3SOlB+v4f8Re4vTRp4EuaqFxfOz3+3 IQhT/fZoC12RERzdQGgtstULaFLgwFGz2VsKN4PWRah4gcE1iu3YjaGzYHfxZZRjB80mbVK0URKCV PZDO7bMOKD/qdMmdEznFjoz1qYlLOFMUJ86YR/6+RLgE0zQdVKc3esFo0kJxAQsnEJZpHKcbB1exa kh3YAmAbcjD1D43upUGS6r19BGUxOtUQltIPIY+WRQ3sd6kZQsK+I8F84v/gFnPZ5Ui80wPQjmbUL gdezaGSUPcokLIzley4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgAMX-008v2R-Ax; Thu, 28 Oct 2021 18:42:53 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgAMS-008v0H-JR for linux-phy@lists.infradead.org; Thu, 28 Oct 2021 18:42:51 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7616B60D43; Thu, 28 Oct 2021 18:42:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635446567; bh=9BpUYoDt6XpRp7WadMUzCoWbzq4ISwpHZ3KtZ5ETCt4=; h=From:To:Cc:Subject:Date:From; b=i47Cb/kyI9y5Y0mGrsQdpRuieZyfnpY2Ci3A9BUru30lu4rHGDYbQLUsEM87Pe+x1 M+udeojrJzP7NmtLH3QQGw0dNbm/E8w4Oh7l6VHV/0EuLxWmOJQtsbLJX9BgXYBzOx 0STrXo42t6yDJIT/dKybkG2rC/G71wbVFPD/vetmZHkPt+xgUTQ1T7ifO+HAuP3eN9 OsnoneMP4GbRqL9dYx43VR2SrQwj+69ZJgQIQzNKVsve7GMg5S1AH2NX55BTVY2Biv 2l/q6vGC8EFr9lKN7O7/hcFivo3l6rbELT3cuRfrxUQ5giziiC5epG81b5NgoNydnU ycap5UeHkZk/w== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Miquel Raynal Cc: linux-phy@lists.infradead.org, Vinod Koul , Kishon Vijay Abraham I , pali@kernel.org, =?utf-8?q?Marek_Be?= =?utf-8?q?h=C3=BAn?= Subject: [PATCH phy 0/6] Armada 3720 comphy native implementation Date: Thu, 28 Oct 2021 20:42:36 +0200 Message-Id: <20211028184242.22105-1-kabel@kernel.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211028_114248_693209_0A633C6A X-CRM114-Status: UNSURE ( 6.62 ) X-CRM114-Notice: Please train this message. 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 Hello Miquel, the RPC calling to ARM Trusted Firmware implementation of Armada 3720 comphy driver caused quite a number of issues (explained more in patch 2). This series fixes those issues by reimplementing the driver to native kernel implementation. The last 3 commits revert commits in AHCI, USB, and PCI drivers, that were introduced there because of those issues. Tested on Turris MOX. Marek & Pali Pali Rohár (6): phy: marvell: phy-mvebu-a3700-comphy: Remove port from driver configuration phy: marvell: phy-mvebu-a3700-comphy: Add native kernel implementation arm64: dts: marvell: armada-37xx: Add xtal clock to comphy node Revert "ata: ahci: mvebu: Make SATA PHY optional for Armada 3720" Revert "usb: host: xhci: mvebu: make USB 3.0 PHY optional for Armada 3720" Revert "PCI: aardvark: Fix initialization with old Marvell's Arm Trusted Firmware" arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 2 + drivers/ata/ahci.h | 2 - drivers/ata/ahci_mvebu.c | 2 +- drivers/ata/libahci_platform.c | 2 +- drivers/pci/controller/pci-aardvark.c | 4 +- drivers/phy/marvell/phy-mvebu-a3700-comphy.c | 1314 ++++++++++++++++-- drivers/usb/host/xhci-mvebu.c | 42 - drivers/usb/host/xhci-mvebu.h | 6 - drivers/usb/host/xhci-plat.c | 20 +- drivers/usb/host/xhci-plat.h | 1 - 10 files changed, 1192 insertions(+), 203 deletions(-)