Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp53111imu; Thu, 8 Nov 2018 14:38:49 -0800 (PST) X-Google-Smtp-Source: AJdET5deA+vNWMmJgo+WRRsbSt5+dVx8aocQUUeZuMeb1upMjgN6zWaAoyYqBMNRvXpmaO2n2RNX X-Received: by 2002:a17:902:1026:: with SMTP id b35-v6mr6460979pla.283.1541716729516; Thu, 08 Nov 2018 14:38:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716729; cv=none; d=google.com; s=arc-20160816; b=i2wspYeyvBhC3sBADNRRqsiie1xRPVR4gz1apf9yq8CH9r45GHGZgAr+4RaYtZ0HV/ r4k7YLyzI9/Huavn4MWFQf37nu22KWs1ENEcR3iWwkS/ufdjqOXS+NxIBYEuSqL9I32/ fLApEjowN8Jn6VqAbz6lmcBABbmLkDiOwHZSKIm6fP+FLYnbqMs2PsLm425s9Eh5wKUs 4HnkosjUvnke1YDI2I77YxvjMAeY/MDy+N16XLlVsF81ZdG5Ac5X3owZ4UVtXIgr/uSx p/NawpN/rlZVmGJ6sYN4XbDWMvUDRo1xp1rnssV9VtkhI3yRrYUFk7hwYtksytSvElW1 uSNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cz1Vvu6iCXe7iQ4+zzpDjoPMz4UGSNUfmft3fhXBhnw=; b=QsWbRedpYC8v6DpS6/n3u428f70vLzeKyWZntlAjURX24nShKHKcMdv2ouWTdMIava mPzCtQyJ3RMJ1+bnD6Hsf9PrONCmKthpw1AFgY8uO7NvlYq9S3QWH4nYaQzBQ0kl1uUs /Ck3rNJlAKGt1pWmR4y7rDP8cuc/Rm8QL2ahzPZELzhwr1/8r+dt+RGHvp2Su1UtnkxT pYnB6TLfPjL5c0XBIRXUpY+G0/4Nu7cRHBWtztbivIrt2mJPedgvioEQbuMkLlMW/NCp uktXRfb0icg9dh3m6vhLX7WLCtsSqoHEGxL/KOoL9EYjwXYdByKsj/DI7XOGOOc2+07K VdEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vOxMqe5L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4-v6si5854537ple.236.2018.11.08.14.38.26; Thu, 08 Nov 2018 14:38:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vOxMqe5L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729602AbeKIIOe (ORCPT + 99 others); Fri, 9 Nov 2018 03:14:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:53674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728347AbeKIHgV (ORCPT ); Fri, 9 Nov 2018 02:36:21 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B177208E3; Thu, 8 Nov 2018 21:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714333; bh=JiExSbJHa+4VZiIuOy7BqecqQIec1j1QS4bTv1l1FeQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vOxMqe5LS1xcu1rha+ITxbFuEwBoihwCL5sU6VX4tZqLtIi5+Yaz0yh+uIjLnMeKA RFjRGuwl2ZsdDgpn+hjp8+enLTRbChy4EsWOU7SPdtHBIv7dzJzjXSoiYKAWCw6PzG vSPYZ+J8ummp58aOIedeZkU82DOF8fLqeaDAaUjg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lubomir Rintel , Bartlomiej Zolnierkiewicz , Sasha Levin Subject: [PATCH 4.4 009/114] pxa168fb: prepare the clock Date: Thu, 8 Nov 2018 13:50:24 -0800 Message-Id: <20181108215059.770967037@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit d85536cde91fcfed6fb8d983783bd2b92c843939 ] Add missing prepare/unprepare operations for fbi->clk, this fixes following kernel warning: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:874 clk_core_enable+0x2c/0x1b0 Enabling unprepared disp0_clk Modules linked in: CPU: 0 PID: 1 Comm: swapper Not tainted 4.18.0-rc8-00032-g02b43ddd4f21-dirty #25 Hardware name: Marvell MMP2 (Device Tree Support) [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [] (show_stack) from [] (__warn+0xd8/0xf0) [] (__warn) from [] (warn_slowpath_fmt+0x44/0x6c) [] (warn_slowpath_fmt) from [] (clk_core_enable+0x2c/0x1b0) [] (clk_core_enable) from [] (clk_core_enable_lock+0x18/0x2c) [] (clk_core_enable_lock) from [] (pxa168fb_probe+0x464/0x6ac) [] (pxa168fb_probe) from [] (platform_drv_probe+0x48/0x94) [] (platform_drv_probe) from [] (driver_probe_device+0x328/0x470) [] (driver_probe_device) from [] (__driver_attach+0xb0/0x124) [] (__driver_attach) from [] (bus_for_each_dev+0x64/0xa0) [] (bus_for_each_dev) from [] (bus_add_driver+0x1b8/0x230) [] (bus_add_driver) from [] (driver_register+0xac/0xf0) [] (driver_register) from [] (do_one_initcall+0xb8/0x1f0) [] (do_one_initcall) from [] (kernel_init_freeable+0x294/0x2e0) [] (kernel_init_freeable) from [] (kernel_init+0x8/0x10c) [] (kernel_init) from [] (ret_from_fork+0x14/0x2c) Exception stack(0xd008bfb0 to 0xd008bff8) bfa0: 00000000 00000000 00000000 00000000 bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ---[ end trace c0af40f9e2ed7cb4 ]--- Signed-off-by: Lubomir Rintel [b.zolnierkie: enhance patch description a bit] Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sasha Levin --- drivers/video/fbdev/pxa168fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa168fb.c b/drivers/video/fbdev/pxa168fb.c index efb57c059997..5190b1749e2a 100644 --- a/drivers/video/fbdev/pxa168fb.c +++ b/drivers/video/fbdev/pxa168fb.c @@ -712,7 +712,7 @@ static int pxa168fb_probe(struct platform_device *pdev) /* * enable controller clock */ - clk_enable(fbi->clk); + clk_prepare_enable(fbi->clk); pxa168fb_set_par(info); @@ -767,7 +767,7 @@ static int pxa168fb_probe(struct platform_device *pdev) failed_free_cmap: fb_dealloc_cmap(&info->cmap); failed_free_clk: - clk_disable(fbi->clk); + clk_disable_unprepare(fbi->clk); failed_free_fbmem: dma_free_coherent(fbi->dev, info->fix.smem_len, info->screen_base, fbi->fb_start_dma); @@ -807,7 +807,7 @@ static int pxa168fb_remove(struct platform_device *pdev) dma_free_writecombine(fbi->dev, PAGE_ALIGN(info->fix.smem_len), info->screen_base, info->fix.smem_start); - clk_disable(fbi->clk); + clk_disable_unprepare(fbi->clk); framebuffer_release(info); -- 2.17.1