Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5286232rwd; Mon, 12 Jun 2023 02:51:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XGLe8KSO4lBAw/mETZWhaVufOQWWXUKB0x4NzvuYt40ZYY743DO5iatmdvNi27VD6viKo X-Received: by 2002:a17:90a:784c:b0:256:ae6e:993d with SMTP id y12-20020a17090a784c00b00256ae6e993dmr14022373pjl.1.1686563459904; Mon, 12 Jun 2023 02:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686563459; cv=none; d=google.com; s=arc-20160816; b=kS8bUPCmC4FvHE1iYZGYL/UrSCzvS34rro4Tdx8sg44uhrlOKHuKBTwOVK+Zirrf7B k1EOenHPuKV3fFd2mlvYB4qmMN6P+qNhk+oiZ603L08V+DcBBct9Gt3rPBXXIXFgp6u/ k7grAxVtZ5F4SJquTgyMPDRIlKJ+dnJYvkgpsQUDVRVmSXB3f7e3Z00wJnlZ2n/RitMl 6AviDaUFVyCZMppjS9sFVj/PMHqlxIvBtOor215TM+6dJWqENWzIR/TAEqTyrlkcfeBB Qj18H6Lfwp5QYF9eXvst2GarBulPqWXx57qh3KetMTOIpFEo9FJocsTeytUem6sjw6Sr dqMQ== 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:date:subject:cc:to:from :dkim-signature; bh=0jrHnz846sKSAurRWEc8dAdWpKHrp05uQC5lgmZ9ncs=; b=ivyp/1WtYGHXJH29F/ftjsNOBCp5Or2w1ovmcLu8e25LYZ1q1UMr+KtDIR9dCSZYCh V8bUMuW+brcPEXo2BKQX4hHn8M5l7L/OQx7HN+DndABud2XEphA4PrYmRMP6c3jtzBXS x63HMe1PmNHJYQmKWaI1CfNu2ZnRV2XEuo1DV9nLQ+vLrU3MWFv9rpgChBYV8GNHQq0a 5Iln/CFr1UuEDAv7EkQ3cPr1CCGwx63gUOyre/BiAgnHRd3toYiUVp5tRqlcoiHDk6TI oFIjtHDIQbUy2S2N9EgWtpjY1Z+5a8h+V+VHrHg72Ag1dmkm4NKIZrn/5TGPYRvx1mfi dpnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=Wv5XrDDv; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr4-20020a17090b4b8400b0025066f45e40si3432822pjb.22.2023.06.12.02.50.40; Mon, 12 Jun 2023 02:50:59 -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=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=Wv5XrDDv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234985AbjFLJbh (ORCPT + 99 others); Mon, 12 Jun 2023 05:31:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232246AbjFLJaO (ORCPT ); Mon, 12 Jun 2023 05:30:14 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C9CC30DB for ; Mon, 12 Jun 2023 02:24:47 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f62b512fe2so4904744e87.1 for ; Mon, 12 Jun 2023 02:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1686561885; x=1689153885; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0jrHnz846sKSAurRWEc8dAdWpKHrp05uQC5lgmZ9ncs=; b=Wv5XrDDvy4LtM5L7MWCbVK9pWAo3LoUNOvZQEasGmTIxOi38BcIRca8Fde80aXxOwM aXfV6t3++WM8D2t43nXQPbThzdlcHTowM1+1hywltCEBkdLNk5WIBKbHdgnFrbTu6NN6 G7hD3xTxSxdg2OJyJhkZKd/bIlY8HQYl9S3d+OKQOv7jN/dCgI9Jja2/dN9fpneUfi06 MbuoGh0EvHikS8mSs/EC9zdBr5OUOZtHEXtCxm4XNW8D1WYAC2ZSXNjfDklDyA/HF1uk rv1AHJwKXY2AlZUFovyBCJwKKAz5+/DTFFMP1V3lPGCXMSQIXrZnHCpFQWA4YSRq5Alp 0QbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686561885; x=1689153885; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0jrHnz846sKSAurRWEc8dAdWpKHrp05uQC5lgmZ9ncs=; b=a+Fz+0Wv9ny5F5lJS3memlZjK/yVAlHIiBjh+6+9tc5/WTQ1p0QjunxHA65Sxf7L8n j9CE/1AGeZWwrD7vTEwtUoILK3ToahcpxNbGJNPElpSsh3/rb2DQwXm9hI4WT7+srM+I wqRnCHmOm/BPLtzB41XlKrOIL2mD53Oi0wI1vKIkbokbBNI41PSyo3jt0klSKOsGDu7L 5qUyx/AbNW2DvUPUgX0JUCEhQrFj3jhis4qhQkMF29atrg4LL7DghMxMpsI2gfpyzvLY 7/nYG8+647c16Qk2F4WFabXhpCWeHihlMma48op80x/mfIbTWFcecFFdYrCG73tavhx4 Wrww== X-Gm-Message-State: AC+VfDwMxPWEqhCOsiFg6i/RhBxvw5MDdhWWrZswtrQGmcgWyBspWRE3 fHCiWiH1frDCTHS9FOVgt0/ECQ== X-Received: by 2002:a19:6706:0:b0:4f4:2b83:f4a3 with SMTP id b6-20020a196706000000b004f42b83f4a3mr3564114lfc.51.1686561885364; Mon, 12 Jun 2023 02:24:45 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:a222:bbe9:c688:33ae]) by smtp.gmail.com with ESMTPSA id p14-20020a7bcc8e000000b003f727764b10sm10892044wma.4.2023.06.12.02.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 02:24:44 -0700 (PDT) From: Bartosz Golaszewski To: 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 Cc: 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: [PATCH 13/26] net: stmmac: dwmac-qcom-ethqos: make the rgmii clock optional Date: Mon, 12 Jun 2023 11:23:42 +0200 Message-Id: <20230612092355.87937-14-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230612092355.87937-1-brgl@bgdev.pl> References: <20230612092355.87937-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 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"); if (IS_ERR(ethqos->rgmii_clk)) { ret = PTR_ERR(ethqos->rgmii_clk); goto out_config_dt; -- 2.39.2