Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp562015ybe; Wed, 4 Sep 2019 04:23:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD/11EhANrWBxjOf2yB9VwUqz5qdyb5MB3SmDlaEKDZfNGOcJaWobtUfE5rr+m9Uux3Yrx X-Received: by 2002:a63:db47:: with SMTP id x7mr34689114pgi.375.1567596214523; Wed, 04 Sep 2019 04:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567596214; cv=none; d=google.com; s=arc-20160816; b=pU2ypj7dSvrPgczxxAo5s6Nw89smGjshldwmnlStzurAg9F2fIljC4N9cWrY4cNqV/ tmNZKrKUkzmcaV1PADqUTRmktVhHu8reD6bmFhkcdSS301dF175o6VD4ek60fbAs7k/P AQJYH82Pc7mxVmipfmCcBqxSk4WWRz0IN7qenoBFwS+jbk9f8W2O3ZzyGJSQA6Sl/h9P 3s7aOf3fi0Zes3c9+4lnn1kuySyMaAzD8AjAXOplZndA3emXP6fhQ1b0fnFvLVGa5qdL BP7q76KOUWQUaqna6mvfiPk9N6za572vwprA/CS8gZwcAROa+XIw1sxDoFZG0PN4d3+G YoAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=i4iI17hEARUwk0KGhZsFjAvhOu3h1FA5MaM/aXTwH9I=; b=TrIAS+iEPNtC1llLjd1a2TKxp+n8bg/F38HNxdKkidD7HGfM5+sU0JionEgYmYGX+C yaf0/zuDHdtTO9Zh/qtAzDPnh4s5hOSurzpDXzDCsHAJf1cSJZOq54q5yKZDkLN/9Ciq Pe/7rWtemUQ7mGSDW8+LHXRY7wId99Gnx8maRuA4dxG3hDAjmAcaWohmE+rvsv16GEVE h/5MSoxIWa9N6s+XExtJ7NO4cSQyDIOcC1sSx/lnpInivpwckW7Atid3q7GZETf3qepe hVFuftW95dFBaPRIaSx9jp9EQD4vPUd5hgpApl16f81xpWInRyUddJ3gNZi6IrBZi6Qm 40OA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k75si2059833pjb.24.2019.09.04.04.23.18; Wed, 04 Sep 2019 04:23:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729423AbfIDLWa (ORCPT + 99 others); Wed, 4 Sep 2019 07:22:30 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:44788 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725840AbfIDLWa (ORCPT ); Wed, 4 Sep 2019 07:22:30 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DCEC4D621ABD64051DD3; Wed, 4 Sep 2019 19:22:27 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Wed, 4 Sep 2019 19:22:17 +0800 From: Wei Yongjun To: Kishon Vijay Abraham I , Martin Blumenstingl CC: Wei Yongjun , , Subject: [PATCH -next] phy: lantiq: vrx200-pcie: fix error return code in ltq_vrx200_pcie_phy_power_on() Date: Wed, 4 Sep 2019 11:40:14 +0000 Message-ID: <20190904114014.124099-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: e52a632195bf ("phy: lantiq: vrx200-pcie: add a driver for the Lantiq VRX200 PCIe PHY") Signed-off-by: Wei Yongjun --- drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c b/drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c index 544d64a84cc0..6e457967653e 100644 --- a/drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c +++ b/drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c @@ -323,7 +323,8 @@ static int ltq_vrx200_pcie_phy_power_on(struct phy *phy) goto err_disable_pdi_clk; /* Check if we are in "startup ready" status */ - if (ltq_vrx200_pcie_phy_wait_for_pll(phy) != 0) + ret = ltq_vrx200_pcie_phy_wait_for_pll(phy); + if (ret) goto err_disable_phy_clk; ltq_vrx200_pcie_phy_apply_workarounds(phy);