From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751845AbcGSS6f (ORCPT ); Tue, 19 Jul 2016 14:58:35 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:45809 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbcGSS6e (ORCPT ); Tue, 19 Jul 2016 14:58:34 -0400 Date: Tue, 19 Jul 2016 20:58:31 +0200 From: Andrew Lunn To: Vivien Didelot Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli Subject: Re: [PATCH net-next v3 11/12] net: dsa: mv88e6xxx: add G1 helper for ageing time Message-ID: <20160719185831.GI31103@lunn.ch> References: <20160719004540.1066-1-vivien.didelot@savoirfairelinux.com> <20160719004540.1066-12-vivien.didelot@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160719004540.1066-12-vivien.didelot@savoirfairelinux.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 On Mon, Jul 18, 2016 at 08:45:39PM -0400, Vivien Didelot wrote: > All Marvell switch chips from (88E6060 to 88E6390) have a ATU Control > register containing bits 11:4 to configure an ATU Age Time quotient. > > However the coefficient used to calculate the ATU Age Time vary with the > models. E.g. 88E6060, 88E6352 and 88E6390 use respectively 16, 15 and > 3.75 seconds. > > Add a age_time_coeff to the info structure to handle this and a Global 1 > helper to set the default age time of 5 minutes in the setup code. > > Signed-off-by: Vivien Didelot Reviewed-by: Andrew Lunn Andrew