Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8137604rwn; Wed, 14 Sep 2022 09:27:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zclj1oyiT7ewbF6wqKJPsAR6+nNDhVkgIbYSSJOitM0ozxBnraxcDUer0Ym4WF3qtj/NS X-Received: by 2002:a17:90b:4a43:b0:202:7706:73d7 with SMTP id lb3-20020a17090b4a4300b00202770673d7mr5635668pjb.137.1663172864122; Wed, 14 Sep 2022 09:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663172864; cv=none; d=google.com; s=arc-20160816; b=Ud8lyHibgI3VjFqSiB45fatZ3vcXW26WEMvj/0y3UR/aTOZZFXNWRnpI6iL4k8y3Tc SBb5M+/14hnW3TLDz+efJYs3FfNFqmUZpnrt+MjzlHgm0LJAGKX/U6r5yG7tE+Mppnrz VWcBsnXo94MAyZw62QniZs1RuS/EbjuXYTbrgSDrx2vk0WrQHJ0TeIMWDLO3GtckJc41 VxXuT78pxxQVE+KQDi7RMXxttKkZMx4oOzMvRdrj1vSCVkOuiQuLZdJwyTIwUkLGXnIo p43G7CTFSr1+oDrXsEkO09iVHgXGbo/lQvGGdZTXqJ82/Jkxi9pvlOK94BqBZxzAnMux uORw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Y2nENUJNda1WOPfbAiiYeaWd6fg5bfLU6YozHB10ABk=; b=c4O6OdPTLNJBnOaNEtJHa4UXdlfwEs8axlEnhqvdgFbVgdv0cxVjjNtllE4352Z+Aq SbZzOwefJPOPayharWCmBPmlznryLe9iCRjuW7mZxxZHu52FOJdYOZocjDOczQ5tmZiA yHoflNmgUQESfYoERTLa1tZA9Vz+PnqtA/QCiELMKa2gUbz8OymCF38Hc2C9fn4OYhl0 v1Ofb7nGB6wGVDhZFHMbo6Oq8beG0ARo8+VNRoYnbiPdKRtNQ/NmQuwt15/7S/5c635D KQK24Stj7swmpBXM2Y3kYk08cH6ff2W9adxdx7sv2SpzkfrEJVG6AvgbuhYLdBaDJHO8 YM2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=t5yewRq8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a170903028400b00172aa2103bcsi10598165plr.448.2022.09.14.09.27.29; Wed, 14 Sep 2022 09:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=t5yewRq8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbiINPxZ (ORCPT + 99 others); Wed, 14 Sep 2022 11:53:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbiINPxX (ORCPT ); Wed, 14 Sep 2022 11:53:23 -0400 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 498C35C35F; Wed, 14 Sep 2022 08:53:21 -0700 (PDT) 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=Y2nENUJNda1WOPfbAiiYeaWd6fg5bfLU6YozHB10ABk=; b=t5yewRq8LgXr7pweKZSwjPBINP +Q8AIr9CBw27Sgr9NcCoemr/Zt9fQT7jIZqmIZQ4cX2vE8E32Njx6h1VWJ8+rlw7PVXL355Z+vIM0 CKFSe8CQrwaVplEMmikJ5nfHmb7yUcjH+/cUKCgcWYQHMkW2s8A/X8Wu6+6w2zIMhWlYfVVAvGgm7 sFGN0aO3mQuQ2kCJOJbDeFshnieU9TwOvgTk7wJzTxEWZaS6IyggpSbWRv25CTDqrZkfo+eHxx7lQ RvGjTJLiT7orwhuacVAfAkW2caxlak7GzY1YEvWoYevNAYcYoPC6CLszq4UmjbM4qYxSIqwa6cYBt gcVZUxRw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34326) 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 1oYUhN-0004Ze-Lg; Wed, 14 Sep 2022 16:53:13 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oYUhM-0001mD-AA; Wed, 14 Sep 2022 16:53:12 +0100 Date: Wed, 14 Sep 2022 16:53:12 +0100 From: "Russell King (Oracle)" To: Siddharth Vadapalli Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, krzysztof.kozlowski+dt@linaro.org, vladimir.oltean@nxp.com, grygorii.strashko@ti.com, vigneshr@ti.com, nsekhar@ti.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kishon@ti.com Subject: Re: [PATCH 3/8] net: ethernet: ti: am65-cpsw: Add mac control function Message-ID: References: <20220914095053.189851-1-s-vadapalli@ti.com> <20220914095053.189851-4-s-vadapalli@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220914095053.189851-4-s-vadapalli@ti.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 14, 2022 at 03:20:48PM +0530, Siddharth Vadapalli wrote: > Add function am65_cpsw_nuss_mac_control() corresponding to the mac > control register writes that are performed in the > am65_cpsw_nuss_mac_link_up() function and use it in the > am65_cpsw_nuss_mac_link_up() function. The newly added function will be > used in am65_cpsw_nuss_mac_config() function in a future patch, thereby > making it necessary to define a new function for the redundant mac control > operations. I think if you debug why you don't see mac_link_up called when in fixed-link mode, you won't need this change. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!