Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3876288imu; Tue, 18 Dec 2018 05:43:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/VEqZ5KUz4ecnOVWTGs1z1KOdBSjgBKk0eHcO2i5DSbXsJ4psxKLhdhjmzcE3fveEaYw0rZ X-Received: by 2002:a62:be0c:: with SMTP id l12mr5564682pff.51.1545140624074; Tue, 18 Dec 2018 05:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545140624; cv=none; d=google.com; s=arc-20160816; b=B6Wl0/j2kAb3yKUyCYPUMyBZaWi+w2zPWBAfGbkGptuqgKY0v4pjGGdyGIZLujCEIp CK2P6AM4Kuck1lyOYO1IWD41Uv8V6iIpGTLDVeFznW3N6rluvJOovh9l130cekUf6/tS 5n9CUjG+nmm6c22mUW3FjB6Cf+sClHkRAFyWb0UXUh7415Kl2CzxiCnZznJjx+vYynPX DKfIDN/BrfzrpBhKZm0+J7B5fzuywhn/gF+SM2qPXYS8fwuHom+UASsfo0dRLPkfD6gW vXGiJVoyMa5Ghv6FtJkszsItf3KGIbKj9kZOio0KFSIdn2TW1uPIgeBb/9WPhV0La4bK iGew== 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=5l9JNLBfANTdKkAK0FCBghVdZMsymO4Ix/a4NtPHXUU=; b=wFet/PnZct4I60hsCl1Y3z6HcYQB9f4gXa+gxvZXiV9GiiGcxUK+UV/+wqFjHBfKu+ UH79WcPfjp+lGVOHRy8Yd2PE9y4hv2wlqlcWx5tBJSIZ6TcN2wQIRcHCL4G1YoQ3N/G/ W1/Z6x2PQl4YK2FDJhsfiikwxNLRwIls4XTNe9IlEWL01BpjiDhdxzvT32a3Mh7TQjzE Vhbf0YXrooyEkaMif+Tqx7Ddx0xoJyvMW7EqqcAlI6X9r0xllWdTBU66SpQ2/o7w5yhs nIQgfu7OZuiAY0nq4vhR5/eVX6WZdEIDvuZu4MIKq/OfOpFWgcmRvYZRZzgLR9GrJIGS mBiw== 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 d12si11967341pln.340.2018.12.18.05.43.19; Tue, 18 Dec 2018 05:43:44 -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 S1726682AbeLRNle convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Dec 2018 08:41:34 -0500 Received: from mail.bootlin.com ([62.4.15.54]:58660 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726471AbeLRNle (ORCPT ); Tue, 18 Dec 2018 08:41:34 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 5EA1520834; Tue, 18 Dec 2018 14:41:31 +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-38-38.w90-88.abo.wanadoo.fr [90.88.157.38]) by mail.bootlin.com (Postfix) with ESMTPSA id ED7FB207D9; Tue, 18 Dec 2018 14:41:30 +0100 (CET) Date: Tue, 18 Dec 2018 14:41:30 +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: <20181218144130.3f1a75de@xps13> In-Reply-To: <20181218140920.6935db39@nic.cz> 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> <20181218092314.725af970@xps13> <20181218140920.6935db39@nic.cz> 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 Hi Marek, Marek Behun wrote on Tue, 18 Dec 2018 14:09:20 +0100: > > [2] > > https://github.com/ARM-software/arm-trusted-firmware/blob/master/drivers/marvell/comphy/phy-comphy-3700.c > > Yes, I used mainline atf (it did not work out of the box with 18.09 > atf-marvell of course). But there is no _power_off function for SGMII, > nor a digital_reset function like in cp110 implementation. Indeed, but why would you need one? Just use the helpers from the core and if there is no implementation, nothing should happen and the helper should exit without error. Just call phy_set_mode()/phy_power_on() an you should be good. Thanks, Miquèl