Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp299711rwd; Mon, 12 Jun 2023 13:49:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6KmGsBvpHXfFZRB6uCBFGJXLdxYiutJD1hd5oTU1XLYwWdGhRsWangPrCMRIVlthiOX5vx X-Received: by 2002:aa7:c50e:0:b0:514:a302:c334 with SMTP id o14-20020aa7c50e000000b00514a302c334mr7474777edq.14.1686602984950; Mon, 12 Jun 2023 13:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686602984; cv=none; d=google.com; s=arc-20160816; b=FmtqBeFfTheJ7N9xM348uWd8gn6QveD2Ky3rTMH0YTy0fOph4o4yHJO4qqZb249EAd W8GHY86QJnq2FJ21w9/33QEva4+X31G2pQpKVoOYJF8vSbDfVJBG/srkX00ekcTM7pQA /s3QhCtbQUA1XmCYYrGfydL1gljEqHjP0kvkQaBSIbdrMd82ALlFWebZmx9Q74ifV1Ze zN6unLz+q1HUpihPMdDipZAhDeW26UjjTureBD1ICN1+0yCh1modN45snMNchegfIgBo zefjAbWivbtQppHLX/SC8XAmc3dY7K0Bzg/3/FCYMahuEJz2fer+Elwg86aw5EhTP8dD zYzg== 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=+GICplP/MT1isAH+ok2l+9fKNc3rvvMZkj74HkVOtyg=; b=mU83cByKmO4xZqzbLaUB59VFNTW6Jpp2CIPRcrj5tELNyaip5EA1haMSlwXUiwSvxG bD79ZdV0q26Tkxm5elT5/RBkFI1Nq1C1byqBM44JnCU9lGrMQGYd5wSM9JtiIW01QKhB Th0auLKs+gzl9JPTPv2ccFWPTSvgX33XF7l9gBdUFT9gykszHZ4TQdTpqweDiQVFZhC/ JPA6lI4RZsuttI3ZyfYqR+LkNaxNwNF3Y7gGtv6zWXMaGqbrtNDouBaW5UiNxxB+5Qpw aJQq2ff9wFGEyTAC8KkmC8ndy/M++/Fy/j+2y/O3oGYRJCmUK0E1xDV0tldU4o4IqBdr UrAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HZb4b7DF; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020aa7c914000000b00510aed0c7acsi6625953edt.77.2023.06.12.13.49.20; Mon, 12 Jun 2023 13:49:44 -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=@redhat.com header.s=mimecast20190719 header.b=HZb4b7DF; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233186AbjFLUmu (ORCPT + 99 others); Mon, 12 Jun 2023 16:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237807AbjFLUlh (ORCPT ); Mon, 12 Jun 2023 16:41:37 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A041172B for ; Mon, 12 Jun 2023 13:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686602447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+GICplP/MT1isAH+ok2l+9fKNc3rvvMZkj74HkVOtyg=; b=HZb4b7DF1KJD+PD54kOwh8oUXEN1DjN5oyTSoWWcoM6dThxgpjpqgck3J0C9KGjIjAVmWZ mWYjyoVs4f74U5YyY4goTjMRDrA7UGAwGy9fIuZ0xQsM1Lalgp4JHNLWo7AQWNLba/niJz 5Pz08+6aFVkjq1SjCGYDIcltIG/dGLA= Received: from mail-yw1-f197.google.com (mail-yw1-f197.google.com [209.85.128.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-659-0oj49lK4Mgy78NyVWqwvzQ-1; Mon, 12 Jun 2023 16:40:46 -0400 X-MC-Unique: 0oj49lK4Mgy78NyVWqwvzQ-1 Received: by mail-yw1-f197.google.com with SMTP id 00721157ae682-568a85f180dso68569917b3.2 for ; Mon, 12 Jun 2023 13:40:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686602445; x=1689194445; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+GICplP/MT1isAH+ok2l+9fKNc3rvvMZkj74HkVOtyg=; b=NTAkYHzkN5MRGAcn2sjc3JorMPJCbAij8/ynVcf+QNdsZ3NjK5XDp1TKC6/cnPJYuc WH6rIVm/XHVlMGwgQ2xrswYb9dptNervGSMQwTpKuj3xmlehWTrG4JMi2qtqRcoM1ji+ Mj7o7G/y1YtwDfAEXxDOxkl2q1eSyN1CsE0UQ+vq2VrnRpk0TNSuYs95bLDR7pssaOk0 3+UAxSFDiou6tmXE5KE/MWuD5hceZoKJvOe8G5OpCJRK5tfV2oZvUt9zzPYrWaM+Jvn8 8PL/vgZskZ8YMbU2ldWNHGrQhS7r4iecxkRaw7h11gnokuXeN2CgD77MIDAxcsvUo14n FDUA== X-Gm-Message-State: AC+VfDwFW920hPwuYFqFF7aCemUrDIV+REF9HKLMFywugAhNv72pyWMO zys/jf5FG47JigsSwC5YNc/lwOrXwHwZghiW4J23K/RkM8pTOp8Naovd5TLvJxRSkT2ZqnK3ScD 9WMn9D3QIYcVdNyIXN2kLCXVY X-Received: by 2002:a0d:d3c5:0:b0:569:770d:c9be with SMTP id v188-20020a0dd3c5000000b00569770dc9bemr12009519ywd.41.1686602445482; Mon, 12 Jun 2023 13:40:45 -0700 (PDT) X-Received: by 2002:a0d:d3c5:0:b0:569:770d:c9be with SMTP id v188-20020a0dd3c5000000b00569770dc9bemr12009500ywd.41.1686602445225; Mon, 12 Jun 2023 13:40:45 -0700 (PDT) Received: from halaney-x13s ([2600:1700:1ff0:d0e0::45]) by smtp.gmail.com with ESMTPSA id k190-20020a0dc8c7000000b0056d51c39c1fsm208496ywd.23.2023.06.12.13.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 13:40:44 -0700 (PDT) Date: Mon, 12 Jun 2023 15:40:42 -0500 From: Andrew Halaney To: Bartosz Golaszewski Cc: Vinod Koul , Bhupesh Sharma , Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kishon Vijay Abraham I , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Bartosz Golaszewski Subject: Re: [PATCH 13/26] net: stmmac: dwmac-qcom-ethqos: make the rgmii clock optional Message-ID: <20230612204042.litbbv23zdb3u5k7@halaney-x13s> References: <20230612092355.87937-1-brgl@bgdev.pl> <20230612092355.87937-14-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230612092355.87937-14-brgl@bgdev.pl> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, Jun 12, 2023 at 11:23:42AM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > On sa8775p there's no RGMII clock so make it optional in the driver. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > index 3438b6229351..252dca400071 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > @@ -663,7 +663,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev) > ethqos->rgmii_config_loopback_en = data->rgmii_config_loopback_en; > ethqos->has_emac3 = data->has_emac3; > > - ethqos->rgmii_clk = devm_clk_get(dev, "rgmii"); > + ethqos->rgmii_clk = devm_clk_get_optional(dev, "rgmii"); This makes it optional for older platforms too, but as far as I know on those platforms it is mandatory. This can be enforced in dt-binding checks, but should we also enforce that in the driver still? Honestly I feel like yes, but there's probably some precedent maintainers follow on this front that I don't know of. > if (IS_ERR(ethqos->rgmii_clk)) { > ret = PTR_ERR(ethqos->rgmii_clk); > goto out_config_dt; > -- > 2.39.2 >