From patchwork Sat Nov 15 19:50:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 5312151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B5395C11AC for ; Sat, 15 Nov 2014 19:53:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DDE2D200D5 for ; Sat, 15 Nov 2014 19:53:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D174120176 for ; Sat, 15 Nov 2014 19:53:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XpjNH-0006WL-U2; Sat, 15 Nov 2014 19:51:11 +0000 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XpjNC-0006Uq-5W for linux-arm-kernel@lists.infradead.org; Sat, 15 Nov 2014 19:51:06 +0000 Received: by mail-wi0-f181.google.com with SMTP id n3so5613061wiv.14 for ; Sat, 15 Nov 2014 11:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=usYaAGE2nVhSYrquZi5a1TPG+c5AzEoekSBbbTfXh9s=; b=MnOYCVasCj4UWg70dwelB7J3BJOMgrmmMpmO+WfNa7eFuVCmvh+lQihWTcHDJtlxiK DANs/ApOrv12NGUz2DjHGATTZtI3MVcsUFnUTrhzZ0Ed04NABwCObPP2HkXqGmp+4jMf Xej657DDgtgl3pum8BZdJ34lIxXKW61Hd3fxiR2Lw98mX7X820Qm/8VQjPvqqKFGyqjh jPlGu3IaRxm4JCDyfD4ulTi4AfwqDLtpZoI7qoo0y8zB1lg4QucJqHKSpoR04m/eyALP 5B4/UrqgtoaACAh0yEEQtFLOlwW48pUufykwu4dRM2ZuiUywaJ35YHPwGjpmdOOt5X8z dXgQ== X-Received: by 10.194.157.35 with SMTP id wj3mr17085142wjb.91.1416081044404; Sat, 15 Nov 2014 11:50:44 -0800 (PST) Received: from fangorn.rup.mentorg.com (nat-min.mentorg.com. [139.181.32.34]) by mx.google.com with ESMTPSA id dr5sm8199004wib.4.2014.11.15.11.50.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 15 Nov 2014 11:50:43 -0800 (PST) From: Dmitry Eremin-Solenikov To: Felipe Balbi , Robert Jarzmik , Greg Kroah-Hartman , Daniel Mack , Haojian Zhuang Subject: [PATCH 2/2] usb: gadget: pxa27x_udc: prepare/unprepare clocks in pxa-ssp Date: Sat, 15 Nov 2014 22:50:30 +0300 Message-Id: <1416081030-28260-2-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1416081030-28260-1-git-send-email-dbaryshkov@gmail.com> References: <1416081030-28260-1-git-send-email-dbaryshkov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141115_115106_391024_226DDFAF X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unrepapre(). Signed-off-by: Dmitry Eremin-Solenikov --- drivers/usb/gadget/udc/pxa27x_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/pxa27x_udc.c b/drivers/usb/gadget/udc/pxa27x_udc.c index 4868369..e03c61d 100644 --- a/drivers/usb/gadget/udc/pxa27x_udc.c +++ b/drivers/usb/gadget/udc/pxa27x_udc.c @@ -1701,7 +1701,7 @@ static void udc_disable(struct pxa_udc *udc) udc_writel(udc, UDCICR1, 0); udc_clear_mask_UDCCR(udc, UDCCR_UDE); - clk_disable(udc->clk); + clk_disable_unprepare(udc->clk); ep0_idle(udc); udc->gadget.speed = USB_SPEED_UNKNOWN; @@ -1761,7 +1761,7 @@ static void udc_enable(struct pxa_udc *udc) udc_writel(udc, UDCICR1, 0); udc_clear_mask_UDCCR(udc, UDCCR_UDE); - clk_enable(udc->clk); + clk_prepare_enable(udc->clk); ep0_idle(udc); udc->gadget.speed = USB_SPEED_FULL;