Received: by 10.213.65.68 with SMTP id h4csp730086imn; Fri, 23 Mar 2018 14:46:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELvdg8tfUemGSb8eGjPPM/KSxshyWGbwOnbI8osnDof/tTz2ga40Xw3LAEDtCD24dJ1zGRiq X-Received: by 10.98.95.70 with SMTP id t67mr19395410pfb.200.1521841585824; Fri, 23 Mar 2018 14:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521841585; cv=none; d=google.com; s=arc-20160816; b=osz8P/n7pZ6rDtD2k+PxQ8gY6iW9g0GVmvp6DGkseJ03HJ6VHSVsiSaEYNNJWA8tM5 QPujTowgeqvFEk7kv/BlSYF/OBd6xSTSahYo7AMHIxfu7BHGwbOFb0PZ3tmXBkAV6vW7 m953o+6NKJGcdFzd/nS2mllkDCHA3V5fnY7w/TePW1YSNKlPQGVMqM35R9MyU/uzJaEq ZIKKumnED/j1QRf37zmRPGgYWTBE0TuCBmHe95FNpc03S49Erjn6zwCEDv4q8zfiBaFV ynwtqtUz8wcxEKEFE4QMmHoeXSJNTRUwaKg97TUxarrflvLDR0cbdmqW+ElimLYaGyBx oB9Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=ysm1iQAK5/a3Ub6Di9aFk/yDRb2QyOnxd7YadyH62g0=; b=kJCXWRwkjCBVUPdrxZs6VSaiJrq2hjl90Jg7rVFysupD4j6WcnPM+Wb8CTnsGvvKQ7 mI66BIaPabboKh3CQUrOTWXOP7pGByE05M15nB11eKuYMwJohL9IPHlFMBc2Q6NcJPo1 G1EO55GH1Y6YaFAgLDsmlqwyrDF6Va2k3TtjAjbz35kG4DC8wIpiizCg92zkCuUgR143 iTFrAR1ndwevW4Tdr8omwNSwy43xiPKqJCO/qJoavZqlNEI+2bOUlaWX9C2CPk6uuF14 4KIVJXpZKlaePgH09tgvl7wrFzc/YxTgERVa0048Dj5q8N7rycT03GIPLv6twhonuTEp a4vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kVPQVE7p; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w130si7303205pfd.280.2018.03.23.14.46.11; Fri, 23 Mar 2018 14:46:25 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=kVPQVE7p; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752303AbeCWVpH (ORCPT + 99 others); Fri, 23 Mar 2018 17:45:07 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33908 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751504AbeCWVpF (ORCPT ); Fri, 23 Mar 2018 17:45:05 -0400 Received: by mail-pg0-f65.google.com with SMTP id m15so5076006pgc.1; Fri, 23 Mar 2018 14:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ysm1iQAK5/a3Ub6Di9aFk/yDRb2QyOnxd7YadyH62g0=; b=kVPQVE7p25yBdvm+pnLzqvPQMyHCVUbxZw+3KFy7s/tDHrBxCkeWA34hNes1ipl7G6 ipkQA7V6xp9ej+MgBYTHejPAk9TgXlUEnczS+IDRhax9o923bK2fA1A4c0l/HlMWqbNR iduLdQ3eEeW0V48sNScpJbcSpTlXbuqwod7/VaxANRx+BDtXUwDyWnkvgUTe7eVO5gFI dylvwxClGes3dpKkHxApRBoQE8X2MW1dr5BBf1EST0HXsvSVBEQwHNq2+A+VlCNH1+Ts gTiFj17VVYvyJQ6SKtp1qbb9O4zq+DRiJ8cxzWf6iL8V1DSrdIxiyCKx2RFmc/J1suMm OwXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ysm1iQAK5/a3Ub6Di9aFk/yDRb2QyOnxd7YadyH62g0=; b=Sx2bmE/1I+3RSYKrLta5Ef4hca4YGA13mOmjAXxZA1TluwLjiUZ1G2CprkUypl366p tXZi6JNZN1lfzNt4djlkfwDF/lzmYXPuAM1l9cqhJqL2nYKh0rIUphz4bNPFrJ1aDufl tOWobc4AKKIS5QqcOarZXAH+W7lhaFS2R0EKLXLyHhOTfk78ZXd9qwirNbEPmXZGF+m2 mm0coOfs+9zZqKJ/O+MttfucMgeSFq9Asq4wWd7wZN9hbGwEu7fsv50ovTThsnFS/vmH 7BUq86m+6GAcS9a4GWesCaCaznlyqU7wGXxAka8qrw243jelQPmpJWMe6WvFXIk25E9I BmuA== X-Gm-Message-State: AElRT7FucXVq9EBoUwh8GJt+rlPbLkR2S61mmqz9VnUSbWO1vM0X5lB9 mGyOUqxwqHFJdbCpGacaA3o= X-Received: by 10.99.110.5 with SMTP id j5mr13508116pgc.246.1521841504481; Fri, 23 Mar 2018 14:45:04 -0700 (PDT) Received: from [10.69.41.93] ([192.19.223.250]) by smtp.googlemail.com with ESMTPSA id p12sm17465968pgn.91.2018.03.23.14.44.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 14:45:03 -0700 (PDT) Subject: Re: [PATCH net-next 6/8] MIPS: mscc: Add switch to ocelot To: Andrew Lunn , Alexandre Belloni Cc: "David S . Miller" , Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, James Hogan References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> <20180323201117.8416-7-alexandre.belloni@bootlin.com> <20180323212230.GA12808@piout.net> <20180323213344.GV24361@lunn.ch> From: Florian Fainelli Message-ID: Date: Fri, 23 Mar 2018 14:44:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180323213344.GV24361@lunn.ch> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/23/2018 02:33 PM, Andrew Lunn wrote: > On Fri, Mar 23, 2018 at 10:22:30PM +0100, Alexandre Belloni wrote: >> On 23/03/2018 at 14:17:48 -0700, Florian Fainelli wrote: >>> On 03/23/2018 01:11 PM, Alexandre Belloni wrote: >>>> + >>>> + phy0: ethernet-phy@0 { >>>> + reg = <0>; >>>> + }; >>>> + phy1: ethernet-phy@1 { >>>> + reg = <1>; >>>> + }; >>>> + phy2: ethernet-phy@2 { >>>> + reg = <2>; >>>> + }; >>>> + phy3: ethernet-phy@3 { >>>> + reg = <3>; >>>> + }; >>> >>> These PHYs should be defined at the board DTS level. >> >> Those are internal PHYs, present on the SoC, I doubt anyone will have >> anything different while using the same SoC. > > With DSA, there is no need to list internal PHYs. > > That is the trade off of having a standalone MDIO bus driver. Maybe > add a phandle to the internal MDIO bus? The switch driver could then > follow the phandle, and direct connect the internal PHYs? This is more or less what patch 7 does, right? -- Florian