From patchwork Wed Jan 4 16:03:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 89882 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp8565728qgi; Wed, 4 Jan 2017 08:31:20 -0800 (PST) X-Received: by 10.99.209.5 with SMTP id k5mr126951965pgg.145.1483547480198; Wed, 04 Jan 2017 08:31:20 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j62si72847948pgc.184.2017.01.04.08.31.19; Wed, 04 Jan 2017 08:31:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbdADQbS (ORCPT + 4 others); Wed, 4 Jan 2017 11:31:18 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:38016 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751012AbdADQbR (ORCPT ); Wed, 4 Jan 2017 11:31:17 -0500 Received: by mail-wm0-f49.google.com with SMTP id k184so265449490wme.1 for ; Wed, 04 Jan 2017 08:31:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mxKThOeXeuD7/DmDtElAIahsmowdtGj56Dp1Zd8Xph8=; b=flVIDS8VfUDjQ4V5ONdehldp96TGfytARvJMaqJQteTWDOP78DeOPvfJvl7rBq1F07 7E3LtVWSFIyEDH76vd9UVo5+78g3CdITOFAHVscsdx3CjS34cGzGryRvXPyUy+ZUjN71 vSdADDsDZsdHZSp//fW7Jn8jVu96yFQhQmdtRwTNszx9+CsbtoGTzCUwf5jnzp5g5AFK LsI3PRWWtkFCjvK9tDEKoj6KORllBU4k/xrpLwboPQ9NAIDJ5KP/vRjDLNsQGIUgrl5W 27tYG8sJW++ODG9FVIuGjRZM/wRRILfKJViU5BH+zkHJnjMzbLJQFW0oT46PVDh1hQqq Tg2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mxKThOeXeuD7/DmDtElAIahsmowdtGj56Dp1Zd8Xph8=; b=k3ToF4Ibvgl+FN5Eqhn3pAX8sB0x3k+wcsbRkacN8eH4GiSj6yrfarEXFGXGz+C6kZ I7e/xdtZjgr1cals/LVm0+5x+DFEvKwS+KRS+i5N8OQFfplG35AkNVVROF3miMgIh1gf bSorqgYezLwx0RMhRxz9oZuf3J4QPRlCxB7QBkvhRpI42J+yhstvH2934o2TzFQ8dnr+ 9wqSg71iu9I+RtWkfo72AtUuyeWFcO+mbQwy/WcpV1BhYRQpN11p/7QdcXf2sKlMx5bN Lz0VgrOVYwhe5V89VtpPzvSrVZBAdiE0jzOEEnOg6JySLa96T+BKoQBVgon9KIa13JJX qQpw== X-Gm-Message-State: AIkVDXL+JCIWYf+oHp2uLpTJza6Xwk5oQ2TXJhUZGYdqjaxOCC/A7VfRpBxuC3C9tKu5uMKm X-Received: by 10.28.4.146 with SMTP id 140mr57759938wme.60.1483545788747; Wed, 04 Jan 2017 08:03:08 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 14sm95826547wmk.1.2017.01.04.08.03.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Jan 2017 08:03:08 -0800 (PST) From: Alexandre Bailon To: vinod.koul@intel.com Cc: dmaengine@vger.kernel.org, linux-usb@vger.kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, Alexandre Bailon Subject: [PATCH 2/2] dmaengine: cppi41: Ignore EINPROGRESS for PM runtime in interrupt handler Date: Wed, 4 Jan 2017 17:03:01 +0100 Message-Id: <20170104160301.22406-3-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170104160301.22406-1-abailon@baylibre.com> References: <20170104160301.22406-1-abailon@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org We can occasionally get -EINPROGRESS for pm_runtime_get. This is happening when an interrupt is fired before PM runtime had time to update the PM state to RESUMED. In that case, don't print any error. Signed-off-by: Alexandre Bailon --- drivers/dma/cppi41.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index dfc880a..e4bee1c 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/cppi41.c @@ -351,7 +351,7 @@ static irqreturn_t cppi41_irq(struct cppi41_dd *cdd) int error; error = pm_runtime_get(cdd->ddev.dev); - if (error < 0) + if ((error != -EINPROGRESS) && error < 0) dev_err(cdd->ddev.dev, "%s pm runtime get: %i\n", __func__, error);