From patchwork Fri Jun 18 00:05:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 106769 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5I05PZE014167 for ; Fri, 18 Jun 2010 00:05:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755166Ab0FRAFZ (ORCPT ); Thu, 17 Jun 2010 20:05:25 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:47003 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752772Ab0FRAFY (ORCPT ); Thu, 17 Jun 2010 20:05:24 -0400 Received: by pxi12 with SMTP id 12so200671pxi.19 for ; Thu, 17 Jun 2010 17:05:23 -0700 (PDT) Received: by 10.141.90.14 with SMTP id s14mr189640rvl.263.1276819523781; Thu, 17 Jun 2010 17:05:23 -0700 (PDT) Received: from localhost (c-24-18-179-55.hsd1.wa.comcast.net [24.18.179.55]) by mx.google.com with ESMTPS id r23sm8606816rvq.0.2010.06.17.17.05.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 17 Jun 2010 17:05:22 -0700 (PDT) To: "Govindraj.R" Cc: linux-omap@vger.kernel.org Subject: Re: [pm-wip/uart][PATCH 0/5 v2] Serial HWMOD updation and uart4 support for 3630 References: <2134.10.24.255.18.1276697618.squirrel@dbdmail.itg.ti.com> From: Kevin Hilman Organization: Deep Root Systems, LLC Date: Thu, 17 Jun 2010 17:05:21 -0700 In-Reply-To: <2134.10.24.255.18.1276697618.squirrel@dbdmail.itg.ti.com> (Govindraj R.'s message of "Wed\, 16 Jun 2010 19\:43\:38 +0530 \(IST\)") Message-ID: <87d3vpciim.fsf@deeprootsystems.com> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 18 Jun 2010 00:05:26 +0000 (UTC) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 2ab8f25..37cc28e 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -98,7 +98,9 @@ struct omap_uart_state { #endif }; -static LIST_HEAD(uart_list); +static LIST_HEAD(hwmod_list); /* list of detected UART hwmods */ +static LIST_HEAD(uart_list); /* list of initialized UARTs */ + static u8 num_uarts; static struct omap_device_pm_latency omap_uart_latency[] = { @@ -612,7 +614,7 @@ static int omap_serial_port_init(struct omap_hwmod *oh, void *user) uart->oh = oh; uart->num = i++; - list_add_tail(&uart->node, &uart_list); + list_add_tail(&uart->node, &hwmod_list); num_uarts++; /* @@ -676,7 +678,7 @@ void __init omap_serial_init_port(int port) if (WARN_ON(port >= num_uarts)) return; - list_for_each_entry(uart, &uart_list, node) + list_for_each_entry(uart, &hwmod_list, node) if (port == uart->num) break; @@ -789,6 +791,8 @@ void __init omap_serial_init_port(int port) device_init_wakeup(&od->pdev.dev, true); DEV_CREATE_FILE(&od->pdev.dev, &dev_attr_sleep_timeout); } + + list_add_tail(&uart->node, &uart_list); } /**