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 85001C433FE for ; Tue, 5 Apr 2022 14:24:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384095AbiDEOYP (ORCPT ); Tue, 5 Apr 2022 10:24:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380608AbiDENOG (ORCPT ); Tue, 5 Apr 2022 09:14:06 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C702124C39; Tue, 5 Apr 2022 05:17:14 -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=TirUZa2jtJKxHIJLfrDdujcbpWXA+2UOaacwLbMHXu4=; b=HcqpA4hY9ri79fso0f339rrMcs wCZmTFSHG5Z4XYSQx1NT4zatymh5toRG4XsyM+hmnBPwUA/ssg0FePcwNGIE9y1MK1pIDF1RbBd3u qNkbgw1mAGxIDeegLAA6z4cJugPe8Nd8aaaOAzCUZHnivd0uVrXhc9oVxZwqR5Qo3Pm8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nbi7F-00EFMA-MV; Tue, 05 Apr 2022 14:16:57 +0200 Date: Tue, 5 Apr 2022 14:16:57 +0200 From: Andrew Lunn To: Andy Chiu Cc: davem@davemloft.net, michal.simek@xilinx.com, radhey.shyam.pandey@xilinx.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzk+dt@kernel.org, linux@armlinux.org.uk, netdev@vger.kernel.org, devicetree@vger.kernel.org, Greentime Hu , Robert Hancock Subject: Re: [PATCH v8 net-next 1/4] net: axienet: setup mdio unconditionally Message-ID: References: <20220405091929.670951-1-andy.chiu@sifive.com> <20220405091929.670951-2-andy.chiu@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220405091929.670951-2-andy.chiu@sifive.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Apr 05, 2022 at 05:19:26PM +0800, Andy Chiu wrote: > The call to axienet_mdio_setup should not depend on whether "phy-node" > pressents on the DT. Besides, since `lp->phy_node` is used if PHY is in > SGMII or 100Base-X modes, move it into the if statement. And the next patch > will remove `lp->phy_node` from driver's private structure and do an > of_node_put on it right away after use since it is not used elsewhere. > > Signed-off-by: Andy Chiu > Reviewed-by: Greentime Hu > Reviewed-by: Robert Hancock Reviewed-by: Andrew Lunn Andrew