From patchwork Mon Jan 7 11:21:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 13868 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 5CD3A23EC8 for ; Mon, 7 Jan 2013 11:24:00 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id 18D43A188DA for ; Mon, 7 Jan 2013 11:24:00 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id gb30so19036365vcb.40 for ; Mon, 07 Jan 2013 03:23:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=dBPFZozyNvnFH8KOMmYxbttEQ3hmUfxn0523eKNYNR8=; b=WTrnXr0xaAZnf+gySj6l/Tq4TmQZTBL12tLhF37ern71BtCCIX1hDP7qHO1wsKLIuo voSyWw73HAoN+ertW7vZI157FX9gztGtzONEUCJaazBF3poiPBPIkKj/zORe0q3sBf6x YlFdkfA1BNlrOtHd3N92v5HVfqZgPEivqQKGgcFgTfvBVyCUbOlsiApHZkhvOKjEUpNT dj3ei5fIFBm6CgsGvlrbJKlBR3dyg4NaD4BB27XT7fjmb/mIxki05uywV/7cPJm240zg 7i5r1TpijwloDYrc2ZbMWmpJdMbroKtFfXxFFQbsefoD7n2yAzq0IilJo4Tvhk1WC4n8 rR0A== X-Received: by 10.52.176.6 with SMTP id ce6mr71864879vdc.57.1357557839588; Mon, 07 Jan 2013 03:23:59 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp56235veb; Mon, 7 Jan 2013 03:23:58 -0800 (PST) X-Received: by 10.194.76.137 with SMTP id k9mr95507995wjw.29.1357557838511; Mon, 07 Jan 2013 03:23:58 -0800 (PST) Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by mx.google.com with ESMTPS id o10si10044123wic.16.2013.01.07.03.23.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 03:23:58 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.53 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=74.125.82.53; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.53 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) smtp.mail=fabio.baltieri@linaro.org Received: by mail-wg0-f53.google.com with SMTP id fn15so1937191wgb.8 for ; Mon, 07 Jan 2013 03:23:58 -0800 (PST) X-Received: by 10.180.8.130 with SMTP id r2mr8760360wia.28.1357557838145; Mon, 07 Jan 2013 03:23:58 -0800 (PST) Received: from localhost ([2a01:2029:1:11e3:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPS id p2sm13052080wic.7.2013.01.07.03.23.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 03:23:57 -0800 (PST) From: Fabio Baltieri To: Vinod Koul Cc: Dan Williams , Linus Walleij , Srinidhi Kasagar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Narayanan G , Fabio Baltieri Subject: [PATCH 05/16] dmaengine: ste_dma40: don't check for pm_runtime_suspended() Date: Mon, 7 Jan 2013 12:21:47 +0100 Message-Id: <1357557718-15676-6-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1357557718-15676-1-git-send-email-fabio.baltieri@linaro.org> References: <1357557718-15676-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQma5q57vWHiBu+vfz1DSCwjRxuZa7WKl/Q4mtooi9Tr5pIX7+CF2YX8i2OZHRpq8izQkvBr From: Narayanan G The check for runtime suspend is not needed during a regular suspend, as the framework takes care of this. This fixes the issue of DMA driver not letting the system to go to deepsleep in the first attempt. Signed-off-by: Narayanan G Reviewed-by: Rabin Vincent Acked-by: Linus Walleij Signed-off-by: Fabio Baltieri --- drivers/dma/ste_dma40.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 2d0c63d..760576b 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -2782,8 +2782,6 @@ static int dma40_pm_suspend(struct device *dev) struct platform_device *pdev = to_platform_device(dev); struct d40_base *base = platform_get_drvdata(pdev); int ret = 0; - if (!pm_runtime_suspended(dev)) - return -EBUSY; if (base->lcpa_regulator) ret = regulator_disable(base->lcpa_regulator);