From patchwork Wed May 16 11:36:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 135995 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp805012lji; Wed, 16 May 2018 04:39:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrNCuMYWrrGWwJwBVP4KJodZy0d6PSS2wH2ZSwQBLZcSmOpCfJT3WjyZD+Jr82Wc8pSrkSJ X-Received: by 2002:a65:49c3:: with SMTP id t3-v6mr453357pgs.65.1526470760956; Wed, 16 May 2018 04:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526470760; cv=none; d=google.com; s=arc-20160816; b=P+yNsK21dGYvH45M7Ngr0ioMITQBGvIU0x60GFWwH8AgB4KPoBrTU9maRYSMZR1DlW qzPQVvTu9hgVdD7lHuoYQCnRKJmwzBd/SDBtuHLurDkic9nNID1xwqag8k87et3le3wv +QI3Tukhc4r8B5eaJ55d4MN26YzUDLbW6R3H9J7P4B41Iv4660YBJwLMrQimqe9ZwTAV mN0M/Kyv63B72d5GxNUWSZZ3mz4vCqRluieP1k1Kh25pT1A2xOlEg3YJdF/Gh3xpf1/r 0M+uDzCwUxPN3iQYkkIFUC2zP8yojCUhLe/bKL1fy4l94KjcgPz7i+nrzJyJpuDz5oAp HLiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=W6uYmgHxTWzfDftIQnpPK6qurtIUOyuIABrSN4ITJSQ=; b=PHnwmrNSLKpUiExjqmk0QGgzCysuqEzfIqfQgy1wSUYqR8xSMqKm9IK4EdcC98hwN/ ReWzkMVhDAMEzRB00BZeVnubqgsacegS+U7K6vnZp+VRuVaJRIqDj8T7VxgU6l8XHvaF j8RaGn+Gw1+Vr7k0GE7VEtfsbEr4ksNtzR2tHi/1iedWkTOJSKGHs6PtUFhuyMpiajwD HxouTt8qNoUo+wUUAKprzT80RR6tz4q/ihCC/qnqLgOBsrIcDJKnkaYYkOXS443d75TZ SLWGZOM4GBNyEydXmloKdHb0dWm4JhbU6GD8sP6kUXRtW1cUGS8XpG9+QuBUPHyB6gRn O1GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I6zFDkxw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si1916979pgq.603.2018.05.16.04.39.20; Wed, 16 May 2018 04:39:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I6zFDkxw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752573AbeEPLjS (ORCPT + 29 others); Wed, 16 May 2018 07:39:18 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44368 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752530AbeEPLjO (ORCPT ); Wed, 16 May 2018 07:39:14 -0400 Received: by mail-wr0-f195.google.com with SMTP id y15-v6so550992wrg.11 for ; Wed, 16 May 2018 04:39:13 -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=I6zFDkxwvFW+lgto2/wRVS0ZT5fQOjV4bs0PEF/l8AS4kt+1vAdzvkfc8aGzENDce4 6j/8aPzOD2G+omgoLosjAq4PyKGDCVSSeE3yQZwFpxYFkHEPqkFhskxVGFewBKPbBmz4 0NP+EqatS+p40XLvYk46kin/sYgI6zVHSwYv8= 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=NLyFVbqYDVzhQVaVF179yx60X0IWcPRWtB+l68mGX6Db3HAJJCaZXResQtfMqBO5PU DOJVAkDcyt1NyGbOMa1OaWzCyvJwSUn43MxyYXPVIc2azMJrElsAvLW8Yb4zbNP1yJ0r jSPxAVsLOLyWJDK+JKdNGzV5z1AdJH/pEoOjZEBJ0HBJ3wRx21KTPrX8Z4z7vijcyASw tSlI+hBzQCp3ZqYQ6FvAQvAclJ8ZtDLW2b+dZcf7RAos0lrr+86GBUgyvwlgyLUYUh4w nC7cQTKhZEDZzlaQl+b7WERdL40FrGd6LexXkGW5S246zH5cpEgKezusGR1kHsrU893d 9JIA== X-Gm-Message-State: ALKqPwcJ8bo72pqV6FMs2xJdja5rpCaaTgZCr7FWySVhn1Mb/D2TktaI pVYYqxfRl/xrJqJT25K9eZvCUw== X-Received: by 2002:adf:968b:: with SMTP id u11-v6mr543407wrb.184.1526470752921; Wed, 16 May 2018 04:39:12 -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 k126-v6sm4504263wmd.45.2018.05.16.04.39.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 May 2018 04:39:12 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH 5/7] slimbus: messaging: remove multiple calls to pm_runtime_mark_last_busy Date: Wed, 16 May 2018 12:36:40 +0100 Message-Id: <20180516113642.28136-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> References: <20180516113642.28136-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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; }