From patchwork Tue Aug 21 09:15:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1353111 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3B81F40B17 for ; Tue, 21 Aug 2012 09:21:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755632Ab2HUJVU (ORCPT ); Tue, 21 Aug 2012 05:21:20 -0400 Received: from na3sys009aog131.obsmtp.com ([74.125.149.247]:58487 "EHLO na3sys009aog131.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755483Ab2HUJUh (ORCPT ); Tue, 21 Aug 2012 05:20:37 -0400 Received: from mail-lpp01m010-f45.google.com ([209.85.215.45]) (using TLSv1) by na3sys009aob131.postini.com ([74.125.148.12]) with SMTP ID DSNKUDNS41jcX0bseA8XI0FC9STVC2he1KFt@postini.com; Tue, 21 Aug 2012 02:20:37 PDT Received: by lagz14 with SMTP id z14so3531106lag.4 for ; Tue, 21 Aug 2012 02:20:33 -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=kuQ/T37sELHXs3eSTuUIxY5GdmaAdVdnmsv4fA6eu5k=; b=NJLuGl0zNk3s/eL/QEU9N5DBw+1ScMAbq/cCPnS6C/dOr6+M8LZQqGFyzgQledlcWV yTmGGbZ3ygjmOKNR/Ll7VnvD79Ne8aAjD+Z3twILbHdIzUf4KD73cS4kZdpGrXWYEH0R P+c7qD2RLRvdFi411dPIi2nhUTbUZWrIdSpVL34dHxQ5z9B1so/pfShm1RruVgpFVIlp wlu2jKb/D8THJzmskPGlPc5kZoUI29inXnsPvD2c6gjmmaPFSCCn8tJc0wevj3+S07D7 1piPpqntvuIBYyldw3rVZNJenjhfL1N1srEOfKYXLWLcY1rqz1qDvF66C/4BWbUSJV0H fxGA== Received: by 10.152.113.68 with SMTP id iw4mr16890340lab.50.1345540833885; Tue, 21 Aug 2012 02:20:33 -0700 (PDT) Received: from localhost (cs78217178.pp.htv.fi. [62.78.217.178]) by mx.google.com with ESMTPS id lr17sm981312lab.12.2012.08.21.02.20.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 02:20:32 -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: [RFC/PATCH 13/13] serial: omap: make sure to suspend device before remove Date: Tue, 21 Aug 2012 12:15:55 +0300 Message-Id: <1345540555-24359-14-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.12.rc3 In-Reply-To: <1345540555-24359-1-git-send-email-balbi@ti.com> References: <1345540555-24359-1-git-send-email-balbi@ti.com> X-Gm-Message-State: ALoCoQnOna5WTSc0qRxhWQdkf45gQ88ZRER6J1y7kiF7REqa3E3ql3V2KpLRCnayXxEos9mxZaHo 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. 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 25d2055..f849ab9 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1334,6 +1334,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);