From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: DSA support for Marvell 88e6065 switch Date: Thu, 15 Nov 2018 21:26:18 +0100 Message-ID: <20181115202618.GF32274@lunn.ch> References: <20181115195111.GA9946@amd> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, f.fainelli@gmail.com, buytenh@marvell.com, buytenh@wantstofly.org, nico@marvell.com To: Pavel Machek Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:36482 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbeKPGfk (ORCPT ); Fri, 16 Nov 2018 01:35:40 -0500 Content-Disposition: inline In-Reply-To: <20181115195111.GA9946@amd> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Nov 15, 2018 at 08:51:11PM +0100, Pavel Machek wrote: > Hi! > > I'm trying to create support for Marvell 88e6065 switch... and it > seems like drivers/net/dsa supports everything, but this model. > > Did someone work with this hardware before? Any idea if it would be > more suitable to support by existing 88e6060 code, or if 88e6xxx code > should serve as a base? Hi Pavel The 88e6xxx should be extended to support this. I think you will find a lot of the building blocks are already in the driver. Compare the various implementations of the functions in the mv88e6xxx_ops to what the datasheet says for the registers, and pick those that match. Andrew