From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487AbdGRGDM (ORCPT ); Tue, 18 Jul 2017 02:03:12 -0400 Received: from regular1.263xmail.com ([211.150.99.133]:59335 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751341AbdGRGDJ (ORCPT ); Tue, 18 Jul 2017 02:03:09 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <411e5ede3c448f3d3170b5f655c742a7> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Jeffy Chen To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, briannorris@chromium.org, dianders@chromium.org, peter@hurleysoftware.com, Jeffy Chen , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= , Michal Simek , Marc Gonzalez , Jiri Slaby , Vineet Gupta , linux-serial@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/5] earlycon hang under some conditions Date: Tue, 18 Jul 2017 14:02:53 +0800 Message-Id: <1500357778-23169-1-git-send-email-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I was testing earlycon with 8250 dw serial console. And it hangs in these cases: 1/ kernel hang when calling early write function after free_initmem: a) the earlycon not disabled after the init code(due to keep_bootcon or not specify a real console to switch to) b) the early write func is marked as __init, for example 8250_early. 2/ kernel hang when calling early write function after disable unused clks/pm domain: a) the earlycon not disabled after the init code b) the disable unused clks/pm domain kill the requiered clks/pm domain, since they are not referenced by the earlycon. 3/ kernel hang when calling early write function after the serial console driver runtime suspended: a) the earlycon not disabled after the init code b) the serial console driver's runtime suspend kills the requiered clks/pm domain, since they are not referenced by the earlycon. This serial fix 1/ case only. Jeffy Chen (5): serial: arc: Remove __init marking from early write serial: omap: Remove __init marking from early write serial: xuartps: Remove __init marking from early write serial: 8250_ingenic: Remove __init marking from early write serial: 8250_early: Remove __init marking from early write drivers/tty/serial/8250/8250_early.c | 8 ++++---- drivers/tty/serial/8250/8250_ingenic.c | 8 ++++---- drivers/tty/serial/arc_uart.c | 4 ++-- drivers/tty/serial/omap-serial.c | 13 ++++++------- drivers/tty/serial/xilinx_uartps.c | 2 +- 5 files changed, 17 insertions(+), 18 deletions(-) -- 2.1.4