Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbdHVQkn (ORCPT ); Tue, 22 Aug 2017 12:40:43 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:38848 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751744AbdHVQkk (ORCPT ); Tue, 22 Aug 2017 12:40:40 -0400 Subject: Re: [PATCH v3 2/4] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated To: Corentin Labbe , robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org, peppe.cavallaro@st.com, alexandre.torgue@st.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org References: <20170818122118.4925-1-clabbe.montjoie@gmail.com> <20170818122118.4925-3-clabbe.montjoie@gmail.com> From: Florian Fainelli Message-ID: <2e7f8dec-2d7f-6e1a-a462-226dcd023724@gmail.com> Date: Tue, 22 Aug 2017 09:40:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170818122118.4925-3-clabbe.montjoie@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 725 Lines: 18 On 08/18/2017 05:21 AM, Corentin Labbe wrote: > The current way to find if the phy is internal is to compare DT phy-mode > and emac_variant/internal_phy. > But it will negate a possible future SoC where an external PHY use the > same phy mode than the internal one. > > This patch adds a new way to find if the PHY is internal, via > the phy-is-integrated property. > > Since the internal_phy variable does not need anymore to contain the xMII mode > used by the internal PHY, it is still used for knowing the presence of an > internal PHY, so it is modified to a boolean soc_has_internal_phy. > > Signed-off-by: Corentin Labbe Reviewed-by: Florian Fainelli -- Florian