Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4380555pxu; Wed, 9 Dec 2020 16:02:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSpURq7sNuuaqAjoZWhazW5ItVhcHtBwIqPVJhlx8EfvPi0QYxId1dfUEw/rP1+yR3BTHF X-Received: by 2002:a17:906:22c7:: with SMTP id q7mr4120347eja.486.1607558532326; Wed, 09 Dec 2020 16:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607558532; cv=none; d=google.com; s=arc-20160816; b=BtuKTia++MC1q8y7NKN+Vi5xjTDxc54yb5Kti4Oqu/fRKywApAJWhtpgnwJQ+lD87x rD6sxvXexYDjCABjaxXWa0kYKYanRFKmH5EpzCKpD4sFo9C+Sx+XZn10eyGrDDotxrxW GMPFr6ryYTIT4qEzVySrnfOBmryTPU30mpDYXky2CYbBaTWrG0NB+8i516x8OpW83OY5 d3Xq8d3JjeoOVMdGyonV1wupX9vS1aryXc2/tPBrGVUbtmtHzLrthef34FYrBSPeNA8z jdgx2vAlVCnVtLf/jmpV6CRNYD/qmzI9RmlJFXkFvIPVLQ5908c6WGcmP1U38JCr2Gvd IPxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=sadflFwgJrkDKM2gLLJWS/TY1bwudS+0pUMZF8LFPEc=; b=V1+u4vkL2TtJNSxR3LMDAZIOfSW6VEqJn7P95WFOLRq7hzuKk2G9UTs5BJ8q/bRhpO qdudE8sgxcX7WANIvK21RnqHhv39aoDbQzx3qcBUlG5pk3R4OMAEsbSce/OmI4pSGZzz dY0tohg53TCipDCbBqiPLV4gWNZFO37uuMhlnTB/OsuDI1W4/CXFAfX20oho3lny4FSz 2quSDTUcrIzZBLNWficomSxSRt5zX7DdcYluYPm4BCtPvBbZH3pGxfCo0rcQcuZp1uuP g6YJ7AMkdzXr49Kf17SIXVIkcmwZ8gq60yJb8RUDfyb55wb7IlvC0dfNztWR4uQL0jim 8yog== ARC-Authentication-Results: i=1; mx.google.com; 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 y11si1587647ejp.753.2020.12.09.16.01.49; Wed, 09 Dec 2020 16:02:12 -0800 (PST) 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; 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 S2388747AbgLIXlN (ORCPT + 99 others); Wed, 9 Dec 2020 18:41:13 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:47518 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbgLIXlN (ORCPT ); Wed, 9 Dec 2020 18:41:13 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kn94G-00B8S3-JC; Thu, 10 Dec 2020 00:40:20 +0100 Date: Thu, 10 Dec 2020 00:40:20 +0100 From: Andrew Lunn To: Pavana Sharma Cc: ashkan.boldaji@digi.com, clang-built-linux@googlegroups.com, davem@davemloft.net, devicetree@vger.kernel.org, f.fainelli@gmail.com, gregkh@linuxfoundation.org, kbuild-all@lists.01.org, kuba@kernel.org, linux-kernel@vger.kernel.org, lkp@intel.com, marek.behun@nic.cz, netdev@vger.kernel.org, robh+dt@kernel.org, vivien.didelot@gmail.com Subject: Re: [PATCH v11 4/4] net: dsa: mv88e6xxx: Add support for mv88e6393x family of Marvell Message-ID: <20201209234020.GI2649111@lunn.ch> References: <9db13ff47826f8bf9d08ec7cdc194c2187868a40.1607488953.git.pavana.sharma@digi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9db13ff47826f8bf9d08ec7cdc194c2187868a40.1607488953.git.pavana.sharma@digi.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +/* Support 10, 100, 200, 1000, 2500, 5000, 10000 Mbps (e.g. 88E6393X) > + * This function adds new speed 5000 supported by Amethyst family. > + * Function mv88e6xxx_port_set_speed_duplex() can't be used as the register > + * values for speeds 2500 & 5000 conflict. > + */ Thanks, that should stop my or somebody else trying to wrong combine them. > +/* Offset 0x10 & 0x11: EPC */ > + > +static int mv88e6393x_epc_wait_ready(struct mv88e6xxx_chip *chip, int port) > +{ > + int bit = __bf_shf(MV88E6393X_PORT_EPC_CMD_BUSY); > + > + return mv88e6xxx_port_wait_bit(chip, port, MV88E6393X_PORT_EPC_CMD, bit, 0); > +} To follow the naming convention, this should really be called mv88e6393x_port_epc_wait_ready > +int mv88e6393x_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, > + int lane, bool enable) It can be hard to tell in a diff, but the indentation looks wrong here. 'int lane' should line up with 'struct'. > +{ > + u8 cmode = chip->ports[port].cmode; > + int err = 0; > + > + switch (cmode) { > + case MV88E6XXX_PORT_STS_CMODE_SGMII: > + case MV88E6XXX_PORT_STS_CMODE_1000BASEX: > + case MV88E6XXX_PORT_STS_CMODE_2500BASEX: > + case MV88E6XXX_PORT_STS_CMODE_5GBASER: > + case MV88E6XXX_PORT_STS_CMODE_10GBASER: > + err = mv88e6390_serdes_irq_enable_sgmii(chip, lane, enable); > + } > + > + return err; > +} > + > +irqreturn_t mv88e6393x_serdes_irq_status(struct mv88e6xxx_chip *chip, int port, > + int lane) Maybe here as well? > +int mv88e6393x_setup_errata(struct mv88e6xxx_chip *chip) It should have _serdes_ in the name to follow the naming convention. Andrew