From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751643AbaLQWaY (ORCPT ); Wed, 17 Dec 2014 17:30:24 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:54581 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612AbaLQWaU convert rfc822-to-8bit (ORCPT ); Wed, 17 Dec 2014 17:30:20 -0500 From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Kevin Cernekee Cc: Joe Perches , linux-arch , LKML , Geert Uytterhoeven , linux-m68k , Steven Miao , Ralf Baechle , linux-mips Subject: Re: rfc: remove early_printk from a few arches? (blackfin, m68k, mips) References: <1418849927.28384.1.camel@perches.com> Date: Wed, 17 Dec 2014 22:30:16 +0000 In-Reply-To: (Kevin Cernekee's message of "Wed, 17 Dec 2014 13:30:02 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kevin Cernekee writes: > On Wed, Dec 17, 2014 at 12:58 PM, Joe Perches wrote: >> It seems like early_printk can be configured into >> a few architectures but also appear not to be used. >> >> $ git grep -w "early_printk" > [snip] >> arch/mips/kernel/Makefile:obj-$(CONFIG_EARLY_PRINTK) += early_printk.o > > Nowadays I try to use OF_EARLYCON whenever possible, but when that has > been unavailable, I have used arch/mips/kernel/early_printk.c to get > console output before the serial driver is initialized. It runs very > early in the boot sequence and has very few dependencies, which makes > it useful for board bringup. EARLY_PRINTK on MIPS is enabled just after prom_init(), well before OF_EARLYCON is usable. I'd prefer if it stayed that way. -- Måns Rullgård mans@mansr.com