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 1A0C7C04A95 for ; Fri, 23 Sep 2022 18:38:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232621AbiIWSip (ORCPT ); Fri, 23 Sep 2022 14:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232827AbiIWSik (ORCPT ); Fri, 23 Sep 2022 14:38:40 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8293411BCFE; Fri, 23 Sep 2022 11:38:39 -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=ZQ+PAIF1Jb4NIgEmf3aef9CJmpHHgPmanYlhQKVKIb4=; b=43jWBbcikQ7sQ+cRN+pRAh64Mk zfa4v03i/wl5JVQWzFiAGftpcNTSC8hkRylDL3Kejm+eRyS/F2z0c+1fTewNf5apcsBHzBf6EXnAh 2md8A+m533oA+4Kv3h6evZAr/Qa6W4eVGCmzzrcSrv/S3UH42np72CSC7pFppuHnE5qI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1obnZL-0003I8-TU; Fri, 23 Sep 2022 20:38:35 +0200 Date: Fri, 23 Sep 2022 20:38:35 +0200 From: Andrew Lunn To: Arun Ramadoss Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, Tristram.Ha@microchip.com, prasanna.vengateshan@microchip.com, hkallweit1@gmail.com Subject: Re: [Patch net-next v4 3/6] net: dsa: microchip: lan937x: return zero if mdio node not present Message-ID: References: <20220922071028.18012-1-arun.ramadoss@microchip.com> <20220922071028.18012-4-arun.ramadoss@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220922071028.18012-4-arun.ramadoss@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 22, 2022 at 12:40:25PM +0530, Arun Ramadoss wrote: > Currently, if the mdio node is not present in the dts file then > lan937x_mdio_register return -ENODEV and entire probing process fails. > To make the mdio_register generic for all ksz series switches and to > maintain back-compatibility with existing dts file, return -ENODEV is > replaced with return 0. > > Signed-off-by: Arun Ramadoss Reviewed-by: Andrew Lunn Andrew