From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753817AbbDUReh (ORCPT ); Tue, 21 Apr 2015 13:34:37 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:48514 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944AbbDURef (ORCPT ); Tue, 21 Apr 2015 13:34:35 -0400 Date: Tue, 21 Apr 2015 19:30:12 +0200 From: Andrew Lunn To: Florian Fainelli Cc: Jan Kaisrlik , sojkam1@fel.cvut.cz, tkonecny@retia.cz, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kaisrlik Subject: Re: [RFC PATCH 0/3] Enable connecting DSA-based switch to the USB RMII interface. Message-ID: <20150421173012.GK32294@lunn.ch> References: <1429622791-7195-1-git-send-email-kaisrja1@fel.cvut.cz> <20150421124737.GD32294@lunn.ch> <55368667.5030105@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55368667.5030105@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > My goal in reworking this weird DSA device/driver model is that you > could just register your switch devices as an enhanced > phy_driver/spi_driver/pci_driver etc..., such that libphy-ready drivers > could just take advantage of that when they scan/detect their MDIO buses > and find a switch. We are not quite there yet, but some help could be > welcome, here are the WIP patches (tested with platform_driver only so far): We are hijacking another thread, but... I don't understand you here. Who calls dsa_switch_register()? I know of a board coming soon which has three switch chips on it. There is one MDIO device in the Soc, but there is an external MDIO multiplexor controlled via gpio lines, such that each switch has its own MDIO bus. The DT binding does not support this currently, but the underlying data structures do. How do you envisage dsa_switch_register() to work in such a setup? Thanks Andrew