From patchwork Thu Aug 23 10:32:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1365841 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 AEE59DF2AB for ; Thu, 23 Aug 2012 10:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933827Ab2HWKmT (ORCPT ); Thu, 23 Aug 2012 06:42:19 -0400 Received: from na3sys009aog135.obsmtp.com ([74.125.149.84]:59976 "EHLO na3sys009aog135.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933838Ab2HWKhj (ORCPT ); Thu, 23 Aug 2012 06:37:39 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]) (using TLSv1) by na3sys009aob135.postini.com ([74.125.148.12]) with SMTP ID DSNKUDYH8R7NKb0H9/kfTrI0yZ45nJ5oYmuN@postini.com; Thu, 23 Aug 2012 03:37:39 PDT Received: by lbbgg13 with SMTP id gg13so395812lbb.13 for ; Thu, 23 Aug 2012 03:37:36 -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=n9aFIUyjpBDezIqBw29nUHpj8SIIv3QizhfQfCGzdJI=; b=NgDF6jnW/T+uv7d7qK5fmXI4PCHgeKkgzL7nFAQxxaxacTDvZaf+cbUjwEC3Ou6TzO iJUSUORlyLzqN/6YuSc/SswqspXqkASUfsXAVMvC7qVy2wD8ocOKuokTxMSRlhhASLPQ 4UIyOd2Sa0DCHr6+bG2oJWE+E+0wTbvJsAt1MvKv//EcZ1uI9agoa4txEQHmhyuHplRb IvZ33Rnbuka9a8Ik5UQKpl3YkkFZDuRzak9Bd917gaRDQGKR0qDFq5Wvz1b+47vGvjCQ dbtl+Cs/fIAiF/BMb9A9NyG/U30L4vo+eCj2MuJLKfuTXWVQMTfyaQe6Bn2aRDbKOwF6 KkEA== Received: by 10.112.88.106 with SMTP id bf10mr680645lbb.43.1345718256474; Thu, 23 Aug 2012 03:37:36 -0700 (PDT) Received: from localhost (cs78217178.pp.htv.fi. [62.78.217.178]) by mx.google.com with ESMTPS id o3sm1782732lbk.6.2012.08.23.03.37.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 03:37:35 -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 , Sourav Poddar , Felipe Balbi Subject: [PATCH v3 12/23] serial: omap: make sure to suspend device before remove Date: Thu, 23 Aug 2012 13:32:52 +0300 Message-Id: <1345717983-18179-13-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.12.rc3 In-Reply-To: <1345717983-18179-1-git-send-email-balbi@ti.com> References: <1345717983-18179-1-git-send-email-balbi@ti.com> X-Gm-Message-State: ALoCoQkhhw+TbQ3QuwoQ5vF8U8P57Zk5QjbRtOvLq9qievn9yKcOalsgcoKQtLnKpb3MKnMnSDXD 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. Tested-by: Shubhrajyoti D 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 9581741..2df725b 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1336,6 +1336,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);