Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3583409imu; Tue, 18 Dec 2018 00:24:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/XetDhn5dUzJSJWmUl+MIgDCSG+dCW+g6Dx2ju2Cri9fTqPCjr/YPQ6FKUsW8H1eqTvU3Sx X-Received: by 2002:a63:8ac4:: with SMTP id y187mr14984957pgd.446.1545121481909; Tue, 18 Dec 2018 00:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545121481; cv=none; d=google.com; s=arc-20160816; b=cTxrH5v2OW8mc1Vom/7UUSzI7adc2i3YGx6fp9aT9TVTRspYuRr4UBUwn+pq/RIqXE CgfEhmDeTFfCoI6RCDLqlU60TxnUlBON+KwTQg4DejAWfKTgg24JrV8G2i6v/h5Z1kuW bSeSfvGqAaPNzEX5aoqDexCZiXCPR9zjahTbcBJ96rGJEvf5K1cLPeNx18aPdvfB5ik2 bQt2pMW7ZMAhA58Ml+EqyGM3/BpvdMEugKLDrUk092LqazyDJ7z9oNHmbe1oWs/Px0o8 MRVpU7ezoHIO6eJwiQK6QcljG4lmpHB6Gcg13zeC4KpVEKlGFRjCWaYhPfo3EXN+vWjb TE0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=z00STyPVD7uSoZN15Um++K7PalTA6BqgWg93DmQLvW4=; b=duQMaHjWg+k9rOz+rSx7+tSfIQYCD4slioVW6rKxP2VjaJ8jAZV2E0kijDuF1fv2Oi 6fT2/eKIPtNE1xuSbaZxsD17uzJHxCIGDJFTC9Pmv3ipsonhDNRl/YBkyx2LkWQXU7Q5 IlfUbQ1OfMQKg2xKGyZvCiKRSUOPNqHihVdi8yh8KznStMi4FSFt2ECMIfKdVdNGtz4Z Lt1hI1oDVGSmL4H0OpQxX5IqYJ+2kIBjP8lY/YGu5XiH4SWkBRDv7NT5CrIjV9JPyrFX QvEFN4QrAx/iEYDL/5d+a+igPacoI5r+G2Vy9j359KkZzikjqZkg27s5gy66rXCK3c25 +H0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si13035420pgl.385.2018.12.18.00.24.26; Tue, 18 Dec 2018 00:24:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbeLRIX2 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Dec 2018 03:23:28 -0500 Received: from mail.bootlin.com ([62.4.15.54]:48602 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbeLRIX2 (ORCPT ); Tue, 18 Dec 2018 03:23:28 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 0E52A20824; Tue, 18 Dec 2018 09:23:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from xps13 (aaubervilliers-681-1-89-7.w90-88.abo.wanadoo.fr [90.88.30.7]) by mail.bootlin.com (Postfix) with ESMTPSA id 8F8AF206A7; Tue, 18 Dec 2018 09:23:14 +0100 (CET) Date: Tue, 18 Dec 2018 09:23:14 +0100 From: Miquel Raynal To: Marek Behun Cc: Nadav Haklai , Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Thomas Petazzoni , Bjorn Helgaas , , Rob Herring , Mark Rutland , Lorenzo Pieralisi , linux-pci@vger.kernel.org, , , Antoine Tenart , Maxime Chevallier Subject: Re: [PATCH v2 03/12] PCI: aardvark: Add PHY support Message-ID: <20181218092314.725af970@xps13> In-Reply-To: <20181218091817.4a8a5d42@xps13> References: <20181212102142.16053-1-miquel.raynal@bootlin.com> <20181212102142.16053-4-miquel.raynal@bootlin.com> <20181214014701.373b220b@nic.cz> <20181214015712.31f749ea@nic.cz> <20181217170724.58421a29@xps13> <20181217223430.182d01d8@nic.cz> <20181218091817.4a8a5d42@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Miquel Raynal wrote on Tue, 18 Dec 2018 09:18:17 +0100: > Hi Marek, > > Marek Behun wrote on Mon, 17 Dec 2018 22:34:30 > +0100: > > > Miquel, > > > > I tried the patches and they are working, with the exception of Compex > > WLE900X card, but we know that this card is problematic. > > How did you test them? I am surprised that COMPHY calls worked for you > out of the box. I am not sure you have A3700 COMPHY support in your ATF > but it probably work because U-Boot is doing the initial configuration. Let me correct myself: actually the feature is already mainline! See [2]. It will be added to Marvell's BSP by the end of the year. So if you are running a recent mainline ATF you are good to go! > > > I am interesting if there is a known way to turn of the comphy on > > A3720, or at least change the SGMII mode from 1Gbps to 2.5Gbps and > > back. Marvell documentation does not provide this information and the > > code in ATF providing the SMC calls does not do this either. > > Do you know how this can be achieved? > > The driver already handles these calls (see [1]), making use of > them is just a matter of hacking into drivers (in your case, I > suppose it is mvneta) and add phy_set_mode()/phy_power_on() calls. > > [1] https://github.com/miquelraynal/linux/blob/marvell/phy-next/pm/drivers/phy/marvell/phy-mvebu-a3700-comphy.c#L189 > > > Thanks, > Miquèl [2] https://github.com/ARM-software/arm-trusted-firmware/blob/master/drivers/marvell/comphy/phy-comphy-3700.c Thanks, Miquèl