From patchwork Wed Mar 2 21:16:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Vanderlip X-Patchwork-Id: 604041 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 p22LH4LP027497 for ; Wed, 2 Mar 2011 21:17:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757820Ab1CBVQu (ORCPT ); Wed, 2 Mar 2011 16:16:50 -0500 Received: from wolverine01.qualcomm.com ([199.106.114.254]:63913 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757818Ab1CBVQs (ORCPT ); Wed, 2 Mar 2011 16:16:48 -0500 X-IronPort-AV: E=McAfee;i="5400,1158,6273"; a="77638259" Received: from ironmsg03-r.qualcomm.com ([172.30.46.17]) by wolverine01.qualcomm.com with ESMTP; 02 Mar 2011 13:16:48 -0800 X-IronPort-AV: E=Sophos;i="4.62,253,1297065600"; d="scan'208";a="56219172" Received: from carlv-linux.qualcomm.com ([10.52.52.151]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Mar 2011 13:16:47 -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 p22LGla9011191; Wed, 2 Mar 2011 13:16:47 -0800 Received: (from carlv@localhost) by carlv-linux.qualcomm.com (8.14.2/8.12.1/Submit) id p22LGlAP011190; Wed, 2 Mar 2011 13:16:47 -0800 From: Carl Vanderlip To: David Brown , Daniel Walker , Bryan Huntsman Cc: Dima Zavin , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Carl Vanderlip , linux-fbdev@vger.kernel.org (open list:FRAMEBUFFER LAYER) Subject: [PATCH 1/4] video: msmfb: Put the partial update magic value into the fix_screen struct. Date: Wed, 2 Mar 2011 13:16:36 -0800 Message-Id: <1299100596-11157-1-git-send-email-carlv@codeaurora.org> X-Mailer: git-send-email 1.7.3.3 In-Reply-To: <1299100542-11120-1-git-send-email-carlv@codeaurora.org> References: <1299100542-11120-1-git-send-email-carlv@codeaurora.org> To: David Brown , Daniel Walker , Bryan Huntsman 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]); Wed, 02 Mar 2011 21:17:05 +0000 (UTC) diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c index 5436aeb..fe5efe5 100644 --- a/drivers/video/msm/msm_fb.c +++ b/drivers/video/msm/msm_fb.c @@ -469,6 +469,18 @@ 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 |