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 79A0FC47071 for ; Thu, 16 Nov 2023 17:08:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345280AbjKPRIx (ORCPT ); Thu, 16 Nov 2023 12:08:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjKPRIv (ORCPT ); Thu, 16 Nov 2023 12:08:51 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03E011A5; Thu, 16 Nov 2023 09:08:47 -0800 (PST) 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=c8vB4X1wS0Xik8ZCY6EIC5iiaJP9c/o2MyPjwsHoYSU=; b=un0jR6kzNLHN8HHHdXQQeRZPJc ClsrvgXKK6nD+STDPtgygS+Fw3HzGDg+li6J3zv2FChj1AyP6jb9SUiKx1p/8FkAB9WNlWpIcO8b4 7wMi4VjrWyfMwdVuwQ5X4zPlCWWjCm7y6tuGic/z305JaUFfmSYBv6fPCa+GJZ7cdNIk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r3fqy-000NGp-TN; Thu, 16 Nov 2023 18:08:32 +0100 Date: Thu, 16 Nov 2023 18:08:32 +0100 From: Andrew Lunn To: Jie Luo Cc: Robert Marko , Konrad Dybcio , agross@kernel.org, andersson@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, hkallweit1@gmail.com, linux@armlinux.org.uk, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com Subject: Re: [PATCH 8/9] net: mdio: ipq4019: add qca8084 configurations Message-ID: References: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-9-quic_luoj@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Yes, the clock driver of qca8084 is probed as the MDIO device, the > configuration sequence here to lighten the qca8084 PHY need to > be completed before the clock APIs available to call. Please cleanly separate clock from MDIO. The MDIO driver should only use the common clock framework API calls. If the clock driver is not loaded yet, trying to get a clock should return -EPROBE_DEFER. The MDIO driver should return that from its probe function. The driver core will then try to probe the MDIO driver later, by which time the clock driver should of loaded. Andrew