Message ID | 20160301234532.180551567@linuxfoundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@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 C96889F314 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 1 Mar 2016 23:56:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CE8C520165 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 1 Mar 2016 23:56:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C505720108 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 1 Mar 2016 23:56:47 +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 1aau8D-00055v-DL; Tue, 01 Mar 2016 23:55:09 +0000 Received: from mail333.us4.mandrillapp.com ([205.201.137.77]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aau89-0003tx-6n for linux-arm-kernel@lists.infradead.org; Tue, 01 Mar 2016 23:55:06 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=mandrill; d=linuxfoundation.org; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; i=gregkh@linuxfoundation.org; bh=p1CeN6YYenHt46MzIB6xe7m8SeQ=; b=ikK4EnHeBj23Yy0sQLDdaWpG+kF/xRVSTEShzlSTVqJn9lWkNomKF5EeH/s8Njm3fK88a0nlYZfq PXEaC00/6pMO1HNSabNeTyOXJMWvrmIfv9jfOtFS5C+npK0+end1NJOOyK8tcrDWSvB+g1ua2EHx echSUEOAbULTGp8NzGU= DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=linuxfoundation.org; b=ZnLifR5yVI1e/i7PtJlauOMPDUnwTIs+P/hY9BQT5e7e7Pza0eysf92VT+VNVL3A1Dddj92hciBj 4gbLXFhvnqBSHnt0kjok6O1YXOGPWE+b5uE3msqul+u51yJBxbMIhm3Zp2uekgHAYl8YJbtNXS21 A2eIAs//DeTcwJzQpJc=; Received: from pmta03.dal05.mailchimp.com (127.0.0.1) by mail333.us4.mandrillapp.com id hqolti174no4 for <linux-arm-kernel@lists.infradead.org>; Tue, 1 Mar 2016 23:54:43 +0000 (envelope-from <bounce-md_30481620.56d62bc2.v1-6c72bcc59d8146ddbfb838eb39b2a68d@mandrillapp.com>) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1456876482; h=From : Subject : To : Cc : Message-Id : In-Reply-To : References : Date : MIME-Version : Content-Type : Content-Transfer-Encoding : From : Subject : Date : X-Mandrill-User : List-Unsubscribe; bh=OG4+7Fex05VqlbpnX9YY7nUMWuLxdwwSf9Ljly8Gr6Q=; b=pgqKFrTWqF32GUcdMQDcOIUqumIaRVu/HHvpA7jyoXayHi/8WWpXpbuX1fuaAoJrosq0sC 42xHD2V4UOCs1pRco1WMhokudxYnHj5TrzVuD3sSTeS6CmlvwOpi9LT+jRIj+WloAkVw9hc4 M+CdeI3swfDihNVf713IEf+NdNen0= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Subject: [PATCH 4.4 131/342] clockevents/tcb_clksrc: Prevent disabling an already disabled clock Received: from [50.170.35.168] by mandrillapp.com id 6c72bcc59d8146ddbfb838eb39b2a68d; Tue, 01 Mar 2016 23:54:42 +0000 X-Mailer: git-send-email 2.7.2 To: <linux-kernel@vger.kernel.org> Message-Id: <20160301234532.180551567@linuxfoundation.org> In-Reply-To: <20160301234527.990448862@linuxfoundation.org> References: <20160301234527.990448862@linuxfoundation.org> X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30481620.6c72bcc59d8146ddbfb838eb39b2a68d X-Mandrill-User: md_30481620 Date: Tue, 01 Mar 2016 23:54:42 +0000 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160301_155505_325785_76261A5D X-CRM114-Status: GOOD ( 12.45 ) X-Spam-Score: -2.0 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Boris Brezillon <boris.brezillon@free-electrons.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Nicolas Ferre <nicolas.ferre@atmel.com>, stable@vger.kernel.org, Alexandre Belloni <alexandre.belloni@free-electrons.com>, Thomas Gleixner <tglx@linutronix.de>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY, URIBL_GREY 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 |
--- a/drivers/clocksource/tcb_clksrc.c +++ b/drivers/clocksource/tcb_clksrc.c @@ -98,7 +98,8 @@ static int tc_shutdown(struct clock_even __raw_writel(0xff, regs + ATMEL_TC_REG(2, IDR)); __raw_writel(ATMEL_TC_CLKDIS, regs + ATMEL_TC_REG(2, CCR)); - clk_disable(tcd->clk); + if (!clockevent_state_detached(d)) + clk_disable(tcd->clk); return 0; }