Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4612706pxb; Wed, 20 Apr 2022 06:56:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuhZiurtytPcv1jFzr15lMoG0B+2Oed0CO/TEY4pjmqJ66DatGh7xE02OT/hjYCSSU38Uk X-Received: by 2002:a65:6e9a:0:b0:382:1804:35c8 with SMTP id bm26-20020a656e9a000000b00382180435c8mr19700356pgb.584.1650462993348; Wed, 20 Apr 2022 06:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650462993; cv=none; d=google.com; s=arc-20160816; b=Bq/APTJHj0Vt06+7GUmnHSSn4IiabPT9u3DPR2yJpzhgWbEs590SrqTwAVJ71MU3jH kqE1CQoXd1yp61FxhtwHzIR+VnGB/9xI7SkypQ5KQj2y4lG048HKH8b/IGnJHvRaOzHr EZJdM17k6dtQEgBctQVzcmph7lFd+oCSGqvvlbq3xFT3vPJIBJhLCApZXtwq9hWPbCDu ldzsdOq02FEkJiINfsg+XPqcn6JkekQIDflOnBRmXn0zCcZqFFA4uHwN/KuViStQhgNh +R4BuE+wTxNXjCGeYuqytJk6JU8HhL3mh8P1UsQj3tPbErgImhvZeZ6wJhqSgyWwkHjg UVzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=tuMOwWLioY/iFEpN4gGrPVtA7XxfDV9QZCb4Nfw936o=; b=psEXkXKE0LBSmV5PpODJG7adZpfWm3QId7w969UbwyFxBCc0PTE4WZ7ZDo+EoxKfEq FySyeckMS/NJkOM2kfU9Z8zAy3Pvp1CqYk9Olnos9Yw10JDyLPSj/1xni2pLPvMvOwD+ /N/OFuHC3AzfnPhl5tE8vVD/Y31piCrbvpMoHzHKJRGQgmE7g+XLcs0C4omBGgvQckbS khOlaGojzWAfkI6aSlHSAIp7el16nr7Fh8Np5gW1OQ0fKLqsdF8kTgAaH2OKq9CuzdMw ckdeRsxkhBbMkL4SHD2iDnrc0+8CvflFDT8DvxcvWP/FPfcp2diAgGRNOA4xGSDi4Y0p EBxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EUHlW0vb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a62b403000000b004fa3a8dfffcsi1996151pfn.179.2022.04.20.06.56.16; Wed, 20 Apr 2022 06:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EUHlW0vb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358948AbiDTCfp (ORCPT + 99 others); Tue, 19 Apr 2022 22:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358939AbiDTCfm (ORCPT ); Tue, 19 Apr 2022 22:35:42 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B20C1839A for ; Tue, 19 Apr 2022 19:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650421978; x=1681957978; h=from:to:cc:subject:date:message-id; bh=P/LF63BZojFF1TydFmx94mDoFedoUAjUhNq7cH5d2nc=; b=EUHlW0vbtdw80EixVXRl5BeyYb4AjkZeXfcir/29UyVFD1eFQM3HaZ1L W1LT7FuV9hvXdVyjuwdwt8CJ0Tbbgtnm4oF+S+aEfEmw5XtWZ52OqiIwN fWGofJh2+l7KeKXQoeEv011a1be05b1UTBh6PH11IONjVZcTiVgu35jvs 2imdH1UK6CPzoXLRg7sJuEnWWR5fMFvG+pwdNSVW1v9NoP6ee8YzJYnsB ZQU7DWkxvdZ//TMm2fFx9y9cX3g3lmEdaCiBuLJrXLudEnnTCmuc6VIo9 MSB+5z8yS6lTbRBVAiOjwBk4pk7ZrPK10iiyIGotgeWjIiTWJaT2RQSuL Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="261522434" X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="261522434" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 19:32:58 -0700 X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="529554550" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 19:32:55 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, srinivas.kandagatla@linaro.org, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, bard.liao@intel.com Subject: [PATCH 0/3] soundwire: pm runtime improvements Date: Wed, 20 Apr 2022 10:32:38 +0800 Message-Id: <20220420023241.14335-1-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series provides a solution to solve a corner case issue where the manager device may become pm_runtime active, but without ALSA/ASoC requesting any functionality from the peripherals. In this case, the hardware peripheral device will report as ATTACHED and its initialization routine will be executed. If this initialization routine initiates any sort of deferred processing, there is a possibility that the manager could suspend without the peripheral suspend sequence being invoked: from the pm_runtime framework perspective, the peripheral is *already* suspended. Pierre-Louis Bossart (3): soundwire: intel: prevent pm_runtime resume prior to system suspend soundwire: intel: disable WAKEEN in pm_runtime resume soundwire: bus: pm_runtime_request_resume on peripheral attachment drivers/soundwire/bus.c | 12 ++++++++++++ drivers/soundwire/intel.c | 6 ++++++ 2 files changed, 18 insertions(+) -- 2.17.1