Message ID | 1413464285-24172-5-git-send-email-m.szyprowski@samsung.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDG6PF6SSYDRB7UB76QQKGQETELVJQI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A966420973 for <linaro@patches.linaro.org>; Thu, 16 Oct 2014 12:58:39 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id d1sf2000849wiv.2 for <linaro@patches.linaro.org>; Thu, 16 Oct 2014 05:58:38 -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=ic6bUtUGNfAfFmE/xHxziUbAPR0S7G/w5ycNYFh+A7Q=; b=C4OMoOT0rSSEa8K8iewLq0lV72DPFQl3rnIXdEJnovdZHNUGBnWszOtjx8/Cc6/HQQ znDz8nzjU1Sef6oOWMqrCFH738BkLYhtOL8nb6YQesI2bY1qgLxGIH1lq+5LAve5P9rh SNu0TMTLmeC7RA2i6x/vy5+mBMdiiQwoHBmapGBQ/M46XE/jfoZiq6A1cDQ0hfk/dHnS zfeXcfUKtFyyOsdvqzOwUWz8lJ3whet8DBzOxpv81f8uvs7jWUbtuaa2RmxctQiRMzbT MqdBJiVUD7Rf6apf4CKoiqVTpJ01cvZ685Oaz9XWURYiqldo8fSdfoFHzrOGwgE6flv/ MOMQ== X-Gm-Message-State: ALoCoQnd2yhSH+HkWm2IP0irEtyLT2uJjdup07FuzPTGSOdcVtjZbjcCeFmu1W8YwhRul8VlGsM8 X-Received: by 10.152.21.170 with SMTP id w10mr252597lae.6.1413464318926; Thu, 16 Oct 2014 05:58:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.9 with SMTP id o9ls135617lao.97.gmail; Thu, 16 Oct 2014 05:58:38 -0700 (PDT) X-Received: by 10.152.22.194 with SMTP id g2mr1424565laf.33.1413464318780; Thu, 16 Oct 2014 05:58:38 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by mx.google.com with ESMTPS id a4si5593691lbm.77.2014.10.16.05.58.38 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Oct 2014 05:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id gf13so3087395lab.29 for <patchwork-forward@linaro.org>; Thu, 16 Oct 2014 05:58:38 -0700 (PDT) X-Received: by 10.153.8.164 with SMTP id dl4mr1430673lad.29.1413464318695; Thu, 16 Oct 2014 05:58:38 -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 c5csp33467lbz; Thu, 16 Oct 2014 05:58:37 -0700 (PDT) X-Received: by 10.66.141.70 with SMTP id rm6mr1365938pab.38.1413464316848; Thu, 16 Oct 2014 05:58:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yk7si11920691pab.135.2014.10.16.05.58.36 for <multiple recipients>; Thu, 16 Oct 2014 05:58:36 -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 S1752455AbaJPM6b (ORCPT <rfc822;amit.pundir@linaro.org> + 3 others); Thu, 16 Oct 2014 08:58:31 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:21232 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751704AbaJPM6a (ORCPT <rfc822; linux-usb@vger.kernel.org>); Thu, 16 Oct 2014 08:58:30 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NDJ008KCG64Q1B0@mailout2.w1.samsung.com>; Thu, 16 Oct 2014 14:01:16 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-f0-543fc0f2bd7d Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 20.FC.15956.2F0CF345; Thu, 16 Oct 2014 13:58:26 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NDJ00F34G17BB00@eusync2.samsung.com>; Thu, 16 Oct 2014 13:58:26 +0100 (BST) From: Marek Szyprowski <m.szyprowski@samsung.com> To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Kyungmin Park <kyungmin.park@samsung.com>, Robert Baldyga <r.baldyga@samsung.com>, Paul Zimmerman <paulz@synopsys.com>, Krzysztof Kozlowski <k.kozlowski@samsung.com> Subject: [PATCH 4/9] usb: dwc2/gadget: disable phy before turning off power regulators Date: Thu, 16 Oct 2014 14:58:00 +0200 Message-id: <1413464285-24172-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1413464285-24172-1-git-send-email-m.szyprowski@samsung.com> References: <1413464285-24172-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNJMWRmVeSWpSXmKPExsVy+t/xK7qfDtiHGOz5YmDx+oWhxdmmN+wW M87vY7JYtKyV2WLtkbvsFtunTGeyeHB4J7sDu0ffllWMHlv2f2b0+LxJLoA5issmJTUnsyy1 SN8ugSvj/OMp7AVzOSoebFvB2MD4mq2LkZNDQsBEYkXXUiYIW0ziwr31YHEhgaWMEqs+unYx cgHZfUwS8/7cZgRJsAkYSnS97QIrEhFwkFiy9A4bSBGzwB1GifX7P4FNEhaIkOj+sB6sgUVA VeLgvHusIDavgIdE19ybjBDb5CT+v1wBVs8p4Cmxa/NKZojNHhLnr05nnMDIu4CRYRWjaGpp ckFxUnqukV5xYm5xaV66XnJ+7iZGSAB93cG49JjVIUYBDkYlHl6NYPsQIdbEsuLK3EOMEhzM SiK8iyYBhXhTEiurUovy44tKc1KLDzEycXBKNTDOnHXAWezrz+nHGxgzTbOnMAeYZvYvy79g emB/XPmeVPZlHfOsa5dfVxQ9JfRb7ebl6s0tc0ruVa09cjSyZKNBU3rDLD6lrJg7Ba772F8c EfWd9vdPyIm06hp7lVd9T/mVGtW0hT/HiFb3XdlwM6j1jO3MtcWXxaS9JZqOO/T8MuCwjZ3b /liJpTgj0VCLuag4EQD+mbwa/gEAAA== Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.42 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 37fda4c03397..178a6ea5eef8 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -3573,6 +3573,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); @@ -3581,8 +3582,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;
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 <m.szyprowski@samsung.com> --- drivers/usb/dwc2/gadget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)