From patchwork Tue Aug 21 12:16:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1354601 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 5E7F5DFB34 for ; Tue, 21 Aug 2012 12:21:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757347Ab2HUMVR (ORCPT ); Tue, 21 Aug 2012 08:21:17 -0400 Received: from na3sys009aog122.obsmtp.com ([74.125.149.147]:47399 "EHLO na3sys009aog122.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757321Ab2HUMUq (ORCPT ); Tue, 21 Aug 2012 08:20:46 -0400 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]) (using TLSv1) by na3sys009aob122.postini.com ([74.125.148.12]) with SMTP ID DSNKUDN9HXXtm7/USbiS0BoVdEiDK/SuLZEk@postini.com; Tue, 21 Aug 2012 05:20:45 PDT Received: by lahd3 with SMTP id d3so3939136lah.0 for ; Tue, 21 Aug 2012 05:20:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=zyhpK3f5dnsvMdtf9WhCpXhOzfn/scsPZQe453pkZos=; b=jxYjEanQ0REBTHUTX34Fu2C4dz/cIHmj/pwybupVkSLLNLRoYH4b5soZjdl+cw1h6Q K9YHf0bh8J3YEsomKeoyAop6IiHWj1jGBtZZC7OshXrxIuDdma77kXvR93sHPobXm07Z bCB1VBnP60iawkSZ2YftEiUP1zcvn5FuMY9oJ80EY/vx+G43yYpP7WSE8K4aHjVxJITY UEFIKkuEdiAR/ioLdIDyKdhB2tFRGrB4AYjQoigvlwlI9XVtt1WJqNoXKnvoC7AGrw0U /WsQQqFD6fpfujMeiCPZmhfcoSvt8tMquSenqSws2hYPXl4lfZ06EX2lvzKifhTma0EI UuOA== Received: by 10.112.42.225 with SMTP id r1mr7548177lbl.102.1345551643526; Tue, 21 Aug 2012 05:20:43 -0700 (PDT) Received: from localhost (cs78217178.pp.htv.fi. [62.78.217.178]) by mx.google.com with ESMTPS id gv8sm1365589lab.14.2012.08.21.05.20.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 05:20:42 -0700 (PDT) From: Felipe Balbi To: alan@linux.intel.com Cc: Tony Lindgren , Kevin Hilman , Linux OMAP Mailing List , Linux ARM Kernel Mailing List , linux-serial@vger.kernel.org, Linux Kernel Mailing List , Santosh Shilimkar , Shubhrajyoti Datta , Felipe Balbi Subject: [PATCH v2 12/13] serial: omap: make sure to suspend device before remove Date: Tue, 21 Aug 2012 15:16:10 +0300 Message-Id: <1345551371-18862-13-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.12.rc3 In-Reply-To: <1345551371-18862-1-git-send-email-balbi@ti.com> References: <1345540555-24359-1-git-send-email-balbi@ti.com> <1345551371-18862-1-git-send-email-balbi@ti.com> X-Gm-Message-State: ALoCoQk3U+3X8F2v8f0/DQqhgRw4ooSTyZuapX+ltez+ammS3S/I7m3IIGV38ERUqia2coOmV/3f Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org before removing the driver, let's make sure to force device into a suspended state in order to conserve power. Acked-by: Santosh Shilimkar Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 2e1a33a..b79c4fa 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1337,6 +1337,7 @@ static int serial_omap_remove(struct platform_device *dev) { struct uart_omap_port *up = platform_get_drvdata(dev); + pm_runtime_put_sync(up->dev); pm_runtime_disable(up->dev); uart_remove_one_port(&serial_omap_reg, &up->port); pm_qos_remove_request(&up->pm_qos_request);