From mboxrd@z Thu Jan 1 00:00:00 1970 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 25241C6FA86 for ; Tue, 6 Sep 2022 12:32:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233320AbiIFMcE (ORCPT ); Tue, 6 Sep 2022 08:32:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240198AbiIFMb0 (ORCPT ); Tue, 6 Sep 2022 08:31:26 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BA7DEE1 for ; Tue, 6 Sep 2022 05:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=1kzfapkYvUtyD1GecYbbzqpC5O7ydKk+Lr+D5lNt2zw=; b=ZEPinqrqZoZn9SYZt2XYT8UdxZ PXyehOW+uBSuanNgikvH1ob80RALSgmHI+AY4RYBtoWObSbE+CuL1CYZkoouakn1oCkTGsZum7iS7 a98B2iATsFaBzV6yCaPEbq7GPZFMQDYQDl4YvVooN4rKL3XZUHKo1emm6J4NPkPIZg2I=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oVXhy-00FkRx-2c; Tue, 06 Sep 2022 14:29:38 +0200 Date: Tue, 6 Sep 2022 14:29:38 +0200 From: Andrew Lunn To: Mattias Forsblad Cc: netdev@vger.kernel.org, Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH net-next v4 1/6] net: dsa: mv88e6xxx: Add RMU enable for select switches. Message-ID: References: <20220906063450.3698671-1-mattias.forsblad@gmail.com> <20220906063450.3698671-2-mattias.forsblad@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906063450.3698671-2-mattias.forsblad@gmail.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > +int mv88e6085_g1_rmu_enable(struct mv88e6xxx_chip *chip, int upstream_port) > +{ > + int val = MV88E6352_G1_CTL2_RMU_MODE_DISABLED; > + > + dev_dbg(chip->dev, "RMU: Enabling on port %d", upstream_port); > + > + switch (upstream_port) { > > +int mv88e6352_g1_rmu_enable(struct mv88e6xxx_chip *chip, int port) > +{ > + int val = MV88E6352_G1_CTL2_RMU_MODE_DISABLED; > + int upstream_port; > + > + upstream_port = dsa_switch_upstream_port(chip->ds); > + dev_dbg(chip->dev, "RMU: Enabling on port %d", upstream_port); > + if (upstream_port < 0) > + return -EOPNOTSUPP; > + > + switch (upstream_port) { > +int mv88e6390_g1_rmu_enable(struct mv88e6xxx_chip *chip, int upstream_port) > +{ > + int val = MV88E6390_G1_CTL2_RMU_MODE_DISABLED; > + > + dev_dbg(chip->dev, "RMU: Enabling on port %d", upstream_port); > + > + switch (upstream_port) { Why is 6352 different to 6085 and 6390? This is the sort of thing which should be explained in the commit message. The commit message is about the 'Why?' of the change. You could explain why there is this difference, so a reviewer does not need to ask. Andrew