From patchwork Fri Dec 13 08:31:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 181530 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp334556ile; Fri, 13 Dec 2019 00:32:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwFzaqNS7emdufPEmn4j7SWPmU9BAPLEzwucmPGaBfP9CGrXgNmZjq53REJG9QRfxLHIGuR X-Received: by 2002:a05:6830:1d6e:: with SMTP id l14mr13343121oti.32.1576225932342; Fri, 13 Dec 2019 00:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576225932; cv=none; d=google.com; s=arc-20160816; b=dmloZ1KgUhPQZeMZcyK4djSQj1IFCysWUijCLd1kLlyt/Z/eiO4PHt3C8SwlJbxV67 JdByjB/qwtdo10Jxz8eoAPpqavq1nAFqYn9QVE+TxEEGNrCJ6V0a3TxAe+Cx9Xq9EUtp rQnlsFj/E/EmRC9LsPRSr80wOvFZB1E4vb7FZn+/AEoDFgrGnzL6ySZsKDACgL7poKE2 ty8wUQ5Ha7kLwAwXE1DM78XiaOBU/WqCGSz6u+Mh+K+fJ+lXazAFSZgz/eMQ34WV3wcK 7ZvmY4AFMGXqYbnLnzm1oetTqGINoKngUknvIWZcuyqDbiCPFK8vcYVTtdzrSukbSe3c rN5Q== 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=Uubhy7cYoS1U4kcqo9oFNdfgJEsQhUduKd26g1uMA0tpk25dlFX1C8lxtGO3x/jlir Pd61hKShJkfruUyywWr7XL6mEvOWFqIjnIg6scnwOhAUEmdhbkL5f6fGD0jbit0yKcKp t9xInpiop22fA4oZxhCizkeNS8u9Fvpgx8fkR5ygaSPFY9nn1XwpsKhLbBO8ENzBtt85 a0zR/cLrz4S6mOaqRMqzhZkryR25cdIb7hr/YunEdSz3u+msivMj+McLZA9yzwtdyGB2 JrTpA/+8z9+2tB+Y+2WvqVkoAEiWs1Fv3IGDUSLWAYcSD7/oYumv2hHZ8oAT+7HsuRlI 5MhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CFh7cVkn; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 e6si4397463otq.217.2019.12.13.00.32.12; Fri, 13 Dec 2019 00:32:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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=CFh7cVkn; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S1725818AbfLMIcL (ORCPT + 3 others); Fri, 13 Dec 2019 03:32:11 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:35352 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbfLMIcL (ORCPT ); Fri, 13 Dec 2019 03:32:11 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20191213083209euoutp01550fbe80ca4fc68de314f0ce649a693e~f4SHAmmk41875618756euoutp01J for ; Fri, 13 Dec 2019 08:32:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20191213083209euoutp01550fbe80ca4fc68de314f0ce649a693e~f4SHAmmk41875618756euoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1576225929; bh=Spljwi04NPz7tPwQDU3ylhpMAcBmPOyA+LcLqOe48yU=; h=From:To:Cc:Subject:Date:References:From; b=CFh7cVkn8C7UgZgkd8Mhj8lJeObDUOgbuwvO13Mc4Dq6KwMpTgONXh0iz5fwwCw/N lpnA1vN0169VrQDnEWgVB/E/T+UdST7BfA+QpdOWqCxtRxEQy3MKdaClbr4wq1G2de F7nrrZ9kQA4SNLeIX4GSh/2zwisAN/wZdJopGlVg= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20191213083209eucas1p1754396da771e6006222b489b7f663df6~f4SGzosdc2297822978eucas1p1M; Fri, 13 Dec 2019 08:32:09 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 53.9F.60698.98C43FD5; Fri, 13 Dec 2019 08:32:09 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20191213083209eucas1p1459831639297fc7c37089c8fef4e0248~f4SGfdDBv2219322193eucas1p12; Fri, 13 Dec 2019 08:32:09 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20191213083209eusmtrp2a21176fad3e597e08b9d3a284aa1ea80~f4SGetkis0540405404eusmtrp2e; Fri, 13 Dec 2019 08:32:09 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-cb-5df34c89d862 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id A9.4C.08375.98C43FD5; Fri, 13 Dec 2019 08:32:09 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191213083208eusmtip145e8ae9917b0302b6157455e10ed1be2~f4SGEA3wv1805818058eusmtip1S; Fri, 13 Dec 2019 08:32:08 +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 RESEND] phy: exynos5-usbdrd: Calibrating makes sense only for USB2.0 PHY Date: Fri, 13 Dec 2019 09:31:57 +0100 Message-Id: <20191213083157.9220-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBIsWRmVeSWpSXmKPExsWy7djP87qdPp9jDb7vkbLYOGM9q8WFpz1s FufPb2C3uLxrDpvFjPP7mCwWLWtltlh75C67A7vHplWdbB59W1Yxehy/sZ3J4/MmuQCWKC6b lNSczLLUIn27BK6MS+d/Mxbs5Kh4dvM7WwPjCvYuRk4OCQETifWf57J1MXJxCAmsYJS49GgK lPOFUWL9y6fMEM5nRonmgwuZuhg5wFpuLfeHiC9nlJix+TQTyCiwjg0r00BsNgFDia63XWwg toiAg8SSpXfApjILXGOUeN74CqxBWCBKYvmP5WBFLAKqEisvfAFbwCtgI7HsRQXEefISqzcc ADtCQuAym8T6noMsEAkXiTM3P7FB2MISr45vgfpHRuL/zvlMEA3NjBIPz61lh3B6GCUuN81g hKiyljh8/CIryDZmAU2J9bv0IT5zlNj9xQXC5JO48VYQpJgZyJy0bTozRJhXoqNNCGKGmsSs 4+vgth68cIkZwvaQ2HSnnw0SJLESd28+ZJ/AKDcLYdUCRsZVjOKppcW56anFxnmp5XrFibnF p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b9ubtvk08031Hdwa7XtZ73TfTA3wdDsZ//L5rDF7POVWIozEg21mIuKEwHIYGwwUgIA AA== X-CMS-MailID: 20191213083209eucas1p1459831639297fc7c37089c8fef4e0248 X-Msg-Generator: CA X-RootMTR: 20191213083209eucas1p1459831639297fc7c37089c8fef4e0248 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191213083209eucas1p1459831639297fc7c37089c8fef4e0248 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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 = {