Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp391245iob; Thu, 28 Apr 2022 04:57:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz71j7f/by8KjJXHhHPuLmmEcL1BW/VIUvExrDoJurlyBLsn0UWBK3/OleBlZkKGO+55AT2 X-Received: by 2002:a05:6402:2995:b0:425:d3a1:28aa with SMTP id eq21-20020a056402299500b00425d3a128aamr28465608edb.247.1651147064184; Thu, 28 Apr 2022 04:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651147064; cv=none; d=google.com; s=arc-20160816; b=MCRDE59M8zg9N01M3DKzPuVCgjwPesubOvlFCGMQNFq9BvHsspMJzjdSgBZGYhLzd/ pPulaRJJrItNd3H/TiQTk/tvWESXnhcI3/71Y/CgsIXFk/j93N5A4YsXIH1hxZI32dye O1OREWoSQrHM36dzpan+7s5gOV+3bd1v3wAUxwbXZyZYKz6IJCzOf5D2Tar/Jiw5nNgS dzLo2YiKBCRXePrFTA4DQ2oP6xUuQmal6QBs2mIcaeDZR5CYQmW0uUMoMwPdT39M0eM5 +JVdArxsfdvW7/a7YwhJe8gC44hhOvEIUEJxeWyvMph8Y7tf49lwEPK00IxFX35FnGOy /Wkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=+4d4mHAPiQ/HPsSCefdFsDeqFsE+rekNTeR5hC/sqYo=; b=w3cCNtyfZNmc8HG7kSMxIWa5Za+FoZo9VOJVVRst35fPcsIfUIbd1kXT+yC80Zk4yq ZsVgxpcalW/+/VV2344md9I27SejtgMHmlJce/TGQBAxzgyf8ORvK7XfnRR411ixj1tJ W/X+yg/7NKfxn9AsL+wafpssOvmDRCmhRnU6t9kM8JF9hhpMaFa3IQc8VD/UNNDSaQ9O k2JXZz/4yPqWgjnJDN3GxtcVtdMHaNalKTZsw+z2JYz5IQRSlgl3lE12d5Ezk48AAJoW WyBBprubSkjARRhVNlNEXIRNEjuiS/XSas4Rw99NMl4XFe1t3A3Es6bi/lRyKhc1CUt4 VzIQ== ARC-Authentication-Results: i=1; mx.google.com; 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 s10-20020aa7c54a000000b00423f6b13d94si3824428edr.565.2022.04.28.04.57.20; Thu, 28 Apr 2022 04:57: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; 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 S245622AbiD1Hlv convert rfc822-to-8bit (ORCPT + 99 others); Thu, 28 Apr 2022 03:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245623AbiD1Hlu (ORCPT ); Thu, 28 Apr 2022 03:41:50 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD6F49D05D for ; Thu, 28 Apr 2022 00:38:36 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njyjA-0002DT-UD; Thu, 28 Apr 2022 09:38:16 +0200 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1njyjA-005iCB-4B; Thu, 28 Apr 2022 09:38:14 +0200 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1njyj7-0002Na-Pf; Thu, 28 Apr 2022 09:38:13 +0200 Message-ID: Subject: Re: [RFC/RFT v2 04/11] phy: rockchip: Support PCIe v3 From: Philipp Zabel To: Frank Wunderlich , linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Kishon Vijay Abraham I , Vinod Koul , Lorenzo Pieralisi , Krzysztof =?UTF-8?Q?Wilczy=C5=84ski?= , Johan Jonker , Peter Geis , Michael Riesch , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Date: Thu, 28 Apr 2022 09:38:13 +0200 In-Reply-To: <20220426132139.26761-5-linux@fw-web.de> References: <20220426132139.26761-1-linux@fw-web.de> <20220426132139.26761-5-linux@fw-web.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Hi Frank, On Di, 2022-04-26 at 15:21 +0200, Frank Wunderlich wrote: > + priv->p30phy = devm_reset_control_get_exclusive(dev, "phy"); > + if (IS_ERR(priv->p30phy)) { > + dev_warn(dev, "no phy reset control specified\n"); > + priv->p30phy = NULL; > + } Please use devm_reset_control_get_optional_exclusive() [1] instead, which already returns NULL if no reset control is specified, and return on errors. [1] https://docs.kernel.org/driver-api/reset.html#c.devm_reset_control_get_optional_exclusive regards Philipp