From patchwork Mon Aug 17 15:12:57 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: 247869 Delivered-To: patch@linaro.org Received: by 2002:a54:3b12:0:0:0:0:0 with SMTP id j18csp2590751ect; Mon, 17 Aug 2020 12:34:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwz8BN7rFGJIKFORU2jgLHoJZtdhnspCEmPW6dfNQMrgYrPWBAqHjshuuN4kJBm8LI1GO3m X-Received: by 2002:a17:906:6bc9:: with SMTP id t9mr16128861ejs.372.1597692863098; Mon, 17 Aug 2020 12:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597692863; cv=none; d=google.com; s=arc-20160816; b=xks+xRQwlN3DTZ8ampw+dPACiyKwonn9m1GfH0nIJSmq7ka4WzSwwZUNarN4H/MMS4 lsQprHn8FpKnfy796n6cIojWglDdIx7m6pEuJC8B+VCjqn7pmzuv/CTtMUctEJB8Wvjl qmwtX21fOe4XvtxD3Ycdj8NTNy36WpijaxYMW7WDLXmESvi2jlFcppdcXpfxe6K0H2pz J7rhWxn+rs4KrHsZ7a9zApW6YSO40EjtVmjXu435roMDebBjesU79Cn+4oDnc077fxAL ZQafmVJ65/PyaljplWGsv3Ws9mMLx8XxKHbkNx53V8HdsbPvt4/I9MtJ3V6cvEwzR5Ya z6ag== 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=iy/toIX8NJd6E/6YifHLd4JaFSQUEXExnHlX+MCQmvw4kFTlIiy57uLyKPrYwl2sZ5 8scqPCK9twIPW082ezvIVoRWVU7fBaEIsUVJw9UZNPkKEW0uhnl/3OSCvQT8/FKe+G8K RUevnWH2EoEGIIbk/4H810D4ecqXAVea+3KjM9xKgCk29fbqOM2xsrQUkqeTI4LydneT iiUG8+pY/an/Px+M8qU6P/e6D23e65D4K3+Bvg0PGwQNWk/5ZvQ11/7E+0HVo0u2Mcvp ffSLQgwTMjMjGCMQ7WSoVc0PjIsMNIBxnowa+yQmo20HZEVCKflAL7NCBmMU0oaxxEG3 P5wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pnv6DZAR; 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 df2si11734210edb.520.2020.08.17.12.34.22; Mon, 17 Aug 2020 12:34:23 -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=pnv6DZAR; 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 S1732110AbgHQTeV (ORCPT + 15 others); Mon, 17 Aug 2020 15:34:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:50778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730165AbgHQPaI (ORCPT ); Mon, 17 Aug 2020 11:30:08 -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 A826D23C2D; Mon, 17 Aug 2020 15:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597678207; bh=xQk7ht4cPTsZR/FeIbsKIFsxjiGGKtE9EyT6lV99ffo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pnv6DZARgNwAEkmGcCE51ZZ/Gv2DEJtb/Vn9VXBFq3g9UgKzrvd5QAIl0P6wtKiH7 2QBYq0qKUUYMrt0Kq4nukztIfjqEyjbL+NaieUO72fQknsrVO0tZA/JUXKcWbitcrR m3qNTxcLomFnUiszACRsPx3UcMMGDkzggu7tmtaU= 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.8 224/464] phy: exynos5-usbdrd: Calibrating makes sense only for USB2.0 PHY Date: Mon, 17 Aug 2020 17:12:57 +0200 Message-Id: <20200817143844.527219489@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@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 = {