From patchwork Mon Sep 21 10:16:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 7229061 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 68F029F30C for ; Mon, 21 Sep 2015 10:17:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 95E5C207A6 for ; Mon, 21 Sep 2015 10:17:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DECCF207A2 for ; Mon, 21 Sep 2015 10:17:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756440AbbIUKRc (ORCPT ); Mon, 21 Sep 2015 06:17:32 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:30132 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756539AbbIUKQ0 (ORCPT ); Mon, 21 Sep 2015 06:16:26 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NV0001Y5V7B3W90@mailout3.w1.samsung.com>; Mon, 21 Sep 2015 11:16:23 +0100 (BST) X-AuditID: cbfec7f5-f794b6d000001495-21-55ffd8f634d5 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 99.C1.05269.6F8DFF55; Mon, 21 Sep 2015 11:16:22 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NV0008PPV71MDA0@eusync3.samsung.com>; Mon, 21 Sep 2015 11:16:22 +0100 (BST) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Robert Baldyga , John Youn , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v3 3/4] usb: dwc2: fix unbalanced phy control Date: Mon, 21 Sep 2015 12:16:11 +0200 Message-id: <1442830572-6765-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1442830572-6765-1-git-send-email-m.szyprowski@samsung.com> References: <1442830572-6765-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplluLIzCtJLcpLzFFi42I5/e/4Vd1vN/6HGnxYbmOxccZ6Vovdpy8x Wrx+YWhxedccNosZ5/cxWSxa1spssfbIXXaLB4d3sjtwePRtWcXosWX/Z0aPz5vkApijuGxS UnMyy1KL9O0SuDJeTZnDVPCbtWLatI2MDYzfWboYOTkkBEwkLveeY4OwxSQu3FsPZgsJLGWU aNgd1sXIBWQ3MUmsWf0OLMEmYCjR9bYLzBYRSJDoW97PBlLELPCUUWLii/NAUzk4hAVsJU4v KACpYRFQlTj17DEziM0r4C4x9fJyqMVyEv9frmACsTkFPCR+/74Btdhdor1vM+sERt4FjAyr GEVTS5MLipPSc430ihNzi0vz0vWS83M3MUIC6esOxqXHrA4xCnAwKvHwOgr8DxViTSwrrsw9 xCjBwawkwqszCyjEm5JYWZValB9fVJqTWnyIUZqDRUmcd+au9yFCAumJJanZqakFqUUwWSYO TqkGxtTb93PEC6/9myCmZfiQedPiSUKzFv3bzdhcZjGZp8Ws/8fRzLkCu23KjbTVPsguUDvn qm7XGvbpQSXntfqcydeslBgPTDn3q88rTeypw4Fzh07wRz26MffF7v0/JkdrXmSc9MdLREzi 2nLmj4fEhZgV7W9+tvOfdzdZ0n0bo8YdzUOv3BkMapRYijMSDbWYi4oTAcws/BIgAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Even when DWC2 is in (internal) suspended state, it should disable PHY in suspend and then enable it in resume. This patch fixes unbalanced PHY control sequence. Signed-off-by: Marek Szyprowski --- drivers/usb/dwc2/platform.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 3d1f82d..f8ab538 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -290,8 +290,6 @@ static int __maybe_unused dwc2_suspend(struct device *dev) if (dwc2_is_device_mode(dwc2)) { ret = dwc2_hsotg_suspend(dwc2); } else { - if (dwc2->lx_state == DWC2_L0) - return 0; phy_exit(dwc2->phy); phy_power_off(dwc2->phy);