Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp732872iog; Wed, 29 Jun 2022 09:06:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqFNLLMcE+R4C2opUnjkC8g6DWH9enKW7YOARNNLDuLEPCEX50qz0YGj1v11V5POeJS3+8 X-Received: by 2002:a05:6402:1e90:b0:437:ba7f:da20 with SMTP id f16-20020a0564021e9000b00437ba7fda20mr5139985edf.313.1656518818463; Wed, 29 Jun 2022 09:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656518818; cv=none; d=google.com; s=arc-20160816; b=fRQ/UaPwBYn0CvWXVC9fA50VlZipOYbXZJUPlQD5LysLoU2Vmkayp1HLcGVZ2QcffX kwdyqDDz24fT+uar0L1VaXxXqhnHdk6sPHBVMfBTkmsjys3S7owIUbQnvYQTpO0SvCdi xgfUobjl6sCl7oO03TPiNyy9eL8XNurPzNt533iPYEvJnHv2WE+6I8/6+RlOEGHy/uxU AM9AlARMN8MJ/wOyR/kmAOtUUIv55SVB3snu95LT1zI7/vo26x7b3meBM8Ggpf7bzWvo bkgpRXPcPVQXHKpXAK9NDJboNB2n9JLHrzoVTAys2sv/ZJm4JQXaC8TynYYmq+DXhukR d1TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1BmoJaN0elCn9L2FBNxmqpCrFJIQ2jcG4nIrcx4xQGo=; b=siN8inV7DAFxoEW47WVaaHXVt3son9TsH/VtLoN4Y92KUo7saQOVIVX8QBtX32OovN 1gmXFDWMxMhHaluxrDell4kGa8SxasPsQ/XNxjEPXYLUaSCPEdVy/CMo8mKA7emgFBiz sIV6cSBM2wobkRLYZWTKoD/dAqslp740eOXwPoGiGj21zolaQIdovzXqh5kRkyHPfCKw fEmR3CyMnFVkvx9vfNcp/CBIejAGBCEuYqbYQPacS9qJgf/kf1bG3BRlr4bTehkWf2eo PjihLnROUApoRAMdHNpUcIL5Yl9SsDMLGmP2O5fYHNFs71QXm7eI6b1fIiQkRlUXzUzF ZQkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tkAOtw9s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs12-20020a170906dc8c00b00711f63ebdb3si21096735ejc.565.2022.06.29.09.06.30; Wed, 29 Jun 2022 09:06:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tkAOtw9s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233648AbiF2PjM (ORCPT + 99 others); Wed, 29 Jun 2022 11:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232242AbiF2PjL (ORCPT ); Wed, 29 Jun 2022 11:39:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CAEA2C667; Wed, 29 Jun 2022 08:39:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5BF6BB82553; Wed, 29 Jun 2022 15:39:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBFF4C34114; Wed, 29 Jun 2022 15:39:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656517148; bh=sKpa3nSekXMC1dtLq0tyU6Qud/zL0leMfbAOmxPeT7s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tkAOtw9sMCZ52YMxzIiR2IZ33V6d9HSV2I2OW2zOO9DTKpuK4gFejS4+jrTB2x8lF 6iSG9TdNItbYLUSr0XhIEg9fOpz3zBr/s1SkDobyi0O+hE5rk3kVrfCrFufSzXdpjG P8gE4e5fVo3tv+s4b/maQskXrnUmQZEl9WwNBrplDanyELnxDcY2DI2GKwrbLgD0j9 zq4mr/qZBTRL2wzjDhKLJfzE2QDLmJV/bwirfT9ygB0USRYgodD+r6SQE6WxCXmrbk 0VWw2C2fNuFRzN/hQQqYaLD4UGA9Pwd5iaLWIZysh9DVvlC0OKAg3CxRVD0YP3mPLp 7Jdu/DclpuQYA== Date: Wed, 29 Jun 2022 08:39:06 -0700 From: Jakub Kicinski To: "Pandey, Radhey Shyam" Cc: "nicolas.ferre@microchip.com" , "claudiu.beznea@microchip.com" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "git (AMD-Xilinx)" , "Katakam, Harini" Subject: Re: [PATCH net-next] net: macb: In shared MDIO usecase make MDIO producer ethernet node to probe first Message-ID: <20220629083906.45e7a023@kernel.org> In-Reply-To: References: <1656439734-632-1-git-send-email-radhey.shyam.pandey@amd.com> <20220628220846.25025a22@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Jun 2022 15:24:55 +0000 Pandey, Radhey Shyam wrote: > Oh, I could also see this error when making it a module compilation. > I will fix it in v2. As an alternative to device_is_bound() i think we > can check the presence of drvdata. Similar approach i see it in ongoing > onboard_usb_hub driver series[1]. Does it look ok?/any other suggestions? > > - if (mdio_pdev && !device_is_bound(&mdio_pdev->dev)) > + if (mdio_pdev && !dev_get_drvdata(&mdio_pdev->dev)) > > [1]: https://lore.kernel.org/all/20220622144857.v23.2.I7c9a1f1d6ced41dd8310e8a03da666a32364e790@changeid/ > Listed in v21 changes. Yeah, no real opinion here. The entire patch looks odd but I lost track of the devlink discussions. Could you CC Saravana, Greg, Rafael, etc on the next version? And the Ethernet PHY maintainers.