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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8119AC433DB for ; Fri, 12 Feb 2021 15:23:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3DB6364E57 for ; Fri, 12 Feb 2021 15:23:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232068AbhBLPXM (ORCPT ); Fri, 12 Feb 2021 10:23:12 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:37130 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232097AbhBLPVT (ORCPT ); Fri, 12 Feb 2021 10:21:19 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lAaF9-005qpk-Ms; Fri, 12 Feb 2021 16:20:27 +0100 Date: Fri, 12 Feb 2021 16:20:27 +0100 From: Andrew Lunn To: Bjarni Jonasson Cc: Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski , Antoine Tenart , Florian Fainelli , Vladimir Oltean , Ioana Ciornei , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Steen Hegelund Subject: Re: [PATCH net v1 1/3] net: phy: mscc: adding LCPLL reset to VSC8514 Message-ID: References: <20210212140643.23436-1-bjarni.jonasson@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210212140643.23436-1-bjarni.jonasson@microchip.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Feb 12, 2021 at 03:06:41PM +0100, Bjarni Jonasson wrote: > +static u32 vsc85xx_csr_read(struct phy_device *phydev, > + enum csr_target target, u32 reg); > +static int vsc85xx_csr_write(struct phy_device *phydev, > + enum csr_target target, u32 reg, u32 val); > + Hi Bjarni No forward definitions please. Move the code around so they are not required. Sometimes it is best to do such a move as a preparation patch. > @@ -1569,8 +1664,16 @@ static int vsc8514_config_pre_init(struct phy_device *phydev) > {0x16b2, 0x00007000}, > {0x16b4, 0x00000814}, > }; > + struct device *dev = &phydev->mdio.dev; > unsigned int i; > u16 reg; > + int ret; Hard to say from the limited context, but is reverse christmass tree being preserved here? Andrew