From patchwork Fri Feb 25 21:05:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Vanderlip X-Patchwork-Id: 591251 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 p1PL6ebi010665 for ; Fri, 25 Feb 2011 21:06:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755351Ab1BYVGL (ORCPT ); Fri, 25 Feb 2011 16:06:11 -0500 Received: from wolverine01.qualcomm.com ([199.106.114.254]:48650 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752133Ab1BYVGI (ORCPT ); Fri, 25 Feb 2011 16:06:08 -0500 X-IronPort-AV: E=McAfee;i="5400,1158,6268"; a="76758407" Received: from ironmsg02-r.qualcomm.com ([172.30.46.16]) by wolverine01.qualcomm.com with ESMTP; 25 Feb 2011 13:06:06 -0800 X-IronPort-AV: E=Sophos;i="4.62,225,1297065600"; d="scan'208";a="117680418" Received: from carlv-linux.qualcomm.com ([10.52.52.151]) by ironmsg02-R.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Feb 2011 13:06:06 -0800 Received: from carlv-linux.qualcomm.com (localhost [127.0.0.1]) by carlv-linux.qualcomm.com (8.14.2/8.14.2/1.0) with ESMTP id p1PL66OL022157; Fri, 25 Feb 2011 13:06:06 -0800 Received: (from carlv@localhost) by carlv-linux.qualcomm.com (8.14.2/8.12.1/Submit) id p1PL66Ke022156; Fri, 25 Feb 2011 13:06:06 -0800 From: Carl Vanderlip To: davidb@codeaurora.org Cc: Dima Zavin , linux-arm-msm@vger.kernel.org (open list:ARM/QUALCOMM MSM...), linux-fbdev@vger.kernel.org (open list:FRAMEBUFFER LAYER), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] video: msmfb: Put the partial update magic value into the fix_screen struct. Date: Fri, 25 Feb 2011 13:05:47 -0800 Message-Id: <1298667947-22123-1-git-send-email-carlv@codeaurora.org> X-Mailer: git-send-email 1.7.3.3 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, 25 Feb 2011 21:06:41 +0000 (UTC) diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c index 5436aeb..bbf841e 100644 --- a/drivers/video/msm/msm_fb.c +++ b/drivers/video/msm/msm_fb.c @@ -469,6 +469,14 @@ static void setup_fb_info(struct msmfb_info *msmfb) fb_info->var.yoffset = 0; if (msmfb->panel->caps & MSMFB_CAP_PARTIAL_UPDATES) { + /* set the param in the fixed screen, so userspace can't + * change it. This will be used to check for the + * capability. */ + fb_info->fix.reserved[0] = 0x5444; + fb_info->fix.reserved[1] = 0x5055; + + /* This preloads the value so that if userspace doesn't + * change it, it will be a full update */ fb_info->var.reserved[0] = 0x54445055; fb_info->var.reserved[1] = 0; fb_info->var.reserved[2] = (uint16_t)msmfb->xres |