Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S943513AbcJaOXf (ORCPT ); Mon, 31 Oct 2016 10:23:35 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36900 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S943475AbcJaOXd (ORCPT ); Mon, 31 Oct 2016 10:23:33 -0400 Subject: Re: [RFC PATCH 08/13] dwmac-meson8b: add support for phy selection To: Andrew Lunn References: <1477060838-14164-1-git-send-email-narmstrong@baylibre.com> <1477060838-14164-9-git-send-email-narmstrong@baylibre.com> <20161021155408.GR16974@lunn.ch> <20161021160807.GT16974@lunn.ch> Cc: khilman@baylibre.com, carlo@caione.org, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org From: Neil Armstrong Organization: Baylibre Message-ID: Date: Mon, 31 Oct 2016 15:23:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161021160807.GT16974@lunn.ch> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 595 Lines: 21 On 10/21/2016 06:08 PM, Andrew Lunn wrote: > Hi Neil > >> Yes this would be a good idea if we were able to scan the internal >> and external PHYs at the same time, but with our limited knowledge >> the values we write in the register seems to switch a mux for the >> whole RMII and MDIO signals to either interface. > > Ah, O.K. So you need something like: > > drivers/net/phy/mdio-mux-mmioreg.c > > This seems to be limited to a single byte for the mux register, so you > might need to make some extensions. > > Andrew > Thanks for the hint, I will try to make use of this ! Neil