Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752649AbdHRQ6v (ORCPT ); Fri, 18 Aug 2017 12:58:51 -0400 Received: from smtp.csie.ntu.edu.tw ([140.112.30.61]:57500 "EHLO smtp.csie.ntu.edu.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752605AbdHRQ6t (ORCPT ); Fri, 18 Aug 2017 12:58:49 -0400 MIME-Version: 1.0 In-Reply-To: <20170818122118.4925-3-clabbe.montjoie@gmail.com> References: <20170818122118.4925-1-clabbe.montjoie@gmail.com> <20170818122118.4925-3-clabbe.montjoie@gmail.com> From: Chen-Yu Tsai Date: Sat, 19 Aug 2017 00:58:25 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/4] net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated To: Corentin Labbe Cc: Rob Herring , Mark Rutland , Russell King , Maxime Ripard , Chen-Yu Tsai , Giuseppe Cavallaro , Alexandre Torgue , devicetree , linux-arm-kernel , linux-kernel , netdev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 733 Lines: 17 On Fri, Aug 18, 2017 at 8:21 PM, 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 Acked-by: Chen-Yu Tsai