From patchwork Tue Jun 19 15:12:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139132 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5328546lji; Tue, 19 Jun 2018 08:12:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2qBkNLycI4fSnNRB1OtyQ7s+UcfS4uyNhwDEvejZ+okbaDsENihqa3iiEjOpky7eaIhkl X-Received: by 2002:a17:902:7c84:: with SMTP id y4-v6mr19056868pll.262.1529421144486; Tue, 19 Jun 2018 08:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529421144; cv=none; d=google.com; s=arc-20160816; b=W/EGH0Zx7J20qqDCZe5JFmI/gQuJX9ksihPQwaJkG/nEY3cJmHOvQlpAN3236SX1GQ TR6kG/3g3zJ51Oc3oDW1sC5Qqdigm+BF2bao2Wtw5Qd2KEEaJCvyMt2/8XYXc8ADxpW6 gI0ysCzvJ/z6u0QY7r3uiOvRi+/EOed91tVVqf3G+Mo3vunLL3H5lSbwk4zttiOqfv2e u561KxZfMgAbFnptDAhvI5ZA/Rh2HAYlaH6I/YePopaPJ/Ex2RKnlj+kVvUWglGa42mg 4xNqzAc67Aav0+r8k4Dud8+VDUMaBM/nRQUuqxnEnsDGgMvz9qEyX8Ga6/PdtV3QmA0v IZjQ== 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=Fvr02i+DSG3C3Al0W7GMsT3MO+3lYjUmlnvPmtF1i8M9qx7mWVlf1uCFka9IC5T10x PCVcvw6RXGnZ1DhlIugR9BJfvGJHvgX3fNk9Kg0UVCQvmDz7viLOqH/826arirFY8w/4 FEyCFCfQhWMv0wKrp5U6Jwh/49gk7PXMKpb83LlYr1LIDFhOgeIlwSmQWAjW9BrjcA9N fYjccH507oya7E88hJ7nw1O4/iwPZr8tZIH70PA0OWCCF1I+CjmL5BqbxmFBk4UCxDip FZk3IX+rUipbavKShqQ7LHrJJcI/EBoJHvgEAKos0uUKH9x9aW/48w3U6riEwwPrsIDM SiTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ce5/RJdR"; 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 y5-v6si17751596pfj.239.2018.06.19.08.12.24; Tue, 19 Jun 2018 08:12:24 -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="ce5/RJdR"; 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 S966670AbeFSPMV (ORCPT + 30 others); Tue, 19 Jun 2018 11:12:21 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:45353 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966646AbeFSPMS (ORCPT ); Tue, 19 Jun 2018 11:12:18 -0400 Received: by mail-wr0-f196.google.com with SMTP id o12-v6so10829wrm.12 for ; Tue, 19 Jun 2018 08:12:18 -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=ce5/RJdR3pNVxMlHnERNXWfif1AYgYKckpJtyvmy0LtmaouRGnMtjAeuCHBpiykJBm /g/eo/yprnu+rFq9aqVrnoHJuiideiPNTO68AqKL3cubW/hJB1USuTeiuz/8Bia7Be0H m55rR5KmCidedEhGsSisGMeehiI1id254hoZY= 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=HIsd8B1Ex3koHqhG80GCUo0dDB/Pn1xPooafyUYSQqM9dJf17d6Xz82i7vexYx8XPC OhS4o0ZSOZm/hql7CSQM4qUPcLxNwjQqLHE6Ib0aJ7IUwGjO3R5mCCeBj77Zr6a0PZu8 AGNbNV6JW64oR6kk7L+ChC4mV3Mqba97HgMGQoMs7zcKPITe1FBgXDwtZ5++BotwFpge Mh1owQlvyY1mK8M6Rud5BACzmdaybpYUGkPUrOC0pJ5NNKJRICSH23bqlPcdLYmU6DTo LjUppK/T3C78G9b93UD7phh7xi0ynDacsbcXfJ+4hQlJ40bFfNvC10fhvynuVd22Sk/3 a98g== X-Gm-Message-State: APt69E3ICi/K8vFpnMCMBT/IBxjd0bpDu54jZ5LtDvKzqX8RhSD1taYa sibfv1ooyZQ+hCAMoxZGHZtpvA== X-Received: by 2002:adf:96c4:: with SMTP id u62-v6mr14917454wrb.204.1529421137418; Tue, 19 Jun 2018 08:12:17 -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 f81-v6sm473599wmh.32.2018.06.19.08.12.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jun 2018 08:12:16 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 2/4] slimbus: messaging: remove multiple calls to pm_runtime_mark_last_busy Date: Tue, 19 Jun 2018 16:12:03 +0100 Message-Id: <20180619151205.11300-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180619151205.11300-1-srinivas.kandagatla@linaro.org> References: <20180619151205.11300-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; }