Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6491122yba; Wed, 1 May 2019 13:25:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7IreDcSuDKc9rARMLal4upYVHKWMw267ayOqm0sxC5UqZEmEk3idjDH9DFI7U9WWYapd0 X-Received: by 2002:a63:4b20:: with SMTP id y32mr4909pga.244.1556742337919; Wed, 01 May 2019 13:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556742337; cv=none; d=google.com; s=arc-20160816; b=kZ9UD/bVcegnYi4sk06nUd9XWgUp0MB1vhCDlmjbSdPokrjtMHAFAYcntci3etehb3 2FlrSlXADdB81WwsmRFrskeSSTlJZzTqnw3fm9zak24wXwfWhexTFrsipsWNf417W/59 5aUgwzj6qHwgoVJ3AxKHSw5x27bgWv97i60jU7rSw65r4vhdjwNSAvnHreU+4GzQcESu hXGC2MVrAl/HK8YEap2BMuoCs9Fr1mJsBOPcAVyPe8PB6nUCVCi4nXTSaEed6YkR4DrN eJVnMty7BW+c7EXddLO3B3YrzA1+CYDOJoNEAKw/Liqz8c4LBirCiajdh2rlAZEYFje4 DMnw== 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=qv3nzSNeLpbWrzH4SE4vhOD1NlSAiKmEircDdM74DhU=; b=mRmgLWea50BKakvl97qtz7FiL4/XdHNd+yzHMm4Jt60VuCX5PTMnPL7Fe+oIhyvdo3 MHsSjqZQID4K4ub3O6J4evLzIF+lxlvGfNbVwxGGU+YHqLh0LMtK8vUPBBvMcmAWn4an JZDtXQNQymi/b2OiwiGxODccxkQS8TNMmIlfkeL97OLEGbOM8pciJ7KyJjlYWME702bK DcFmRrvVgZI9slt7RIQ+Y/JLrCpZ4NK/BZCuUkKmgy4s8AXAiBPhTyGgU0EyLjUkcu+B QOS9BSTY4oH5ghVu6a6BypKzY46KzFxIb8cEH5KLhOYvaD9bHWoPLraoddpMPakZGZiV fwlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=U4OGHwg8; 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 cj4si18774638plb.66.2019.05.01.13.25.22; Wed, 01 May 2019 13:25:37 -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=fail header.i=@lunn.ch header.s=20171124 header.b=U4OGHwg8; 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 S1726276AbfEAUXE (ORCPT + 99 others); Wed, 1 May 2019 16:23:04 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:51479 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbfEAUXD (ORCPT ); Wed, 1 May 2019 16:23:03 -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: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=qv3nzSNeLpbWrzH4SE4vhOD1NlSAiKmEircDdM74DhU=; b=U4OGHwg8R+r5f4UXcfFFKEbGAq ng7R+hJ7efk7TZKXl8mgnBWXXGAWMEzaTm5nQg8WwI6pKXWkNx8c4kOnShLBWluSd3E7d4jG0T17t Py55U3K3piYJREyu9uyJ0oCO7zqf2ZeRFPbaaRff+NNl38HqTTSk77I8fGLlQu+RuCtg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hLvkp-0008CT-Sj; Wed, 01 May 2019 22:22:59 +0200 Date: Wed, 1 May 2019 22:22:59 +0200 From: Andrew Lunn To: Rasmus Villemoes Cc: Vivien Didelot , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "David S. Miller" , Florian Fainelli , Rasmus Villemoes Subject: Re: [RFC PATCH 3/5] net: dsa: prepare mv88e6xxx_g1_atu_op() for the mv88e6250 Message-ID: <20190501202259.GD19809@lunn.ch> References: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> <20190501193126.19196-4-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190501193126.19196-4-rasmus.villemoes@prevas.dk> 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 Wed, May 01, 2019 at 07:32:12PM +0000, Rasmus Villemoes wrote: > All the currently supported chips have .num_databases either 256 or > 4096, so this patch does not change behaviour for any of those. The > mv88e6250, however, has .num_databases == 64, and it does not put the > upper two bits in ATU control 13:12, but rather in ATU Operation > 9:8. So change the logic to prepare for supporting mv88e6250. > > Signed-off-by: Rasmus Villemoes Reviewed-by: Andrew Lunn Andrew