From patchwork Thu Sep 6 12:45:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1414451 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 627E5DFFCF for ; Thu, 6 Sep 2012 12:54:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755498Ab2IFMun (ORCPT ); Thu, 6 Sep 2012 08:50:43 -0400 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:42662 "EHLO na3sys009aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755008Ab2IFMuj (ORCPT ); Thu, 6 Sep 2012 08:50:39 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]) (using TLSv1) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKUEicHvFCkO799tjVlJd0flvrU5ZagqKK@postini.com; Thu, 06 Sep 2012 05:50:39 PDT Received: by lbbgj3 with SMTP id gj3so1101279lbb.19 for ; Thu, 06 Sep 2012 05:50: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=81q+ome47Pize/KJgPWnoh4uy0X4kHNHcQBEVQnxdnI=; b=fv04RXDQFGiWrhwEoFf+hNkwk5u85F2HT1fIAe3KuaBtf8wqgOz59oPzDNvxC8q5/u W+ziGBMmSflkczHjqvsVkflMqU6tHBf+LPqQ4czuO51vxMuL2pSP+IIqdx5mJePJauxY AX+REZ546cjn72qP8WqLV1Qw/KXaE+w5Pqnog0qNe5J4INieqRE1G4ymx/M0yv6Bf4Sy ZjYukeLJW1R4x3ebw0fULCgQnxLMJQxz7Ub6KXvEgah9mU8UiqEbHBD+4Yg5Cdytnpep xZAU1G2/K7HJx9hNztQKCWMQvfqQurjdzWNirscJaILokvh8wrKy70AShGVCtTBsyfj+ Yc4A== Received: by 10.112.43.98 with SMTP id v2mr852726lbl.1.1346935836652; Thu, 06 Sep 2012 05:50:36 -0700 (PDT) Received: from localhost (cs78217178.pp.htv.fi. [62.78.217.178]) by mx.google.com with ESMTPS id lx11sm2069607lab.4.2012.09.06.05.50.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Sep 2012 05:50:35 -0700 (PDT) From: Felipe Balbi To: Greg KH Cc: alan@linux.intel.com, 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 v4 10/21] serial: omap: make sure to suspend device before remove Date: Thu, 6 Sep 2012 15:45:29 +0300 Message-Id: <1346935540-1792-11-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.12.rc3 In-Reply-To: <1346935540-1792-1-git-send-email-balbi@ti.com> References: <20120906122948.GC29202@arwen.pp.htv.fi> <1346935540-1792-1-git-send-email-balbi@ti.com> X-Gm-Message-State: ALoCoQnC//eJq2MErmkorfvPBh4mD3Q53ensUZDC9I3a6Am6rShQi1NcrN3JmIPHnUlC+uUFlf2z 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 c19d340..0ceca44 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1369,6 +1369,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);