From patchwork Fri Mar 11 09:20:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 627851 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2B9LvUE022246 for ; Fri, 11 Mar 2011 09:22:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752602Ab1CKJWH (ORCPT ); Fri, 11 Mar 2011 04:22:07 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:59439 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752038Ab1CKJWG (ORCPT ); Fri, 11 Mar 2011 04:22:06 -0500 Received: by mail-bw0-f46.google.com with SMTP id 15so2524372bwz.19 for ; Fri, 11 Mar 2011 01:22:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=MhCm22KtCdqsbfn/50JGZCOMNyziVvkdGGUppmzfgh0=; b=QsGdlZRyVtbpv+UwHjh6yERigGeEyrEUiisNW0QSdPaBw4xD4hs7rbk6qzyjia0MKD 7KZnG/3ffWdKwIOilJ5Dl0AUkvUferHWntNLhV6tqUQ6FXxm+TCtRdqP74zmfeUhhqbd moRhdIPdd9tarnuc0/roIM7VuQuXn/m6a2xdk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=tE15KF6ATwRLn4CuqhsbnHJLAbJ1Nd1XqZOlPJXbkQyInsp/woJL6onmzo3FOVM3cX P4waxPr3K0lpTaFvPbR+S2o8cjOchv7QVgMp50BOTzcM79LSMiugJ71lfGjmsBko0ExG jZQDIBJDd+NQAHIYTDQtH6+NINv8JKf2448mQ= Received: by 10.204.75.26 with SMTP id w26mr1830184bkj.154.1299835325621; Fri, 11 Mar 2011 01:22:05 -0800 (PST) Received: from localhost.localdomain ([86.57.155.118]) by mx.google.com with ESMTPS id k5sm1069647bku.16.2011.03.11.01.22.03 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Mar 2011 01:22:04 -0800 (PST) From: Vasily Khoruzhick To: "Russell King - ARM Linux" , Marek Vasut , linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Eric Miao , Sascha Hauer Cc: Vasily Khoruzhick Subject: [PATCH 4/4] ARM: PXA: PXAFB: don't disable controller on cpufreq transition if overlay is in use Date: Fri, 11 Mar 2011 11:20:50 +0200 Message-Id: <1299835250-11095-4-git-send-email-anarsoul@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1299835250-11095-1-git-send-email-anarsoul@gmail.com> References: <201103060030.59584.anarsoul@gmail.com> <1299835250-11095-1-git-send-email-anarsoul@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 11 Mar 2011 09:22:07 +0000 (UTC) diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index a3bdcc1..a2e5b51 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c @@ -1648,7 +1648,8 @@ pxafb_freq_transition(struct notifier_block *nb, unsigned long val, void *data) switch (val) { case CPUFREQ_PRECHANGE: - set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE); + if (!fbi->overlay[0].usage && !fbi->overlay[1].usage) + set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE); break; case CPUFREQ_POSTCHANGE: