From patchwork Fri Jul 19 09:27:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 169235 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3599564ilk; Fri, 19 Jul 2019 02:27:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqycJr1nnxPxegvG4ODXaBJmRlBu5iZyQFqoTtZOwHmwx0yeDWxzfqvFgZPr3R+JD346mrqM X-Received: by 2002:a65:52c5:: with SMTP id z5mr38810331pgp.118.1563528472196; Fri, 19 Jul 2019 02:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563528472; cv=none; d=google.com; s=arc-20160816; b=wDWhmbtpNju2Y20oqMaGgmtmhK6E1FZbtF87SHV5smV57kmHC451xpgmsaP+ihiaNz QSyzRvVjTGNTFY31mfLLqyCDwgyIB+ig7NYQRLVwYup1sVRhjG3vwIJB1kvFUQyInV4c soE/hvxWaV4l+s8Hf1zLVn9CPwD9B9nSRM73+JOtLqBkwiT2r+iyKorrRmVaXmUBCZFU m4x4GrgicGQSt14Rn3dBCwSJgw6udKgyOHlEMqaGX3Cs6Abxg/+LenQdSnRKjUG64dsm VGKGN75SF3v1BLHe7uuCkLfY4r66hjuthqzxuAkGcMuiaBJAL8f4IFzFniMLNtdEWRv9 THqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=Spljwi04NPz7tPwQDU3ylhpMAcBmPOyA+LcLqOe48yU=; b=BbSl6MoOAIihAnLMAYsFkToxCb+c28CD0ZlF/6KEao6CLjTHI2AHz62QycmhoS1WDM K8Tt2i5kLn+1lVGr1JZg5Aa+qXw2DokAC6DAaiJLRa+Rz8kxFkjbav2Lbs5/er0MJE3r Qt0dvrk5c9bNBDWjUVTf45Vkgp5KUk76bfdvkuLoUMrXttba716nmpW9xf4QtAe9SFiQ ALLe1YsQ3PszPOBiX9mgPsIhyCr6eJBZs+hg/U5DUWatZGdTVYY0aszdipFPQqO7C7X/ FZlvuikwJF9UWWjcSCE1VgtJaCMAGnJoFtytfXz5bdwPwdkHCkOv0aIYWG8MoW9aBUWm 10kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fC9BomUp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x25si1565882pfn.13.2019.07.19.02.27.51; Fri, 19 Jul 2019 02:27:52 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fC9BomUp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727070AbfGSJ1r (ORCPT + 29 others); Fri, 19 Jul 2019 05:27:47 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:60222 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbfGSJ1r (ORCPT ); Fri, 19 Jul 2019 05:27:47 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190719092745euoutp01d8bd3316b2f0f60cb131419a51bccfb0~yxNscCkjq0044900449euoutp01B for ; Fri, 19 Jul 2019 09:27:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190719092745euoutp01d8bd3316b2f0f60cb131419a51bccfb0~yxNscCkjq0044900449euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563528466; bh=Spljwi04NPz7tPwQDU3ylhpMAcBmPOyA+LcLqOe48yU=; h=From:To:Cc:Subject:Date:References:From; b=fC9BomUpsql2COyJ6gc4WDI6fHvJC+/hdyejnXPtXym/Mf8NBhFzk95rsRaQRuSdc KWcWgDc/xOQnP4nkP1j5stZ8RYhe8oHkP8LQNIKM2s8Rx84qNcBpV9GA3fkf/EQJTr EOMjJ2L131jySWjtf0lxGx8bKyFDI3ZqYYTGaaL4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190719092745eucas1p2d63ead0ad0ba74f60f0fefac910e87ea~yxNsEYFit0571605716eucas1p2M; Fri, 19 Jul 2019 09:27:45 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 7D.1D.04325.11D813D5; Fri, 19 Jul 2019 10:27:45 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190719092744eucas1p24f1b497e46cf66ac3ae8c717b626a5d4~yxNrQ3dVU0485504855eucas1p2a; Fri, 19 Jul 2019 09:27:44 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190719092744eusmtrp1d31cf3cd69253e47b48dfc82134eb1af~yxNrC0zDS1975419754eusmtrp1S; Fri, 19 Jul 2019 09:27:44 +0000 (GMT) X-AuditID: cbfec7f5-b75ff700000010e5-9f-5d318d1196c9 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 6C.01.04140.01D813D5; Fri, 19 Jul 2019 10:27:44 +0100 (BST) Received: from AMDC2765.DIGITAL.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190719092744eusmtip243b0f5902555ec37e058b710f169bcc7~yxNqp7hk01330413304eusmtip2b; Fri, 19 Jul 2019 09:27:44 +0000 (GMT) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Subject: [PATCH] phy: exynos5-usbdrd: Calibrating makes sense only for USB2.0 PHY Date: Fri, 19 Jul 2019 11:27:34 +0200 Message-Id: <20190719092734.12501-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNIsWRmVeSWpSXmKPExsWy7djP87qCvYaxBlP+ilhsnLGe1eLC0x42 i/PnN7BbXN41h81ixvl9TBaLlrUyW6w9cpfdgd1j06pONo++LasYPY7f2M7k8XmTXABLFJdN SmpOZllqkb5dAlfGpfO/GQt2clQ8u/mdrYFxBXsXIyeHhICJxOJdPaxdjFwcQgIrGCXmfjnN COF8YZToW30fyvnMKPF+52W4lrXdm9kgEssZJW6unMsM1/Jm6gZGkCo2AUOJrrddbCC2iICD xJKld8A6mAWuMUo8b3zFBJIQFgiWuP/zJFgRi4CqRFPvL6AVHBy8ArYSW7r8IbbJS6zecABs gYTAGTaJ3r+noc5wkbh2cBcbhC0s8er4Fqi4jMTpyT0sEA3NjBIPz61lh3B6GCUuN81ghKiy ljh8/CIryDZmAU2J9bv0IcKOEq1tN8HCEgJ8EjfeCoKEmYHMSdumM0OEeSU62oQgqtUkZh1f B7f24IVLzBC2h8SPlmlgLwoJxEoc3b6KfQKj3CyEXQsYGVcxiqeWFuempxYb56WW6xUn5haX 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//4 TdP+K1nfG9OVeP1faVXnq0XzJgnyb93ie1HJrcVQzTNXiaU4I9FQi7moOBEAdHBeY1MCAAA= X-CMS-MailID: 20190719092744eucas1p24f1b497e46cf66ac3ae8c717b626a5d4 X-Msg-Generator: CA X-RootMTR: 20190719092744eucas1p24f1b497e46cf66ac3ae8c717b626a5d4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190719092744eucas1p24f1b497e46cf66ac3ae8c717b626a5d4 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/phy/samsung/phy-exynos5-usbdrd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c index 646259bee909..f07edd80d2f3 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 = {