From patchwork Mon Aug 17 15:14:06 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: 247856 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp2883066ilo; Mon, 17 Aug 2020 11:58:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypKDI2bB0U4l77b+g6RmcqynN0m/s4LowVUC1OtdtBAJ2EqOlYRUSKkAFPpm89HSgdu9HS X-Received: by 2002:aa7:c383:: with SMTP id k3mr15869551edq.164.1597690695174; Mon, 17 Aug 2020 11:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597690695; cv=none; d=google.com; s=arc-20160816; b=wCkwAf04Wxsf9fgEQAyOWArYKnbyk8et+wObeR/VxwtbeH02z4gziBA+v6PON3TgJM azGF4gCNB5fRSNDsw91/bvLyFcOGIHmq6MmOMOX/VCr4jXwTtzrkSQrGUcfGF2pV8KiO +UjnkryBe51cQcHPvxWp2IY7n17i+sRV5nRdgTZvzjt+jW0Ws+SrWVzk+Bu1ZmVhHrSB HdMv6q77gjncuXsk0G0L/7151PJOOiBsl8tRnFWXqwvy030aypkyPGCWv+K6edFHtZQ1 UHsJF0SYpz0i8N8DuO5YnilH/fiu9p0Oj4PBVBJRtn7ZafWyAsjYqoAGkKacOaWgZCiy yWXA== 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=R9LE2cESAhKPCYvSFgWz0xkxelDjV7qQeOftQzXIzWCUpwW2DlQNNoS8wvojQH/gtp GhzDocvjPwnRU9rJnqE4TuRzOhepGwsdqUcOumZPBapqLN2v/fmjc4iGNv4miUSCP9qG G7V9JxjrhiC+wB0I6TM1JAo2b7g346sfAAx2/0NSS6BwdDXtJb8ughZ4dRg3AyARPjtB l88KRJT40YBtMsbgFctSTWKgTcXYrefGHb86cn7/PmxqChAgs+3Jr2vT6lM/bK0vUs4f xIs68ry/CfO6zku/GtMb++BbIa0tqaE9MvhN/gXhjy8rGENzu+XUISpyWV4ej0GnBGy6 jBag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K+2A4yx9; 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 m7si11928682edq.314.2020.08.17.11.58.15; Mon, 17 Aug 2020 11:58:15 -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=K+2A4yx9; 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 S2387789AbgHQS6O (ORCPT + 15 others); Mon, 17 Aug 2020 14:58:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:34418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730638AbgHQPuG (ORCPT ); Mon, 17 Aug 2020 11:50:06 -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 F0C15221E2; Mon, 17 Aug 2020 15:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597679392; bh=xQk7ht4cPTsZR/FeIbsKIFsxjiGGKtE9EyT6lV99ffo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K+2A4yx9JerKY+Z6X1n4a5Fv4kKfyPEOHUWu+JIJuMhjraUa+jBKtz/8CxXPIFFcs 5Nbk1RALYFvH0YtBI2p7HToRI5cGbayiCsFu53NYKMNqtXmXu0+puML4m57/YFD5iq iPRqDybqezs7gdP1rlvMbP4a073RmAiyux1eQ/nA= 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.7 196/393] phy: exynos5-usbdrd: Calibrating makes sense only for USB2.0 PHY Date: Mon, 17 Aug 2020 17:14:06 +0200 Message-Id: <20200817143829.131410373@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143819.579311991@linuxfoundation.org> References: <20200817143819.579311991@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 = {