Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp497579yba; Mon, 1 Apr 2019 10:29:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxx38Xm1L4/6IRH0OAu4I/rnGhIDhDdEjvWZp2HoHa1tShw/p4q+PJWD+VJTldjLs/BZLrX X-Received: by 2002:a63:360e:: with SMTP id d14mr48744334pga.188.1554139779002; Mon, 01 Apr 2019 10:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554139778; cv=none; d=google.com; s=arc-20160816; b=bwgPSJdOn2FrACnJgqVrbe6WMxAgPy9oJjw6HERAUlkAi1MYsikRI2mLUMZ4vzcIfO N6Gvl1Dzdw5ifi6Xx2gyUUUgbI7kqsiXcUXEfnrWuv8oMXl4RU6/7BqQ8ijFFkz0d3QD tg6S9spcFyP/PImZqJjQMLiQOGSk9CVScgV5Kx2hjfXlPKNvkgELe9HUQg75PgVGrdt/ ML6c41R0zvP1CUxAelMWI3vH6YVfGya0WGaqILWc2GUau0vx5svIpZsv2k3bfIo6bfAY NtgCnMkJabu6+xrwZEKnWulfN+TmnA3v9lEvpsfA1zvE4FvJ7bkT1fM403n8hh9xzz3I zmBw== 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=PTmtjdgCw9Tc2tRfhKTu6/cZg/e9MaewowE4znZ5Zps=; b=JmGNCE8W4y0Jp7IOl+4HyrGt9RuYjQGoUv6iLHea3Ff3mEIK7s5Fu8NV7oZTbGRYHM 1VppFUq/egdR+kbiVTK+iwnFu34w56V7dHpoCPPrsR7vxDNM8gzSxmdKZwO7aqFPnp+/ Z0CQw07FvyKlyvSm90sOMUZDN8fH+sUnqBJIz6fFWGGSVP4XV3PoGoLAFCPtdt2joipO UN326zht7G6HQ5EYvazvYq60IQMNfo2+128DJ1YsCST9zY6UuSeetXyIsaTGRWDje5EP Aiw0AIoGJY6OUPBm+nmaHf8L4SLfGYwDbC5gX9wkxlOG58a/vgi9h81H2wWpy5lhAAxS E8ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oILCHVwa; 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 r17si8789875pgv.328.2019.04.01.10.29.23; Mon, 01 Apr 2019 10:29:38 -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=oILCHVwa; 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 S1732674AbfDAR1h (ORCPT + 99 others); Mon, 1 Apr 2019 13:27:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:32850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732681AbfDAR1c (ORCPT ); Mon, 1 Apr 2019 13:27:32 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 9058F2063F; Mon, 1 Apr 2019 17:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554139652; bh=I2YXyW3xudM/S0rpg7oaGCBz6lJqr95ls3mUaCi7Mas=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oILCHVwaq70FNSAvGnThu263oHwzLEDHvfIMIGclAf2A9SmTms/JCtWjVQux8pBuo dk1iMKsh253pxvBIHe2odqFVdHE6urL+1dnugupxZihCw+6yWYKnNBZC+XGkDDSlwt eMU8c0i0NhyhKZ+0GtvOLzSKb8gT3QMbhN4y2izs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoffer Dall , Peter Maydell , Roman Kiryanov , Bartlomiej Zolnierkiewicz , Sasha Levin Subject: [PATCH 4.9 03/56] video: fbdev: Set pixclock = 0 in goldfishfb Date: Mon, 1 Apr 2019 19:02:19 +0200 Message-Id: <20190401170103.630315574@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401170103.398401360@linuxfoundation.org> References: <20190401170103.398401360@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit ace6033ec5c356615eaa3582fb1946e9eaff6662 ] User space Android code identifies pixclock == 0 as a sign for emulation and will set the frame rate to 60 fps when reading this value, which is the desired outcome. Signed-off-by: Christoffer Dall Signed-off-by: Peter Maydell Signed-off-by: Roman Kiryanov Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/goldfishfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/video/fbdev/goldfishfb.c +++ b/drivers/video/fbdev/goldfishfb.c @@ -234,7 +234,7 @@ static int goldfish_fb_probe(struct plat fb->fb.var.activate = FB_ACTIVATE_NOW; fb->fb.var.height = readl(fb->reg_base + FB_GET_PHYS_HEIGHT); fb->fb.var.width = readl(fb->reg_base + FB_GET_PHYS_WIDTH); - fb->fb.var.pixclock = 10000; + fb->fb.var.pixclock = 0; fb->fb.var.red.offset = 11; fb->fb.var.red.length = 5;