From patchwork Mon Aug 17 15:15:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 247840 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp2857289ilo; Mon, 17 Aug 2020 11:19:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUaO8iYt1kvSV5rxcFcE2rKQUfT//pclvXQdEnwuqbpR81J2H7tZ5jVBObamxPZUee6Wk6 X-Received: by 2002:aa7:c251:: with SMTP id y17mr16467679edo.13.1597688357562; Mon, 17 Aug 2020 11:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597688357; cv=none; d=google.com; s=arc-20160816; b=AxKNVT30cd+7Kec3TXIPt4z3xk7Mr8eE0UoPSXiNzTDWhAHcxiZCUpDoE1E4U83uGT jwlRenUVPpSPvzBfTllXbla1/cQUBbpqY9H9c090UkkGj/zCUtQGuQko8/WJkg58Zd0l uyHDWrBwcHkJ9HAumqAoE0uXZn10/jef0CqS6wTkv75PKxVFI5gF7rBe9dCgbcay8NFs WKC7lbic+vUIrypkAysZG2EAZvTv5s+NuYFW6JhXXMMSjSnRX22KjZYXbFSqDEI/ZTM0 BDvd038bv1vcKp4ErPJF4/ZjxSfMCothRgSYxA0dm1n1u/CqbGl8NsqlHMPISUyir97N w1oA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Jv7dX44qOppSZegAYsxL8TVVVKLTZXW+AxDqFxNe4g8=; b=KPRNBHvWQK/vLpfeTU3cOfsX3o/U0ncMxtKVgOiDDZCLWnP3lyAljauvf0oxMOu2TY bD/9KL2np8xsXbnZM4cfMr+Z5XTJgPFLrtsFbJkZ0qiBlQ7DXVyQwjFvmiNU2HFbfvQD uH85MiRAPQ2tmLXdQQhc8NdfHfM2HK47o5sjnx+u7b8c31MxkZxUsVWkCKmVqYyzM5Lf 6fMxypNGnLcMH+UAhvEjPujwnuU07ctcP7C1ZDTDa4ARdzvTxvBRUWd4iWGQgZBSVCQM TfCeRWOINeLBVDRvaTxeRRNn8XkIOUVKAQD4hD29LYFeMzLu86RYaEaD7jqsuXvAFA/8 srCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l0KaKpZe; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si11476069edt.483.2020.08.17.11.19.17; Mon, 17 Aug 2020 11:19:17 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l0KaKpZe; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388363AbgHQSTN (ORCPT + 15 others); Mon, 17 Aug 2020 14:19:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:53232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388360AbgHQQFY (ORCPT ); Mon, 17 Aug 2020 12:05:24 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6002C20866; Mon, 17 Aug 2020 16:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680309; bh=xQk7ht4cPTsZR/FeIbsKIFsxjiGGKtE9EyT6lV99ffo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l0KaKpZeBt/Upc8oTLVf16Oaw+Taut3fYWaX9Q8kyD+51g7SZI9Id8iAcg5t1gfE+ F0LyzptRv9ABQCPTuOapadr/OCcsaiBt0LwHO32Fx1du9+M0Wb4oSN0bf5+Nx2KZ/N 2oz9u/VFT/KBkWtlGqPOFcwYVoAtHm6c68WQsfM0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Szyprowski , Krzysztof Kozlowski , Vinod Koul , Sasha Levin Subject: [PATCH 5.4 136/270] phy: exynos5-usbdrd: Calibrating makes sense only for USB2.0 PHY Date: Mon, 17 Aug 2020 17:15:37 +0200 Message-Id: <20200817143802.566585947@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Marek Szyprowski [ Upstream commit dcbabfeb17c3c2fdb6bc92a3031ecd37df1834a8 ] PHY calibration is needed only for USB2.0 (UTMI) PHY, so skip calling calibration code when phy_calibrate() is called for USB3.0 (PIPE3) PHY. Fixes: d8c80bb3b55b ("phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800") Signed-off-by: Marek Szyprowski Acked-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20200708133800.3336-1-m.szyprowski@samsung.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index e510732afb8b0..7f6279fb4f8fa 100644 --- a/drivers/phy/samsung/phy-exynos5-usbdrd.c +++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c @@ -714,7 +714,9 @@ static int exynos5_usbdrd_phy_calibrate(struct phy *phy) struct phy_usb_instance *inst = phy_get_drvdata(phy); struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); - return exynos5420_usbdrd_phy_calibrate(phy_drd); + if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI) + return exynos5420_usbdrd_phy_calibrate(phy_drd); + return 0; } static const struct phy_ops exynos5_usbdrd_phy_ops = {