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 94145C76195 for ; Thu, 23 Mar 2023 14:31:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231416AbjCWObS (ORCPT ); Thu, 23 Mar 2023 10:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbjCWObQ (ORCPT ); Thu, 23 Mar 2023 10:31:16 -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 8D8021EBFA; Thu, 23 Mar 2023 07:31:15 -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=Zoc3J9NgFLjB0ATS9BzpKxrQklksXAoihpHo0uKZNK8=; b=l1oXk9uDrL7IzexBx75aiGsTnq fuHmFr/Oel9UZMyfBQZCE+cDPz49mzU/BUp0TwKLdUEnkp/cGxO4HzCPvrYLg34ondRmWRGsF/68Z JfJXSqh12urdSETl2ymm3kdxxYsai/LhTKE06NPmhZJmdPRvoVYIJbA7r3zFqrHq4sJNHWAxvrnDr uk9bAaVj/wfFuCP/uZVuKj+kOTCY7j9OA4U1+WGrxUJ04oV9zgeb6FvgcyFjMRgfSigV32mzDx5OY S+m9NjGy36jQvu45TnPwa0JKTvW2XAz10jjLs/1RWw754RTM2JgEOzFcbD7aQjwIiM6MgZKIkUFdF myl7DUQg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35276) 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 1pfLy5-0005GV-9I; Thu, 23 Mar 2023 14:31:05 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pfLy4-0001Rx-F9; Thu, 23 Mar 2023 14:31:04 +0000 Date: Thu, 23 Mar 2023 14:31:04 +0000 From: "Russell King (Oracle)" To: Andy Shevchenko Cc: Andrew Lunn , Heiner Kallweit , Daniel Scally , "David S. Miller" , Eric Dumazet , Florian Fainelli , Greg Kroah-Hartman , Heikki Krogerus , Jakub Kicinski , linux-acpi@vger.kernel.org, netdev@vger.kernel.org, Paolo Abeni , "Rafael J. Wysocki" , Sakari Ailus , Vladimir Oltean Subject: Re: [PATCH RFC net-next 3/7] net: dsa: use fwnode_get_phy_mode() to get phy interface mode Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Mar 23, 2023 at 04:03:05PM +0200, Andy Shevchenko wrote: > On Wed, Mar 22, 2023 at 12:00:06PM +0000, Russell King (Oracle) wrote: > > In preparation for supporting the use of software nodes to setup > > phylink, switch DSA to use fwnode_get_phy_mode() to retrieve the > > phy interface mode, rather than using of_get_phy_mode() which is > > DT specific. > > ... > > > + struct fwnode_handle *fwnode; > > > + fwnode = of_fwnode_handle(dp->dn); > > const struct fwnode_handle *fwnode = of_fwnode_handle(dp->dn); > > ? Why const? Why do you want it on one line? The code as written conforms to netdev coding standards which as you well know are different from the rest of the kernel. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!