From patchwork Mon Oct 20 10:45:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 39037 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7715B203C5 for ; Mon, 20 Oct 2014 10:46:05 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e51sf516005eek.10 for ; Mon, 20 Oct 2014 03:46:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=J3J6dGtO/IqNFP6aMmC1iUCEl5RHJkhAUWQXomxkio4=; b=PpjRsB0GpOOMF8eZVQHdQ5lypq1kNExAP4IPZlMzH9A4NVG8aJRczqAzFbdwdoj0hq 0/5xwo+GHDgZcDn8CuhEg/3pM0AC/C04adaQZdw9eynd59mqNaIaXhwksIg3JiGtjoja Xrf3B+dKF/sQ9B9ORmYm3sTKVhi80aova4vfsftijAXRImFc1ScxwhjyAT0AZFZjbKRi k8UmDRuuRN0Fgfap+1KwvlukqmHkjuO8JVXmsWrpnVsbLf2ulTqsAXdUga9O39tAb00B KX7skqGt//8JCk9VBDLClvQIsiWextlTMysUw1sxtP8hCjTYlzZKOq9JIV8XLzfqVZzc ydpA== X-Gm-Message-State: ALoCoQki7jBR6610wIOTEardIoDIYmZXOmqtsSGMDwVm4hfm/YasFLy8HkHN6O2GDSDdJXvwq0BK X-Received: by 10.180.98.165 with SMTP id ej5mr3112631wib.1.1413801964633; Mon, 20 Oct 2014 03:46:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.229 with SMTP id h5ls450806lam.4.gmail; Mon, 20 Oct 2014 03:46:04 -0700 (PDT) X-Received: by 10.152.10.143 with SMTP id i15mr26661557lab.5.1413801964381; Mon, 20 Oct 2014 03:46:04 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id rs4si13749291lbb.12.2014.10.20.03.46.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 03:46:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id gi9so3722465lab.35 for ; Mon, 20 Oct 2014 03:46:04 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr26680918lbb.46.1413801964300; Mon, 20 Oct 2014 03:46:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp278558lbz; Mon, 20 Oct 2014 03:46:03 -0700 (PDT) X-Received: by 10.70.3.2 with SMTP id 2mr27127613pdy.9.1413801961552; Mon, 20 Oct 2014 03:46:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tv2si7567486pac.25.2014.10.20.03.46.00 for ; Mon, 20 Oct 2014 03:46:01 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753581AbaJTKp6 (ORCPT + 3 others); Mon, 20 Oct 2014 06:45:58 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54314 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753245AbaJTKpy (ORCPT ); Mon, 20 Oct 2014 06:45:54 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NDQ00KWFOP8HA10@mailout1.w1.samsung.com>; Mon, 20 Oct 2014 11:48:44 +0100 (BST) X-AuditID: cbfec7f4-b7f6c6d00000120b-59-5444e7ddbe83 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id CF.54.04619.DD7E4445; Mon, 20 Oct 2014 11:45:49 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NDQ009U7OK7MS20@eusync4.samsung.com>; Mon, 20 Oct 2014 11:45:49 +0100 (BST) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Felipe Balbi , Kyungmin Park , Robert Baldyga , Paul Zimmerman , Krzysztof Kozlowski Subject: [PATCH v2 04/10] usb: dwc2/gadget: disable phy before turning off power regulators Date: Mon, 20 Oct 2014 12:45:34 +0200 Message-id: <1413801940-31086-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1413801940-31086-1-git-send-email-m.szyprowski@samsung.com> References: <1413801940-31086-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMJMWRmVeSWpSXmKPExsVy+t/xa7p3n7uEGNw6YWxx8H69xesXhhZn m96wW8w4v4/JYtGyVmaLtUfusltsnzKdyeLB4Z3sDhwefVtWMXps2f+Z0eP4je1MHp83yQWw RHHZpKTmZJalFunbJXBlrPownblgLkdFz+4LbA2Mr9m6GDk5JARMJDa0/mKBsMUkLtxbDxTn 4hASWMoo8eDiPCYIp49J4uf1w2BVbAKGEl1vu8C6RQQcJJYsvQNmMwv8ZJSYPNWmi5GDQ1gg VuLIw0SQMIuAqsS3HyuZQWxeAQ+JvesvskMsk5P4/3IFE4jNKeAp8ebFNEYQWwioZtPylywT GHkXMDKsYhRNLU0uKE5KzzXUK07MLS7NS9dLzs/dxAgJqC87GBcfszrEKMDBqMTDK2DpEiLE mlhWXJl7iFGCg1lJhLf7NlCINyWxsiq1KD++qDQntfgQIxMHp1QDY5SlNZuda2/idZc5chNu lgTfvHfn+y1Ohlvtd2rYGi5Zd0m+MuRZ/M/U1a1u44PJ/DMFcmNvbZbbNNlgUUtov/qplme8 rdtr7e0LHsSqRi97knU1vnHqM+5NBixGr0zWX/y7YbnvElnjnTVrI6SeCHn9nnKPaYfXtx0S AnPD1vqp7Ar8ELrvuRJLcUaioRZzUXEiAG6yZSgGAgAA Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch fixes probe function to match the pattern used elsewhere in the driver, where power regulators are turned off as the last element in the device shutdown procedure. Signed-off-by: Marek Szyprowski Acked-by: Paul Zimmerman --- drivers/usb/dwc2/gadget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index a4b4def23afd..fd52a8b23649 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -3571,6 +3571,7 @@ static int s3c_hsotg_probe(struct platform_device *pdev) s3c_hsotg_initep(hsotg, &hsotg->eps[epnum], epnum); /* disable power and clock */ + s3c_hsotg_phy_disable(hsotg); ret = regulator_bulk_disable(ARRAY_SIZE(hsotg->supplies), hsotg->supplies); @@ -3579,8 +3580,6 @@ static int s3c_hsotg_probe(struct platform_device *pdev) goto err_ep_mem; } - s3c_hsotg_phy_disable(hsotg); - ret = usb_add_gadget_udc(&pdev->dev, &hsotg->gadget); if (ret) goto err_ep_mem;