Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp429278rwb; Mon, 26 Sep 2022 22:23:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5UM+eW+Oo4CUfZGwBVWdrFCqAdaubrfegspakeexalA2RjlEnYn3citcqy9cNzjIdmGBHU X-Received: by 2002:a65:694b:0:b0:43b:f03d:32b0 with SMTP id w11-20020a65694b000000b0043bf03d32b0mr22046773pgq.543.1664256191858; Mon, 26 Sep 2022 22:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664256191; cv=none; d=google.com; s=arc-20160816; b=rdqnYiDhtSNzinWGyv72L/3BigeRkSyQ68JFA/4sCst7nSwd+j5C21AHW392iBe6wM 2upmavmssefn/ypg99nEkE/qKcuuXEK5kLISR0XUBQb4Sx9dPz8PFThNyvz59cjq/G+i Id6rkHc8u5JHXzr0gJS8iHioJ2NSZCZd0GSAltadcpk17yv9QuAhpgElNvzhmXQS8tKJ GyNgh1rwU7itW2D6o3d6aRrFQNJJwsMQ4wgFfuMA1I+eEO0czX+7+E8pIbD0JDgJWvC8 owjoUdtC2CdWlz4dDYVKhq1VAV31pyLIojzP2yw9qBtQDaV+OzC5NEThtV9DplZcbw5y QLWg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DsO5pFYkK1Xjq0k4TZbE63CczW4L418+61sZYoyHZ0A=; b=Cju784Kzoci6YhSvI7mvdQtbwfX6OlF4zByV3NcrjmDSI4m6OlixC3SuVY4ShNLafg 3U68nSbZocN456jISTPdczuiGUX/lamkLpF0QvjzAxR915pgywr/I8Qhwgx9bECui+Ug oc1al8kVo82qt/ZH9KQqcaNAR1O/VxTQ/9zGv4Sh8QLrNuXHNZLsIrRBjMaM+TriIm4W UPut1kQsf7JOzrGwN3ADhnPffH+AV7oWM016jtj8b14Y00Vf3BhOTlB9iwqNcCmWwEJu 7MAOGA5eKXsYFiQ/tUL7JUFh32y1jLKorTN3NHs+8Euo1XrATg0Dn/hOqVq5ivXUuNZR kOqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aurel32.net header.s=202004.hall header.b=ZYWzLATh; 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 q128-20020a632a86000000b00430980f4c69si769303pgq.872.2022.09.26.22.23.00; Mon, 26 Sep 2022 22:23:11 -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=@aurel32.net header.s=202004.hall header.b=ZYWzLATh; 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 S229603AbiI0FSW (ORCPT + 99 others); Tue, 27 Sep 2022 01:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiI0FSV (ORCPT ); Tue, 27 Sep 2022 01:18:21 -0400 Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D036298C8B for ; Mon, 26 Sep 2022 22:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID: Content-Description:In-Reply-To:References:X-Debbugs-Cc; bh=DsO5pFYkK1Xjq0k4TZbE63CczW4L418+61sZYoyHZ0A=; b=ZYWzLATh11Vhw8dI5JY+sxclR4 t9mzZ7yB4GDSEwIkS6EpkRp1dG8XH9E6RPR1qkObD7rwY5M7nMrh/9NZUUMydOQ3htnDyCh4CY+xQ vYojP4GShxCLH3zwcKGfZOqqFwYALkS673E738Nvg6G6m2e2wpLBVj8636miZpxkM8qsJzaHC2vc/ m0G9MHNfjWcIs9zj3Ob0t0wSYM1o5f6devt2wg22+Wv5dCqmyjhrPkfHO59CBPweTOHhnTS6coOB2 csxR3EYrBC+BLpT3nS9ddPUFyhwsTCDLYzAYZvFHIjqFi+3DOa48992br4C/qk5EWlq8SxSvkQMWj u4LX+rJg==; Received: from [2a01:e34:ec5d:a741:8a4c:7c4e:dc4c:1787] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1od2yv-00BU7b-AK; Tue, 27 Sep 2022 07:18:09 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.96) (envelope-from ) id 1od2yu-000Doj-1P; Tue, 27 Sep 2022 07:18:08 +0200 From: Aurelien Jarno To: Kishon Vijay Abraham I , Vinod Koul , Heiko Stuebner , Shawn Lin , Frank Wunderlich , linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Rockchip SoC support), linux-rockchip@lists.infradead.org (open list:ARM/Rockchip SoC support), linux-kernel@vger.kernel.org (open list) Cc: Peter Geis , Aurelien Jarno Subject: [PATCH] phy: rockchip-snps-pcie3: only look for rockchip,pipe-grf on rk3588 Date: Tue, 27 Sep 2022 07:17:52 +0200 Message-Id: <20220927051752.53089-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE 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 The rockchip,pipe-grf property is only used on rk3588, but not on rk3568. Therefore this property is not present on rk3568 devices, leading to the following message: rockchip-snps-pcie3-phy fe8c0000.phy: failed to find rockchip,pipe_grf regmap Fix that by only looking for this property on rk3588. Fixes: 2e9bffc4f713d ("phy: rockchip: Support PCIe v3") Signed-off-by: Aurelien Jarno --- drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c index 1917edda6b47..1dc12eb8dfd3 100644 --- a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c +++ b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c @@ -257,10 +257,15 @@ static int rockchip_p3phy_probe(struct platform_device *pdev) return PTR_ERR(priv->phy_grf); } - priv->pipe_grf = syscon_regmap_lookup_by_phandle(dev->of_node, - "rockchip,pipe-grf"); - if (IS_ERR(priv->pipe_grf)) - dev_info(dev, "failed to find rockchip,pipe_grf regmap\n"); + if (of_device_is_compatible(np, "rockchip,rk3588-pcie3-phy")) { + priv->pipe_grf = + syscon_regmap_lookup_by_phandle(dev->of_node, + "rockchip,pipe-grf"); + if (IS_ERR(priv->pipe_grf)) + dev_info(dev, "failed to find rockchip,pipe_grf regmap\n"); + } else { + priv->pipe_grf = NULL; + } priv->num_lanes = of_property_read_variable_u32_array(dev->of_node, "data-lanes", priv->lanes, 2, -- 2.35.1