Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4828162imm; Mon, 14 May 2018 13:57:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/LS/2+gB26EVIxLTJKPcE/8/NwB3BImD0yfXKfnlFX10VMR6H5dE10JzB7ZKJRdZ4rgLx X-Received: by 2002:a65:60d1:: with SMTP id r17-v6mr9869622pgv.410.1526331453103; Mon, 14 May 2018 13:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526331453; cv=none; d=google.com; s=arc-20160816; b=vcLbQgmRU/P2aiNPZYUqydTitlf6MTOwAwFxnTAS+++isN/pIssg32ecmA1d/rl2c2 dgD5bMHw6fjBCmerkvazzSExFzpgxkPCcI4MWzA4jtQUmnwz990S3d4I3gDSHdrpX8p0 mcqYMncPhRPtzQyixrFSvC9HJYErerAgoAZd1OD7XZKJxJbzR2IgzwmJ6sECi0t1w7Ho 3PBsetNCGk/YWG2q/iS0icDYpjNlWFEG7nZu+N9Pmx3pgfqsVqY1SQIemeeLC2DUZDGY 1+Rd/GY16RGpy+JEA50OcB+2wfYp92oEVdOc4xlu4PDm4VMh8Nn0B3sQOW2+swe+Zv2a 7Zow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=UfpBcHB+XAQqVff+HUnff6CFndQrPgVFhzw2W0N1uXY=; b=abThu6AaAcpQvTdmkM+EgJw5VJv77h7iToD7QbJ8Giex4W1c38pxjLxhPqFft2tDxI +Z2MRPBUhRiaUKgrAHrFCTjhgpYArzEK1yv6sbgJph+5DfizNG7XNiJLs2btVIjlt9zb OwqZTRKZFZIpzjGxjapdcyN97ppXXjnINxRQmEb+NT5Yw5U74qge4hDf9JUtLfTlIWhT xTG51ejNkhE+Mom8BFQrISkkljwmDEVJo8fpVq7mJc9Q8aovlDcoSY3fjKWB5LOy4hcX qcoFpIaLqIEN+ZkxueOpgnkK/5mobe2cQ5acXzUuUTkT99SckPOz/KCxKSo2Q8JATENI JC5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Lugwso0Z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4-v6si10683757pff.159.2018.05.14.13.57.18; Mon, 14 May 2018 13:57:33 -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=@lunn.ch header.s=20171124 header.b=Lugwso0Z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752151AbeENU5A (ORCPT + 99 others); Mon, 14 May 2018 16:57:00 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:58727 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751978AbeENU47 (ORCPT ); Mon, 14 May 2018 16:56:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=UfpBcHB+XAQqVff+HUnff6CFndQrPgVFhzw2W0N1uXY=; b=Lugwso0ZuO/nnqnoN7D+KcHCNAgZURivzQTy0T4uRpT/iEZ5M2N57PAwlOImle/U3t74kOA2ISWau1Wk05/xRa0bmuUK5iR/OvFDIZAfzDCvq6uDMtVKYAXSDzQQa9ttjZcae5+0hMLP0hmbQnmegKPLBdbXEnIzgm4lKvlXl5g=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fIKWb-0002En-F9; Mon, 14 May 2018 22:56:53 +0200 Date: Mon, 14 May 2018 22:56:53 +0200 From: Andrew Lunn To: Alexandre Belloni Cc: "David S . Miller" , Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: Re: [PATCH net-next v3 4/7] net: mscc: Add initial Ocelot switch support Message-ID: <20180514205653.GF1057@lunn.ch> References: <20180514200500.2953-1-alexandre.belloni@bootlin.com> <20180514200500.2953-5-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180514200500.2953-5-alexandre.belloni@bootlin.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 14, 2018 at 10:04:57PM +0200, Alexandre Belloni wrote: > Add a driver for Microsemi Ocelot Ethernet switch support. > > This makes two modules: > mscc_ocelot_common handles all the common features that doesn't depend on > how the switch is integrated in the SoC. Currently, it handles offloading > bridging to the hardware. ocelot_io.c handles register accesses. This is > unfortunately needed because the register layout is packed and then depends > on the number of ports available on the switch. The register definition > files are automatically generated. > > ocelot_board handles the switch integration on the SoC and on the board. > > Frame injection and extraction to/from the CPU port is currently done using > register accesses which is quite slow. DMA is possible but the port is not > able to absorb the whole switch bandwidth. > > Signed-off-by: Alexandre Belloni Hi Alexandre There are a few Christmas trees which are not fully reversed. DaveM might want them putting right. But otherwise i think this is good enough to be merged. Reviewed-by: Andrew Lunn Andrew