Skip to content

Commit

Permalink
VIDEO: Newport Fix console crashes
Browse files Browse the repository at this point in the history
Because of commit e84de0c [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: Thomas 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: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Thomas Bogendoerfer authored and Ralf Baechle committed Dec 13, 2012
1 parent 5613d48 commit fa4dbbc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions drivers/video/console/newport_con.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa4dbbc

Please sign in to comment.