Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1735411pxm; Thu, 24 Feb 2022 08:25:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMMNxmTJlBAfnuESywv2rmwOifHydForw8XI04c3wnLAf5PZbaE+WbVxBtNcNrv5uM8GOS X-Received: by 2002:a17:902:6ac7:b0:150:24d6:b2ee with SMTP id i7-20020a1709026ac700b0015024d6b2eemr157470plt.168.1645719927443; Thu, 24 Feb 2022 08:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645719927; cv=none; d=google.com; s=arc-20160816; b=s2HvKR4UbgyPE4UmZUuXSMUAdzi1DTlY0FtVQPv8GDzrMjT9zI3GmzGjVXBfb8wQBK 65rxNXMJxAXZzjt2mVimSmHid7VuTGvYOwVu3Z0NriYxtyPGdyL8tfHujiS09Kt0ZnUJ 5HlKEAWbSoCIXqaeaSZPh5v0lMkULC/kWBcYIGOl9Fmg8xY5mZTAvJjU6ir+tYALdZhn AYPAccM+45FQLF18+Qz+jnbUKHE2XsQj5OIuDg9IP8jFB9D6p92vrHQju6QyACYfA1cn mz0w80zBBXSOqBmjbKCUgLerQcOs+7Y1tYeXeNddDq/JrJOGLHvG27kOIRHByHBR7Ul1 zwAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UmVaZe5WSxDiTqf74Pc2xrLlr9buKqJFnFD7mGOeeZQ=; b=uTf0nNWFdkQJNJaqvFnEtbqoIcmXILu+Et0v173O9bbBZikJbpAyQidUoW4Hr66LD8 yd7tsU8d3dMxipEJJjvtKLBaxG4y+zyvGAW1nX2YNyN8wSOxAv+ulMYs1db4YzS0/ZqX aE5O3nTffB5baxSv5jvqrUOVrse5tgLeXHmpJupAa15nbZzhlxBfxQVSGpQCmNc6rMsA 5JmygMK1AgSrDlnAfzLDvMTlJlWxD8cqIZfmJsDUmPj4p65RqpaD41T4PMKgrJW86RPY Ih+Ja8BAGM6cMZjOm1Ss6RatrU8GaYjPfp0PE5DQZeubY81LnOC9GNPWKe4xa8MgqQTl clQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X+4hbVuu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l7si2474770plt.163.2022.02.24.08.25.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:25:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X+4hbVuu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C83AD1E5216; Thu, 24 Feb 2022 08:15:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234970AbiBXNcM (ORCPT + 99 others); Thu, 24 Feb 2022 08:32:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234963AbiBXNcL (ORCPT ); Thu, 24 Feb 2022 08:32:11 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E1D20F78 for ; Thu, 24 Feb 2022 05:31:41 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id d17so3044792wrc.9 for ; Thu, 24 Feb 2022 05:31:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UmVaZe5WSxDiTqf74Pc2xrLlr9buKqJFnFD7mGOeeZQ=; b=X+4hbVuuPt44tTksNFwLknPj3qpjpjuhlAwO2hCrkvTD87j39VczB7GvnEIzthjT/e WOdbn8iXn1qe0tGbWLvewZ/UezZ39LrTIwtnT1f7l7F00geI/ii4e+VtMj8dUO/rhu7s /IgoenmAxZztegUykln+ZJHB6srH3RkMz2rRcrvuDPN2E7+NNwcwtDCeobU5bJldZ0ZX /Oz98ktWfKU61kq1DQfZ6s5ZoQeiScjnu1IG8zMskHj2QlS5AvBHBVTZPmdcSvPYqCSi ihQapqvmYJLweLPHEOO2lxc9bfnl85KgaAISDgIW/nUPH2Q6Sp9m5zsMvojK47xWkBpS 7ZoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UmVaZe5WSxDiTqf74Pc2xrLlr9buKqJFnFD7mGOeeZQ=; b=oSUTEz0JC86F6jj1ED2jgzdYSurFUXzIOpHI5Wrdnb8X69OgrWYtywdag4C1oTBVmB Nc9P7j4w5Za77z3q8z72rTsZpDijOWQ2EFCJk48V8LTdMLqN+mEZm+6Beo8admQ3O9J4 Kkoxmof9xtVfZDLcIQqWMV0T9Qrl0m6KbA0ozvIsJW0U7PhZao3sT9CvrSRxhxe9k0vV JQMbMYc6LkLS48/A0rSk/vFKspbEL3V9JDMvFp5LnWWd8SQFDiZk4/aHXaxPhiI4e8o2 SWFBRoILOEqW4W4ePfgvmi/XHAhzV6RE11ewDDvvuxlbQ5/QgwGb/z9fqcYUjf9ZGgJ2 8hGg== X-Gm-Message-State: AOAM530QhXij5xfHngrNq7ic7boM67KL/UkIsmQliHNVjt/zGNRcaEay zLQuPGBY7QTWA6jOQXt0Hgsjlw== X-Received: by 2002:a5d:46c9:0:b0:1ea:9cab:c2e4 with SMTP id g9-20020a5d46c9000000b001ea9cabc2e4mr2173369wrs.1.1645709500156; Thu, 24 Feb 2022 05:31:40 -0800 (PST) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id e33-20020a05600c4ba100b003810c690ba2sm2019142wmp.3.2022.02.24.05.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 05:31:39 -0800 (PST) From: Srinivas Kandagatla To: robh+dt@kernel.org, vkoul@kernel.org, yung-chuan.liao@linux.intel.com Cc: pierre-louis.bossart@linux.intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, quic_srivasam@quicinc.com, Srinivas Kandagatla Subject: [PATCH v2 0/3] soundwire: qcom: add pm runtime support Date: Thu, 24 Feb 2022 13:31:22 +0000 Message-Id: <20220224133125.6674-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 patchset adds pm runtime support to Qualcomm SounWire Controller using SoundWire Clock Stop and Wake up using Headset events on supported instances and instances like WSA which do not support clock stop a soft reset of controller along with full rest of slaves is done to resume from a low power state. Tested it on SM8250 MTP and Dragon Board DB845c --srini Changes since v1: - updated wake irq to not deal with slave pm runtime directly. - added delay after soft reset of SoundWire controller where clock stop is not supported Srinivas Kandagatla (3): soundwire: qcom: add runtime pm support dt-bindings: soundwire: qcom: document optional wake irq soundwire: qcom: add in-band wake up interrupt support .../bindings/soundwire/qcom,sdw.txt | 2 +- drivers/soundwire/qcom.c | 202 +++++++++++++++++- 2 files changed, 202 insertions(+), 2 deletions(-) -- 2.21.0