Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3113320imu; Mon, 17 Dec 2018 13:35:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/U38Dth5vMmtDRfg4A8Ct3/LQB92KGuhOpGPhu0Bk9hMP8uhsHEgJMHOHiFuWT3C/uQvHoQ X-Received: by 2002:a62:31c1:: with SMTP id x184mr14712032pfx.204.1545082543019; Mon, 17 Dec 2018 13:35:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545082542; cv=none; d=google.com; s=arc-20160816; b=f7/KitPXPWbFbvZG6nsYJkpZwNaT2uebK9RqKuA4giDCYY6ZEqNhtg/gpEbolAGWgt t5ZKz7nrguTxX/Nfz073vQUSctJgnLPXdabfZIbFtn0ciw6Ln3vkTD5Oq241ACieoCXM hnooMUWHt8kymlbN6hOlTByENVCU9C4Bj6WtfJqi1J3IkBKFNHqjoCtm2lKLL6nEcVi5 Y9pEmkNOpnDp8o14HuVZ5z+9MEsfYwy75/3+K0Za8XscVMXo94ea9x/u5SxnRs0aAF6i SD4kN4tLnlSEx3sG6oGjxH7cyucivYkPzPSUjwiMy6vom0owqL5kCGgXXKs9KblLjbOg A+yw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=s4Be7UOXy0FwQjuuODIZFUPoG+fC1br3ReUNZR7BY2g=; b=kGdLUanvJwHYbAU4cSEY31J6BFNJiagcmkpNtnx1+EURSpoPyRGDSG2MIu+TrXO62v pajgAiRXlT9fJaWPXeloYAfx4z33WlLVm4U6D6Kd3K2JJNTiadoBYm1DXfgnv+GfKHMC 8ZRMrMiRbFhS0DcvegOTxYW8yYwLH9VBOVSeXWPu8B/VB/YuoKMXgVYDa2S7nCxnFZ8u 2qElJveO7EtbO2FMZVDE4hC+jAyvXNyirAjG9LGSbOCjCUTYC4NERSkbHNQhk6ggmLd8 hw0iyPOCv77fRLEGh4LkH9H1/VjOoLpgGdk4HWzKbJSkrveTOPwlylhBUmHA4I+vJYhi +JyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=Kk1vkqh9; 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 r17si11522308pls.380.2018.12.17.13.35.27; Mon, 17 Dec 2018 13:35:42 -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; dkim=pass header.i=@nic.cz header.s=default header.b=Kk1vkqh9; 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 S1732489AbeLQVeh (ORCPT + 99 others); Mon, 17 Dec 2018 16:34:37 -0500 Received: from mail.nic.cz ([217.31.204.67]:59894 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726955AbeLQVeg (ORCPT ); Mon, 17 Dec 2018 16:34:36 -0500 Received: from localhost (unknown [172.20.6.233]) by mail.nic.cz (Postfix) with ESMTPS id CEE55601FB; Mon, 17 Dec 2018 22:34:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1545082473; bh=8d7f2T8gmoGdbmbuVrMD+gAx0cbRgRHlQgbYUy0eDeg=; h=Date:From:To; b=Kk1vkqh9c7p2YKhLb/jMnRyee7n1OBuyEsOAtLaPjb5MTL907NUo7Qgf9dYWcF/dY +uz30UiTJ9Rs4WzKSuSlURbTylK8KcSS6VsbTsVjz3mUtTuvvTT3ky50sNwRAmvRDh ZW7GXyq19o8YLUiXTyVnnjJ0jQmpJOwYZvJA8yLg= Date: Mon, 17 Dec 2018 22:34:30 +0100 From: Marek Behun To: Miquel Raynal 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: <20181217223430.182d01d8@nic.cz> In-Reply-To: <20181217170724.58421a29@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> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: clamav-milter 0.99.2 at mail X-Virus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miquel, I tried the patches and they are working, with the exception of Compex WLE900X card, but we know that this card is problematic. 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? Thanks, Marek On Mon, 17 Dec 2018 17:07:24 +0100 Miquel Raynal wrote: > Hi Marek, >=20 > Marek Behun wrote on Fri, 14 Dec 2018 01:57:12 > +0100: >=20 > > On Fri, 14 Dec 2018 01:47:01 +0100 > > Marek Behun wrote: > > =20 > > > Hi Miquel, > > > are there already patches for the A37xx comphy driver? =20 >=20 > Please try the latest patches on top of phy -next (with PHY interface > mode), available there [1]. You can pick only the COMPHY patches, but > keep them over the phy -next branch. >=20 > Please note that for the SMC calls to succeed you must use a recent > ATF. Personally I used to work with the 'atf-v1.5-devel' branch of > Marvell's misl-atf repository but it is not available anymore. If you > already have a clone, then you are good to go, otherwise it might be > great if someone from Marvell could share a public Github link? >=20 > > Never mind, I found them. I shall test this on Turris Mox. > > Is the comphy driver supposed to be able to change eth mode from > > 1000BASE-X to 2500BASE-X and back without reboot? =20 >=20 > In theory yes, unfortunately I am working on an EspressoBin which uses > the SATA, PCIe and SATA configurations of the COMPHY, but not the > Ethernet ones (SGMII/1000BASE-X and HS_SGMII/2500BASE-X). So the > support is ready to be tested! >=20 > >=20 > > This would be cool for our SFP cage module of Turris Mox, just to > > add support for comphy into mvneta. > >=20 > > Marek =20 >=20 > [1] https://github.com/miquelraynal/linux.git branch > marvell/phy-next/pm >=20 >=20 > Thanks, > Miqu=C3=A8l