Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 03 Jul 2014 16:17:56 +0200 (CEST) Received: from helium.waldemar-brodkorb.de ([89.238.66.15]:42254 "EHLO helium.waldemar-brodkorb.de" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6834666AbaGCORydrqle (ORCPT ); Thu, 3 Jul 2014 16:17:54 +0200 Received: by helium.waldemar-brodkorb.de (Postfix, from userid 1000) id C6007104B2; Thu, 3 Jul 2014 16:17:53 +0200 (CEST) Date: Thu, 3 Jul 2014 16:17:53 +0200 From: Waldemar Brodkorb To: Linux MIPS Mailing List Cc: geert@linux-m68k.org, florian@openwrt.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] MIPS: rb532: fix reregistering of serial console Message-ID: <20140703141753.GA2615@waldemar-brodkorb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Operating-System: Linux 3.2.0-4-amd64 x86_64 User-Agent: Mutt/1.5.21 (2010-09-15) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 41008 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wbx@openadk.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Runtime tested on Mikrotik RB532 board. Thanks goes to Geert Uytterhoeven for the explanation of the problem. "I'm afraid this is not gonna help. When the port is unregistered, its type will be reset to PORT_UNKNOWN. So before registering it again, its type must be set again the actual serial driver, cfr. the change to of_serial.c." Signed-off-by: Waldemar Brodkorb Reviewed-by: Florian Fainelli --- arch/mips/rb532/devices.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index 3af00b2..ba61268 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c @@ -223,6 +223,7 @@ static struct platform_device rb532_wdt = { static struct plat_serial8250_port rb532_uart_res[] = { { + .type = PORT_16550A, .membase = (char *)KSEG1ADDR(REGBASE + UART0BASE), .irq = UART0_IRQ, .regshift = 2, -- 1.7.10.4