From patchwork Wed Jul 8 13:38:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 235110 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp390821ecp; Wed, 8 Jul 2020 06:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWf39ft6T24cUeH0wu+ZyM2FCwiIKp3mdf3QugYWqt45Wwc9BIfBLek8hqbYe2++VzDkHN X-Received: by 2002:aa7:d7cf:: with SMTP id e15mr67672085eds.236.1594215495277; Wed, 08 Jul 2020 06:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594215495; cv=none; d=google.com; s=arc-20160816; b=QJje2OCV3XsMVPycuF3vwUyFx66jWUEya54iCjZ/W051oGKp6bE1P6nIaiwSS/Tfux xsby2VBFRXsXziADFlw3YKJT5wDWpwE7y3nfdgUx2evcNOHUhYk5keZJy0AJsQWqoNjU 3S3ubxgZG1JMLZhgG280exr0KwxErQ0WHo6XJDNycfr8NNvCyB5rnu8mkAcJM/b3W7Ye 7iLAeUTbShQSGzX7zLP+jdi27KjlLVlkF6aId5osCDD+l58D3Tklw8+7hIQXcOrcx53/ hsqRp70XNECRwk6OGNfg1KToc8KevLoGQXIYqASnPt5StLVgwcrjXJyqVW4hilkZwXZv TL0w== 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=eQDY9CGbuvaTQ4uUTAgTfaClnpavyOgBmG3i8DJEnXun7Wa1gMaJEzxljqS2Z0tUJ3 Awzkd66heQMvFuJBkDCeGTU+ny3eSAVoAPidf20dKV/bQeKPSyPXTgWjJ9ItBvF4M000 KZ5EYoTY6TosbQFNMByfwbm3e4Jreo2k6S+1xnVdkQGRDJOqYHaEyvJ/fi/27CVvTSYq VW0IjzleKeyhdi+np0n5mcb7ZZ/xnsvqhG+63uAQ8qAGv2LXc6zsY7mqc1sol4Jx2qFB VPSDMpTOiocB+W7tmMHRwW8V9TvVjJcS6X7mM7l2fNgj+QXsYEZLr1W7Rz/R2U309srX 23Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Vj7XMOqi; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l2si11023edk.332.2020.07.08.06.38.15; Wed, 08 Jul 2020 06:38:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-samsung-soc-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=@samsung.com header.s=mail20170921 header.b=Vj7XMOqi; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 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 S1729136AbgGHNiO (ORCPT + 3 others); Wed, 8 Jul 2020 09:38:14 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49093 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729720AbgGHNiO (ORCPT ); Wed, 8 Jul 2020 09:38:14 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200708133812euoutp029cc248df43d5c2c073360b088d477467~fyos0f7vd0741107411euoutp02f for ; Wed, 8 Jul 2020 13:38:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200708133812euoutp029cc248df43d5c2c073360b088d477467~fyos0f7vd0741107411euoutp02f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594215492; bh=Spljwi04NPz7tPwQDU3ylhpMAcBmPOyA+LcLqOe48yU=; h=From:To:Cc:Subject:Date:References:From; b=Vj7XMOqi0NxcchXdWTsCeHfGhTFBmBTugLzD6EPfrdpDsIPUI6hYbucJf+auRAzZr 2BlktYAI0O6akoR0FElXVBLbjy27eFFloXED8TIVvnH+inQkdppZpYNU3EwzHKVHVt IuxCtttYJ3dUFKDV26BF/QZ1PSdV8gMZ7tDKvjyY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200708133811eucas1p23859cf25cecf8fe7eac4bc597e5354ed~fyosfTTEW0379703797eucas1p2L; Wed, 8 Jul 2020 13:38:11 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 22.86.06456.34CC50F5; Wed, 8 Jul 2020 14:38:11 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200708133811eucas1p1df7b92d7e0ba512c5a7ecdb948edbfcf~fyor-LiDI1425514255eucas1p1N; Wed, 8 Jul 2020 13:38:11 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200708133811eusmtrp1e04dd234da5007c86c0c63bcdfd07b28~fyor_lDj93178831788eusmtrp1v; Wed, 8 Jul 2020 13:38:11 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-55-5f05cc436e60 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F1.36.06314.34CC50F5; Wed, 8 Jul 2020 14:38:11 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200708133810eusmtip182b79244efc0f0790829ab647ea4e761~fyorgZg7g1357913579eusmtip1d; Wed, 8 Jul 2020 13:38:10 +0000 (GMT) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Vinod Koul , 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: Wed, 8 Jul 2020 15:38:00 +0200 Message-Id: <20200708133800.3336-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPIsWRmVeSWpSXmKPExsWy7djP87rOZ1jjDSbONLTYOGM9q8WFpz1s FufPb2C3uLxrDpvFjPP7mCwWLWtltlh75C67xc47J5gdODw2repk8+jbsorR4/iN7UwenzfJ BbBEcdmkpOZklqUW6dslcGVcOv+bsWAnR8Wzm9/ZGhhXsHcxcnJICJhIXDzQwdjFyMUhJLCC UWLezwY2kISQwBdGiW+LXSASnxkljk+ZAJTgAOu4/jYIIr6cUWLSoXMsEA5Qw48n01hAutkE DCW63naBTRIRcJBYsvQOG0gRs8B3RonuzgtMIAlhgSiJ5T+WgxWxCKhKzP1wkBHE5hWwkfjV c4IZ4j55idUbDjCDNEsI3GaTuPvpECtEwkXi1rGnLBC2sMSr41ugHpKROD25hwWioZlR4uG5 tewQTg+jxOWmGYwQVdYSd879AnuIWUBTYv0ufYiwo8SBKUsYIf7kk7jxVhAkzAxkTto2nRki zCvR0SYEUa0mMev4Ori1By9cgrrZQ+J52y1GSDDGSuy/+ZR5AqPcLIRdCxgZVzGKp5YW56an FhvmpZbrFSfmFpfmpesl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24al9zYrfr/kWsmxbc8pTZumJBqO0DLmEx5jDt8rP/XN3OLYhRYinOSDTUYi4qTgQA atmfnlcCAAA= X-CMS-MailID: 20200708133811eucas1p1df7b92d7e0ba512c5a7ecdb948edbfcf X-Msg-Generator: CA X-RootMTR: 20200708133811eucas1p1df7b92d7e0ba512c5a7ecdb948edbfcf X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200708133811eucas1p1df7b92d7e0ba512c5a7ecdb948edbfcf 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 Acked-by: Krzysztof Kozlowski 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 = {