Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11534C61DA4 for ; Thu, 9 Mar 2023 13:21:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbjCINV5 (ORCPT ); Thu, 9 Mar 2023 08:21:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbjCINVp (ORCPT ); Thu, 9 Mar 2023 08:21:45 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B968E7741; Thu, 9 Mar 2023 05:21:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=dNVZ1FoHPA9y7GJqssX9FfFzSPM4P5yBtJIpechZ4W0=; b=oQsg7yg3iU/BaQ3jYgBp5Q57Oe Yx2LnYE2RY3+ZEROovUsAAsIHeMe7302nNpbp+yKgxfRKAT7LH2cc9ytBLEyg+SUfTgazfuuvapSb xCYYXnf10GEeFc3Nr9nbNj8irewYoQK+6YVLBu29M4zks3NnDdE2roKREnypMCq2TIFd55Tx28QqD jG6nB7siwOxSBCbVi1LEfhlxK7FU4ZHhsAHs6YLy4RKqMrkDrEpTJD4IuBvVyn8+zm5ODXl+f2hWb 0QH/HU02UmZMTyRO9qWrkDvieASrm3B1gy0V1MsVkIS52XQjS2EH761m3WxyKFfabYTU1sEzHFY/r BEyNpjFQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:43874) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1paGCq-0004dB-Fp; Thu, 09 Mar 2023 13:21:16 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1paGCn-0003gm-Fv; Thu, 09 Mar 2023 13:21:13 +0000 Date: Thu, 9 Mar 2023 13:21:13 +0000 From: "Russell King (Oracle)" To: Lukasz Majewski Cc: Andrew Lunn , Vladimir Oltean , Eric Dumazet , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Alexander Duyck , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/7] dsa: marvell: Add helper function to validate the max_frame_size variable Message-ID: References: <20230309125421.3900962-1-lukma@denx.de> <20230309125421.3900962-6-lukma@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230309125421.3900962-6-lukma@denx.de> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 09, 2023 at 01:54:19PM +0100, Lukasz Majewski wrote: > This commit shall be regarded as a transition one, as this function helps > to validate the correctness of max_frame_size variable added to > mv88e6xxx_info structure. > > It is necessary to avoid regressions as manual assessment of this value > turned out to be error prone. > > Signed-off-by: Lukasz Majewski > Suggested-by: Russell King (Oracle) Shouldn't this be patch 2 - immediately after populating the .max_frame_size members, and before adding any additional devices? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!