Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2455259imd; Fri, 2 Nov 2018 11:41:50 -0700 (PDT) X-Google-Smtp-Source: AJdET5cD/y6CoakXxf9TF8PBk12aRbvHNtQXintm+jaHDJ19Z/ThWcVOWIuepRk6sRdhOIH50WH2 X-Received: by 2002:a63:2a11:: with SMTP id q17-v6mr11870250pgq.374.1541184109902; Fri, 02 Nov 2018 11:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184109; cv=none; d=google.com; s=arc-20160816; b=dQAHvbordymgnWqhvlQrgraacCwqiOLIySb//ghSDlQFZHc1jZ7m2IsOrsphJW3WQY IV++ZZpIzfqf2DCfgbU8+2Of/OFPIgAtSFn8qiObpC9CeX+OBfDykQfe4GnWl7b0HWuE wXbP26eYGdXP6Xj5XJdo5ANA7uV7aqyOSuJ57hTqdYBVU9dinacKdZWakLjV9IxSxxAb RqG0NNAL3Kbw37queYmG9br+jyGVsaepoSdFS2nll2dFNTuy5ZEzbp1v70LG8xkuY6uG aubt7UBb8LTb/vpw5tmizHItwwTkJaCwqLBHStks4wV/EgP6upqpVTpSQY+6PF4Kye2R NRDA== 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=xqvBbrWgMveBtBxjd2/gTChwPG155/QuCzpbaGT9Hto=; b=agj8UQumAcGYYnxXVL1vI5+q3RbZG6VGqx0TrLZboDVljTSHT7Q3YzYyasV7LbIpt3 Pd/+3jIjXq85VAf0q1ogsV/PNrGftEiSL6HBO/xpJ/3dBAhmf1lXPX6i44amQu/BnRRO OI/OGRoi7JUlsbw9j236ppmIjPnBrCIV3uS9cUZ5cNXzZ56+UEyv06upW0pLpEvq3a1x lhmX60SKL5RtET2C7q5vJ1LdvPNPeevVV+j3zctjqpfMKgNbUWQYd6d2vA7OXNFygCdD Ilzc2r8Y4ive0ajt9EY7R419QW5pGqKHyLVYB5PXzNBq5XEZrvBIAlc/Y4YwY+Q4Cx/K XG7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kyfBq2rL; 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 b2-v6si14254658pgg.412.2018.11.02.11.41.35; Fri, 02 Nov 2018 11:41:49 -0700 (PDT) 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=kyfBq2rL; 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 S1729392AbeKCDsq (ORCPT + 99 others); Fri, 2 Nov 2018 23:48:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:43130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728836AbeKCDsp (ORCPT ); Fri, 2 Nov 2018 23:48:45 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 9481C2082E; Fri, 2 Nov 2018 18:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184033; bh=zETBrNXrQV5u3UlgzK2ONHknvOhyX/H7akGQONezoyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kyfBq2rLm+3duCiWewKVwQuntWi/Gb//9iebVgz+MsnKbC5BXaFK+MlLj0NKsNgAK xyExpxTFDGq9F4kz3VzZwQOAEt9b3a0fb3Ef6I2GMBt8KIdC5kzHeahVNuO+T8M8K0 aiPbiUTOZyUStmnRTugwpQ1PrTM94XFg+e0gTx0Y= 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.18 028/150] pxa168fb: prepare the clock Date: Fri, 2 Nov 2018 19:33:10 +0100 Message-Id: <20181102182905.234740556@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@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.18-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 def3a501acd6..d059d04c63ac 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_wc(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