Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3159390pxb; Sun, 26 Sep 2021 07:00:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDQtQKTGTuSmf0Ybld/yh4MsYC0OvNt/fahbzHCwQLbbnElrIOiQHv6hfODggRI80nH14I X-Received: by 2002:a17:902:d345:b0:13e:27a5:58b5 with SMTP id l5-20020a170902d34500b0013e27a558b5mr1079523plk.79.1632664832019; Sun, 26 Sep 2021 07:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632664832; cv=none; d=google.com; s=arc-20160816; b=hLqGReSX5chx3kNBh3AqamOF4y3Nee4KRKbjbFBt72XQp9hPx5+QBauM1IK9oSNRin lWBWjhKkL7QLMd2cImTcLrAuWkTOzqDkiDeruYQvwwvWjHvvqvpZrnptlWS+e3kO/rQv IbeZC7uy+ADGrBACpG3sCHR0/X5wPJPibPdf9deBnlrK6HPg12j0cNEEtRZDlTrrYYgj 5ASi7RczPQnIcbgm522MMMz8Z2gm2Q154BEXUGFDoomr3AiqgvY9SZcLrSIJc4Ku0NPC jmsEWiM1UAsS6ZjqHXuEieN2r360TWzUxZVjvRCz9wZ+NWNRpxUJxAWozI4NBjNAN32E kVhg== 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:dkim-signature; bh=mpQfJQ4vBJxTp7tIq7ie6usy/23xefOph6ohHZyt8d8=; b=APw74zXSX571vX0n07Dc3+XgKff0Z8MwkCO+uiYZgUhjoU33Dyb1pm5pFT8c8ecm9Y 9srwigXu7/e8BK4WRdvfolSL2JTBv6QTfVJONvxr77Q6uiVNH7Aa0KqdIuVlQK0wux1Y cL9mBVjzpPESt4UL7i/mEJrI07MHfRjmkqIzzrsMaKYauTdVDlPRcReLv2LEKrP79LyR wI1b84yusTn+AAsdU1UXmTNt+7AgtIhwHI4owj5mdaPu6xJPquuVUekagn26nqCL/EiV x9FZXVhXDRiiN4+WS5Z/MMq3H3ZtXFq0FxJJgQrgO/gCi2bN1kEHCLYAPbEVJ4VZiIS0 IFDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="BYaPkO/U"; 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 h9si18076301pgs.569.2021.09.26.07.00.18; Sun, 26 Sep 2021 07:00:32 -0700 (PDT) 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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="BYaPkO/U"; 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 S231815AbhIZOBA (ORCPT + 99 others); Sun, 26 Sep 2021 10:01:00 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:60856 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231777AbhIZOA7 (ORCPT ); Sun, 26 Sep 2021 10:00:59 -0400 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=mpQfJQ4vBJxTp7tIq7ie6usy/23xefOph6ohHZyt8d8=; b=BYaPkO/UdcgFLrY/096WRfx5EH 3X0ZzqU2xquvKAYM3MMJSzwpct4nmkE6AgmSSFRMG0FLH5L4qLOkyBKYqDmpM3YmyCKObN8+7Kx0L SJS2ODPDXA+32Fox9g30riuCpl6SxdZ/SI19AtvluWp25XzqgqYAiDg/NPVfZBTIL5bY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mUUgY-008Jxe-5C; Sun, 26 Sep 2021 15:59:18 +0200 Date: Sun, 26 Sep 2021 15:59:18 +0200 From: Andrew Lunn To: Florian Fainelli Cc: netdev@vger.kernel.org, Doug Berger , "David S. Miller" , Jakub Kicinski , "open list:BROADCOM GENET ETHERNET DRIVER" , open list Subject: Re: [PATCH net-next 1/4] net: bcmgenet: remove netif_carrier_off from adjust_link Message-ID: References: <20210926032114.1785872-1-f.fainelli@gmail.com> <20210926032114.1785872-2-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210926032114.1785872-2-f.fainelli@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 25, 2021 at 08:21:11PM -0700, Florian Fainelli wrote: > From: Doug Berger > > The bcmgenet_mii_setup() function is registered as the adjust_link > callback from the phylib for the GENET driver. > > The phylib always sets the netif_carrier according to phydev->link > prior to invoking the adjust_link callback, so there is no need to > repeat that in the link down case within the network driver. > > Signed-off-by: Doug Berger > Signed-off-by: Florian Fainelli Reviewed-by: Andrew Lunn Andrew