From patchwork Fri Aug 21 12:38:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 7051591 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6112AC05AC for ; Fri, 21 Aug 2015 12:40:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3DEA2057F for ; Fri, 21 Aug 2015 12:40:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B6BAE20624 for ; Fri, 21 Aug 2015 12:40:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753734AbbHUMkC (ORCPT ); Fri, 21 Aug 2015 08:40:02 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:19697 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753344AbbHUMjS (ORCPT ); Fri, 21 Aug 2015 08:39:18 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NTF0039HN5FRI20@mailout4.w1.samsung.com>; Fri, 21 Aug 2015 13:39:15 +0100 (BST) X-AuditID: cbfec7f4-f79c56d0000012ee-33-55d71bf31bb8 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id B9.D8.04846.3FB17D55; Fri, 21 Aug 2015 13:39:15 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NTF00L5CN50J880@eusync2.samsung.com>; Fri, 21 Aug 2015 13:39:15 +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 , Kukjin Kim Subject: [PATCH 6/7] usb: dwc2: fix unbalanced phy control Date: Fri, 21 Aug 2015 14:38:42 +0200 Message-id: <1440160723-6636-7-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1440160723-6636-1-git-send-email-m.szyprowski@samsung.com> References: <1440160723-6636-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprELMWRmVeSWpSXmKPExsVy+t/xK7qfpa+HGjR957TYffoSo8XrF4YW /Y9fM1tc3jWHzWLG+X1MFouWtTJbrD1yl93iweGd7A4cHptWdbJ59G1ZxeixZf9nRo/Pm+QC WKK4bFJSczLLUov07RK4Mp5euMZa0MJWcX25XANjA2sXIyeHhICJxNvdN9kgbDGJC/fWA9lc HEICSxklXp56zwjhNDFJvFj1FqyDTcBQouttF1iHiECCRN/yfjCbWeAMo8SDb0UgtrCAlcTt f3+YQGwWAVWJhmt97CA2r4C7xLG5SxghtslJ/H+5AqyGU8BDYs/FeWBxIaCazS9PM05g5F3A yLCKUTS1NLmgOCk911CvODG3uDQvXS85P3cTIySkvuxgXHzM6hCjAAejEg/vjMhroUKsiWXF lbmHGCU4mJVEeK1fAIV4UxIrq1KL8uOLSnNSiw8xSnOwKInzzt31PkRIID2xJDU7NbUgtQgm y8TBKdXAaFh6te703St7f7T7qgmoLGBxCZWojXn3wJir47PLDMcjEXs28P9TuvpjlXNbUeRj lhZPt4vOZzm/zYy4tOhW2lWnrxc37/UxWNm53uz88ygGYT9+gyovq/uN5+fKKrqkPV3NICN/ LtRmXqk/9+nSyz8LFu75bLy6c9eFbMblvTN4wpzeP1v2RYmlOCPRUIu5qDgRAI9bNvIlAgAA 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=-7.7 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 90935304185a..dad15ad1ecb4 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 = s3c_hsotg_suspend(dwc2); } else { - if (dwc2->lx_state == DWC2_L0) - return 0; phy_exit(dwc2->phy); phy_power_off(dwc2->phy);