Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1133386pxa; Thu, 13 Aug 2020 01:05:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUb2RFOrV8ZAjuGjuEyvEta/Z/0MEXE8MRFKR2Z+cCDNAKJzdU1WymR53tuXbVvJERSn+5 X-Received: by 2002:a17:906:660b:: with SMTP id b11mr3760855ejp.509.1597305932238; Thu, 13 Aug 2020 01:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597305932; cv=none; d=google.com; s=arc-20160816; b=cXMkXFPvNGO48wXmXhdYIgHBH9v05NuxC2SN8vklmr8XzH529vAXX4XhYigu3iR3Q8 7jARgyK+B3TFj1eVI4uxqPBK7aJH2C5l/BxoZEp8d8MvASa4L7JJc4ts9bY4TOdPIafT GDGVUJ3+KMgscdbh7Bhp8NN2J8pjKljZXjGMmes8kS9f6rWFeAApTRy8EKHTeFNbYDYl POlMYuBdHUQ2ryjDfb/VpI1HetrpKmyAiOSpwDn39YN3f3SZIWzMhW+h8SLp4vsaPhW4 KTAW2hdl9aMP5MA+44SAkLdcDFY6lUFRn3Nl3iKxTUas8Aex5dJgDMIE2VfuoE3CMLEd x2Sw== 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; bh=xOO6MeTEA8MRtWkU2Z+NzWhEwftxTFMRNfGpcioRO4U=; b=lCK66afNbwovLrzPjpmyVpfY1ktrw6u6K7kbMlwL8zSxkKNSEL+Z/38wVpj+qmNvfF 8wgagvgh8L7Z+u2pM3fWehis/8QipAA7x2yOfMzq+EuwxguZh7drkhao1ezWdyUUNkPu zwIe+EVijXzlSP/nF5IILFPMn+gbAkz5ggtd5+jIedm0MYuUl6rsxD42cp0b0xWb8SnJ r1l9pBfxOwQNB85hbiL2cjN1UsF+3i0nQ6v7osXYqL0nMqD1cjffhU9h9u3j+9H4QGiG Qs+Xc02siMLNXew3KawmzZCVDWbw/cm/SS2NVAxRu79MePJTIcUKB4XSIjTpx6DF/dum PCEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=ir15jMqI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt1si4051208ejc.574.2020.08.13.01.05.09; Thu, 13 Aug 2020 01:05:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=ir15jMqI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726600AbgHMIDd (ORCPT + 99 others); Thu, 13 Aug 2020 04:03:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbgHMIDb (ORCPT ); Thu, 13 Aug 2020 04:03:31 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F04BC061757; Thu, 13 Aug 2020 01:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xOO6MeTEA8MRtWkU2Z+NzWhEwftxTFMRNfGpcioRO4U=; b=ir15jMqI2TJ0H4SsnZEaUzcoNK nNHh7eotC4pq6h36/qGt6qP7hzdsVSf7jTrvkN//0zSmxnZqzqbOw7mJvhcHWZXPzUXgpDXp3M0BL LZPBOLehRUzKThdYYz+/e3WUMdzKfhQSXuvjhBujhVXm8IloqgiNZWGMrVbQfcLr6D5DF4CH0dvIR LkpFjpxMxXXt1qcu46CJyKfvOiFWwMsU3cVC2GqEp4+I8nFUr8EKintbtMK6zPAmYzlwkL1RdQiQa nYaiJQGXWJ6NgGcEdgoNUTYLA9VesawXx+R/XHS7UrsqSskNyO37Kh9VqRlvBtGRNbOFLFylsFgwP zhjBEfBQ==; Received: from noodles by the.earth.li with local (Exim 4.92) (envelope-from ) id 1k68Co-0002GT-At; Thu, 13 Aug 2020 09:03:22 +0100 Date: Thu, 13 Aug 2020 09:03:22 +0100 From: Jonathan McDowell To: Vadym Kochan Cc: "David S. Miller" , Jakub Kicinski , Jiri Pirko , Ido Schimmel , Andrew Lunn , Oleksandr Mazur , Serhiy Boiko , Serhiy Pshyk , Volodymyr Mytnyk , Taras Chornyi , Andrii Savka , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Mickey Rachamim Subject: Re: [net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices Message-ID: <20200813080322.GH21409@earth.li> References: <20200727122242.32337-1-vadym.kochan@plvision.eu> <20200727122242.32337-2-vadym.kochan@plvision.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200727122242.32337-2-vadym.kochan@plvision.eu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 27, 2020 at 03:22:37PM +0300, Vadym Kochan wrote: > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely > wireless SMB deployment. > > The current implementation supports only boards designed for the Marvell > Switchdev solution and requires special firmware. > > The core Prestera switching logic is implemented in prestera_main.c, > there is an intermediate hw layer between core logic and firmware. It is > implemented in prestera_hw.c, the purpose of it is to encapsulate hw > related logic, in future there is a plan to support more devices with > different HW related configurations. The Prestera range covers a lot of different silicon. 98DX326x appears to be AlleyCat3; does this driver definitely support all previous revisions too? I've started looking at some 98DX4122 (BobCat+) hardware and while some of the register mappings seem to match up it looks like the DSA tagging has some extra information at least. Worth making it clear exactly what this driver is expected to support, and possibly fix up the naming/device tree compatibles as a result. J. -- ... Nice world. Let's make it weirder.