From patchwork Thu May 17 08:58:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 136128 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2012625lji; Thu, 17 May 2018 02:01:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpnARc0W1REaF2CTki+PLdMace9IBWIMdwggR+0RgaxomI/s3lARdR4ejYWH/WKCqfk1n+x X-Received: by 2002:a1c:2304:: with SMTP id j4-v6mr1072121wmj.48.1526547716750; Thu, 17 May 2018 02:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526547716; cv=none; d=google.com; s=arc-20160816; b=U0OSv0bTYmlvTe80WUgP/O5X9EHja2zlUX4XGgrc4F+G/y5ZYmYMWSiJK+xx9ke8V2 5Sikw1oN8xS+FBmE6YB59GPI+1eB9Q3/btB4K+hG9AD1xvkPchuc6fWO134bzk78Y7W7 RQuOLcN9eFGWFJm1pglfjr0C61Vx0xgBrKI0Y2LxrwU3Vd8sxUeVx/UOKJCVtnUcy9o5 wh/fe+3JX8OKJsPFA414ttIGI1vbe/KScgL9oXnZuamo/xs7NV/Ny0SL7Bn685+D+deK QGZ//SuS3y6G2hxn1ZGrErGR9SDPqIljkMat9uYfclBlkZorE4oHj8NPKKkWlNLORxR7 kZPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=8gIMzBY8bJfBu+edd7dv5gOldCG9oBe8LKg3LY9fdEc=; b=ZUaIqXhfW6goxlCjIBmD+fGWI/zdoiR7LYJFVPTLrwGQZZOEI3IE3dmS8vXTOqyZxZ 15rMhVv562Ipl9lTeczxaRwUltjnhkvtiU5oaoCHLL+JnYu1kln3uR2q+OPPrGTo+8Dv +8KKvBGIQhTXty46JbwWT/1UnUaOyW3cuQu/SwOLs6FqMpwDlC5eA4Zu+K3GgSO9rQye KCNG2tbPa1cCZ49nmynA18hQVYMw/rqXmhPZN3dA5Yit9eV7LOwauM93aKGuMMDpd27W EoGstzG9xjcExxM04uhvetARMTEEI1KsA3RMohrcNL2OeA6FwS/mDIIKRGBWIrgbtmtB hwrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=glqD5teL; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id b78-v6si3504379wma.133.2018.05.17.02.01.56; Thu, 17 May 2018 02:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=glqD5teL; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E40C326765C; Thu, 17 May 2018 11:01:12 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4CE11267611; Thu, 17 May 2018 11:01:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by alsa0.perex.cz (Postfix) with ESMTP id B46B4267365 for ; Thu, 17 May 2018 11:01:01 +0200 (CEST) Received: by mail-wr0-f196.google.com with SMTP id x9-v6so1950758wrl.13 for ; Thu, 17 May 2018 02:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W6uYmgHxTWzfDftIQnpPK6qurtIUOyuIABrSN4ITJSQ=; b=glqD5teLkkz8uqOhdkdQWzDFIY3iPH+XI85Uj5RAQDVyjtEzYkcfq1THfx6Fey6R5J 7rfhh4tgzEhocGkcb2smenPuR5waX4ZEbkIgZZ36XACgVPTIZqP1XgwA8bdt5WnAVZ4a jLb7T6opjtZIlIOPMRT/7syb2/X1gI9VLAHJw= 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=W6uYmgHxTWzfDftIQnpPK6qurtIUOyuIABrSN4ITJSQ=; b=Sk7olE1Lv8EpcNkbSP2ok5AJQaEgPOMj9CS1LfkoankykABy+JaTbNKGgaSJIL8+8t HS+9UsaepVbF/hDIsp2UwA2JjeLXP4EMrSE9abxEUQ/sHlQD4Li8s0tacJFtqdRv/Tm2 7Rwo07tD+Bhlt8rsz6nr7tABFDdUNiDtjgscVSJAlrQXo9L4KJoz/MRftOMlcGBcAWJ2 i17RSYj6FKTIM3Jy4k9r6a5jy9Fgbhi0UgNagJ8Nqow90E1+Ry2rai7RRfbqJ/iMPcd6 fLwKHprzWfs90mg8G/mGdJYN0YUWy/EFl04Tsr5UA3g/y5MAwyfLmiYLuu7QM/N6HyQB Ox9A== X-Gm-Message-State: ALKqPwe6IGOZa+iYIrVOPR4kYx1NHK1zfvQgxNlolgegf8stHcyi5mld L0Uh50Rz7qpUayf3a9QUjECutw== X-Received: by 2002:adf:b0e2:: with SMTP id j31-v6mr3130084wra.263.1526547661131; Thu, 17 May 2018 02:01:01 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id y84-v6sm4123098wmg.44.2018.05.17.02.01.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 May 2018 02:01:00 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Date: Thu, 17 May 2018 09:58:47 +0100 Message-Id: <20180517085850.14276-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180517085850.14276-1-srinivas.kandagatla@linaro.org> References: <20180517085850.14276-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, srinivas.kandagatla@linaro.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v2 5/8] slimbus: messaging: remove multiple calls to pm_runtime_mark_last_busy X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org There seems to be a multiple calls to pm_runtime_mark_last_busy(), which looks like a typo. Fix this by properly adding pm_runtime_put_autosuspend to put controller in auto suspend state. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/messaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c index 5a2ff01b394c..1c57b631031a 100644 --- a/drivers/slimbus/messaging.c +++ b/drivers/slimbus/messaging.c @@ -139,7 +139,7 @@ int slim_do_transfer(struct slim_controller *ctrl, struct slim_msg_txn *txn) * if there was error during this transaction */ pm_runtime_mark_last_busy(ctrl->dev); - pm_runtime_mark_last_busy(ctrl->dev); + pm_runtime_put_autosuspend(ctrl->dev); } return ret; }