From patchwork Thu Jul 11 10:53:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajendra Nayak X-Patchwork-Id: 2826285 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3B335C0AB2 for ; Thu, 11 Jul 2013 10:54:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 65BBC20173 for ; Thu, 11 Jul 2013 10:54:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE6EF20169 for ; Thu, 11 Jul 2013 10:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932112Ab3GKKxy (ORCPT ); Thu, 11 Jul 2013 06:53:54 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:36140 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755807Ab3GKKxv (ORCPT ); Thu, 11 Jul 2013 06:53:51 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6BArORN013782; Thu, 11 Jul 2013 05:53:25 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6BArOG0023681; Thu, 11 Jul 2013 05:53:24 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Thu, 11 Jul 2013 05:53:24 -0500 Received: from ula0131687.itg.ti.com (ula0131687-172024145051.apr.dhcp.ti.com [172.24.145.51]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6BArHZh019556; Thu, 11 Jul 2013 05:53:21 -0500 From: Rajendra Nayak To: CC: , , , , , , , , Rajendra Nayak Subject: [PATCH 1/2] Revert "ARM: OMAP2+: Fix serial init for device tree based booting" Date: Thu, 11 Jul 2013 16:23:04 +0530 Message-ID: <1373539986-27272-2-git-send-email-rnayak@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1373539986-27272-1-git-send-email-rnayak@ti.com> References: <1373539986-27272-1-git-send-email-rnayak@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This reverts commit 82702ea11ddfe0e43382e1fa5b66d807d8114916. The above commit stubbed out omap_serial_early_init() in case of DT build thinking it was doing the serial port initializations. omap_serial_early_init() however does not do the serial port inits (its instead done by omap_serial_init_port()) instead it sets the HWMOD_INIT_NO_IDLE and HWMOD_INIT_NO_RESET flags for the console uart which causes hwmod to avoid doing a reset followed by the idling of the console uart. This is still needed even in the DT case. Signed-off-by: Rajendra Nayak Reported-by: Mark Jackson Reported-by: Vaibhav Bedia --- arch/arm/mach-omap2/serial.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 3a674de..58d5b56 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -175,9 +175,6 @@ static char *cmdline_find_option(char *str) static int __init omap_serial_early_init(void) { - if (of_have_populated_dt()) - return -ENODEV; - do { char oh_name[MAX_UART_HWMOD_NAME_LEN]; struct omap_hwmod *oh;