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: 9497051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6B095606A9 for ; Wed, 4 Jan 2017 16:10:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5269927FA7 for ; Wed, 4 Jan 2017 16:10:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43ADD27FE4; Wed, 4 Jan 2017 16:10:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A7B127FA7 for ; Wed, 4 Jan 2017 16:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031435AbdADQK3 (ORCPT ); Wed, 4 Jan 2017 11:10:29 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:35958 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968586AbdADQK1 (ORCPT ); Wed, 4 Jan 2017 11:10:27 -0500 Received: by mail-wm0-f45.google.com with SMTP id c85so226257076wmi.1 for ; Wed, 04 Jan 2017 08:10:26 -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=Y8RyoqKisgtw+OfY2zE2WNYIJBtkmfUXNdsFc7b8ASYO/28OjHJB7KNp81ceCOU38p 62DuQkIho7dWb7U2b7AZCBH5bNW6sycsUFHuih515fveoaxUnbzw1jc+Ts8sYxxuAwem +bBljgF/+ZHzQ9aB1OmsO01SeZ+ykhaPkaPn8s8X7XqYIAV4WnD7t7mBQ8g4zoiaA/fE ErIJnWTBL20d/j7MoJIMHob2SbqT/VX8I4QlsxD0gkFYURtyW9QZBw9vSgGzxy9MTQFX X4kW+ujGRTa+hS7sOBJ+EaKG3ogfgsqKSFclxK+1pv7VtMQHcziCZSWG30AsgDGAJoVx b1LQ== X-Gm-Message-State: AIkVDXJD6oM3iaEImOvzubMNfpI/KMk7vjLkLcfwCsdO13qRsSLIG47J0hvwRpnm1MMq+t5n 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: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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);