提交 fa4dbbc6 编写于 作者: T Thomas Bogendoerfer 提交者: Ralf Baechle

VIDEO: Newport Fix console crashes

Because of commit e84de0c6 [MIPS: GIO bus
support for SGI IP22/28] newport con is now taking over console from
dummy con, therefore it's necessary to resize the VC to the correct size
to avoid crashes and garbage on console
Signed-off-by: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@linux-mips.org
Cc: linux-fbdev@vger.kernel.org
Cc: FlorianSchandinat@gmx.de
Patchwork: https://patchwork.linux-mips.org/patch/4138/Acked-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 5613d482
......@@ -327,9 +327,16 @@ static const char *newport_startup(void)
static void newport_init(struct vc_data *vc, int init)
{
vc->vc_cols = newport_xsize / 8;
vc->vc_rows = newport_ysize / 16;
int cols, rows;
cols = newport_xsize / 8;
rows = newport_ysize / 16;
vc->vc_can_do_color = 1;
if (init) {
vc->vc_cols = cols;
vc->vc_rows = rows;
} else
vc_resize(vc, cols, rows);
}
static void newport_deinit(struct vc_data *c)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册