Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2660382rdb; Wed, 15 Nov 2023 07:12:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5cx8xO7CFlt0uvJ3xJ431e5u2GuyInId5vVlPKSrcBR6U4iS0WJIHQqYsHAQG/xTX5Som X-Received: by 2002:a05:6a21:3603:b0:186:1781:d660 with SMTP id yg3-20020a056a21360300b001861781d660mr10934394pzb.6.1700061143602; Wed, 15 Nov 2023 07:12:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700061143; cv=none; d=google.com; s=arc-20160816; b=PBn1PbUthSzUJ2GvwfSKhRYbCuopH/MZARrvz1FKrZrBLCGeyFhR4RijQLYenojXQ5 MGGWjxdJRl1I0ap5WTVDnSh97mqb8MdjBbkxaACP3iVfHN7QI2Fwcp7j998IgAeobuuU YUUn/u/xJIqGBbotnZTwfGzn6rpQ9Cw7d4GBzENME2BuNbuCDkR/wlfFlfzPb7PGWNsi lYGqG4AGCjO6/hdC04oCpOmCE9iECwaKeCQti1R7DyAiMSEenL2+lHfscEQ+195y0srB yZCdHSorwziU3+DCz4CvPA1wqC/Lqs69UKUI+xHcKwCeVCYoswy8Mzo9+JYEL+EjIv81 MkhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i7YKZSA6qMB8/Zl3KGe4aemInnw1HDhtouL6+a5DT9M=; fh=4gpfRGcGnp+CfSXRmR6id0uiB/MqlRnmFc1qe8IoiFE=; b=GbWUn/BBueLh+CwoD3KNYNvGJA00lPgxuotsKRJyzowowdZnPACvELEm47g6PTfQq6 tlufP6289Lfb9wbr16AQO2AxPo+ql8RovelSn7ffO48Pd7WDkdOmKkia5pDioAQpPSp0 We/KjgqNrH12YbOmjXSSccTUM3sqplG/Yo2yGkuwmM5CJT8F0z7Rwd8F86P1VxlD+kSd iZB3FGaNEezRkohKYJXL3ZqAkg7bd4txJo0kVuZiAKi6psjRIbUNFoRd7Z0b/5dT9wHb dArY3ps7TfT1iZTBLk5IydV/+Qf41aM6PLSQUuM7PX262YskcF645mef6hjSh0dlU87z yJcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EIR0XTZD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m128-20020a633f86000000b005b7160263efsi10676983pga.489.2023.11.15.07.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 07:12:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EIR0XTZD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3DFED80C9CB1; Wed, 15 Nov 2023 07:11:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344381AbjKOPL2 (ORCPT + 99 others); Wed, 15 Nov 2023 10:11:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344379AbjKOPL0 (ORCPT ); Wed, 15 Nov 2023 10:11:26 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFEFC8E; Wed, 15 Nov 2023 07:11:22 -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=i7YKZSA6qMB8/Zl3KGe4aemInnw1HDhtouL6+a5DT9M=; b=EIR0XTZDApPvJ3IE31ymgWm32u EFQ8dEr9BELHn6z3k6Eiinb/PA3iH+doSSEQAX22iJtRqmRYBzjNCKSDV36jaFRoXatcjV5zpaq5c vQM4uFfE8j30jNdkrE5rOYdAVwYlt1ugJ3bIMw5PCg37bLPw4/eiHsc+gLMWUDNHPWZ4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r3HXr-000Fmw-6Y; Wed, 15 Nov 2023 16:11:11 +0100 Date: Wed, 15 Nov 2023 16:11:11 +0100 From: Andrew Lunn To: Luo Jie Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.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, robert.marko@sartura.hr, 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 3/9] net: mdio: ipq4019: Enable GPIO reset for ipq5332 platform Message-ID: References: <20231115032515.4249-1-quic_luoj@quicinc.com> <20231115032515.4249-4-quic_luoj@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231115032515.4249-4-quic_luoj@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 15 Nov 2023 07:11:45 -0800 (PST) On Wed, Nov 15, 2023 at 11:25:09AM +0800, Luo Jie wrote: > Before doing GPIO reset on the MDIO slave devices, the common clock > output to MDIO slave device should be enabled, and the related GCC > clocks also need to be configured. > > Because of these extra configurations, the MDIO bus level GPIO and > PHY device level GPIO can't be leveraged. Its not clear to me why the normal reset cannot be used. The MBIO bus driver can probe, setup the clocks, and then register the MDIO bus to the core. The core can then use the GPIO resets. What am i missing? Andrew