Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp2248513pjb; Thu, 23 Jul 2020 18:44:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1CGH4KAr1GwPwQ5Ym9OsaDBSLHxSkwulJRbysMdj4vhHHrbdhnp+eR3nFWcTK9tcQHGkE X-Received: by 2002:aa7:ce91:: with SMTP id y17mr6927815edv.105.1595555055112; Thu, 23 Jul 2020 18:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595555055; cv=none; d=google.com; s=arc-20160816; b=GRdh1KbRo5ho8LaZ68NLSk2efurlQn62nChzjhgPDph32U6ZRI5K8r63eWdBgK2xpC e8IhJ6Nqx5Va+8hs4h4uz7PVU6iwGVjsa+7PFP9So8ejgO7Ilt/KI+uNxD6xJtVGcSJH Ih614+R0gZ8DDTZ5XDL97J8rUjn48t1yoLf8ZKbu6zlaJBHHJNCwpnuE33jrRdQZYaD4 EFMglpiW1bf+r7Aogim2IyWaBwItXrJi4r74cy9UXCY2vH7Hwy7Nt3k9yHz+RD74lVsn 7Q9v38nA8OFoYlwm4J1ywgzQy2atNFigAGDFHl7sPdfpv6TqVHgQQshUdqR1Md/DJ9sK vqQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=vwOmtdmpUWa0sbzcMh9L/JKt4GaTTsnWZMExCK6IpvY=; b=i+tTo7NfQaAhlti0sm7B3ud8CshGc6TJmVBvgNM+C5WFNJR2L397JSazjVj8t5dn0R 9yrU1aMirhxj+aeSXPGS0bWopZvqkuyDVcZKbrpIt/fx6baERIMnv+J21S0ctY7VSm6R YVPNF783cpfNtlf5o6aaWOM1+jI7NhL1xxlP46p5xztfOWSK3SpnOUh72XO890sqN8Qq Ui0hSOlW5sis3JcCvEhWlczwUjaKcqFOWsm2aLkcH1BRK3Ze6StXaJL6hpWJcy0+Mu5o dWsLlgFoFDvkzhBxo3NohQwFqqap38KNv83EP/6ZpQwEYRXeaH/H3MeCwoXuYVjQbRXI ZxUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv2si2989180ejb.428.2020.07.23.18.43.51; Thu, 23 Jul 2020 18:44:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726506AbgGXBnW (ORCPT + 99 others); Thu, 23 Jul 2020 21:43:22 -0400 Received: from mga03.intel.com ([134.134.136.65]:24308 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726284AbgGXBnW (ORCPT ); Thu, 23 Jul 2020 21:43:22 -0400 IronPort-SDR: Wat8JI1bBDoB3KvxYXS/83GjPMi3j1qdGANmlPm5JiB7L/7u1uKXdX2Rk8a0qD7RsGX43GCh1n hhHmQ1NMaIzg== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="150632532" X-IronPort-AV: E=Sophos;i="5.75,388,1589266800"; d="scan'208";a="150632532" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 18:43:21 -0700 IronPort-SDR: T7YYDmQ9wjOSJPYKP8f87ewHjV5UJCnwN4NR7F+wP9L2IS9xMbwIg33+hd3/h7ojvQvZD3NB9Z GU0QbpLoGiCw== X-IronPort-AV: E=Sophos;i="5.75,388,1589266800"; d="scan'208";a="463063485" Received: from bard-ubuntu.sh.intel.com ([10.239.13.33]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 18:43:17 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, gregkh@linuxfoundation.org, jank@cadence.com, srinivas.kandagatla@linaro.org, rander.wang@linux.intel.com, ranjani.sridharan@linux.intel.com, hui.wang@canonical.com, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, mengdong.lin@intel.com, bard.liao@intel.com Subject: [PATCH] soundwire: master: enable pm runtime Date: Thu, 23 Jul 2020 21:49:02 +0800 Message-Id: <20200723134902.26290-1-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We should enable pm runtime. Signed-off-by: Bard Liao --- drivers/soundwire/master.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soundwire/master.c b/drivers/soundwire/master.c index 5f0b2189defe..3488bb824e84 100644 --- a/drivers/soundwire/master.c +++ b/drivers/soundwire/master.c @@ -154,6 +154,7 @@ int sdw_master_device_add(struct sdw_bus *bus, struct device *parent, bus->dev = &md->dev; bus->md = md; + pm_runtime_enable(&bus->md->dev); device_register_err: return ret; } @@ -166,6 +167,7 @@ int sdw_master_device_add(struct sdw_bus *bus, struct device *parent, */ int sdw_master_device_del(struct sdw_bus *bus) { + pm_runtime_disable(&bus->md->dev); device_unregister(bus->dev); return 0; -- 2.17.1