Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp828448pxm; Thu, 3 Mar 2022 05:28:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOKO08JIInml/G0yU0HQOGheJPJMFoq2egibDLHrYTuziIJTqm/hYXOEiEjA6E5pTcA9Ej X-Received: by 2002:a05:6402:909:b0:415:cdbf:4748 with SMTP id g9-20020a056402090900b00415cdbf4748mr5640156edz.395.1646314099867; Thu, 03 Mar 2022 05:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646314099; cv=none; d=google.com; s=arc-20160816; b=RzDFGHcKDsl+vMuLztYUv4P/1cCTP5R0rIIKYmdVzvGd6M4GAW+rjePInF9pnsW5B7 uPBKvNxHXFeeb8aDvGdkYfbxQv8vELutxhaa2dwgBzMb6mzQ90erHMv1b+waUtRZRnAS 55SVY0zS2NLAjuER/oOFGq2aSvEh9wXiHgBxiGiya6ZvBhHO+KQek9pSF6CFpEl6WLC6 2u/QIpg5+pX0j8GLkHVSFIi6tcMVlGMJ6rLjU2F2JkWF7frVvNcOjqFx1GbehzoZczbV cO4ujb1U92l5o6oJcIfmibdDCRMXoV5L7omdVhYqE37wg0/P7Jur3KXcmD0KpESZQkwk KNGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=jy/eLWfmHZk4p4Njv6BVmkKZB0XpsQJckLrKwVAajxo=; b=yZYiVSEQ7dBCnT4hc232/snNoT9+GlZboIVwXh2VJ9CXAGZANmk2QfN/GvYeIjkuLI 7wxv7iaDLp8dwbMUm4WZSrYI71xzxeFN3f2+EKkwr2nTbdIKL9w9RuAKjd80LmGbZHa1 BUO16qLi8/J+ogkVfcVtfp44/4G3IiI2frPBY3PcHFp/0XmzxPaR29JAK4Lf5o3mcRo3 knqQaknMsQJ+J0pOj7VLINVPJRw65RMNHgWGhING7uXra7egjbn481CpVbBQlpd/M3v6 YZ5ck24jGfnn6sp70guJj0XahTva5whzEWfDYekML8SA2fchpP95/bhToLlTrL8p+84y 0szA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a170906b09800b006d69d20e916si1232037ejy.603.2022.03.03.05.27.56; Thu, 03 Mar 2022 05:28:19 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232504AbiCCKxI (ORCPT + 99 others); Thu, 3 Mar 2022 05:53:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbiCCKxH (ORCPT ); Thu, 3 Mar 2022 05:53:07 -0500 Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 481A117B8AA; Thu, 3 Mar 2022 02:52:21 -0800 (PST) Received: by mail-ua1-f54.google.com with SMTP id y44so2007628uac.11; Thu, 03 Mar 2022 02:52:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jy/eLWfmHZk4p4Njv6BVmkKZB0XpsQJckLrKwVAajxo=; b=55T5txiZ/UyE7az+tHRha/fNAkATpyoxBdJmMK0VsYa3yUTafkQ5G3adhCybqyX6Ic laVc9k2PL82enFRU8RB8g2mtUHnJWNJJMUK6mFl883wpXT4mroYcnXEJZOk/t3ovMmjp 0vuxbyXDIKfc2bOZZ66huee1kwG26LVWj9A27InqOVGtGC2gDoQ9uCXaPFLQByVP3ETw 0eXGCuPQ1H/YmlTLHZ7HRAZA/HQ6J2yHS5iBtQkq6SFrYa+ESOyievlssaUPmGhjjxEY 6BlZgjoy1QvOb/zred8jZf4/U5DTAXMLDpUuTiIvjYtxY5wUsIGDB0vul1GTZtBd/Bkn M9RA== X-Gm-Message-State: AOAM533XoLj9NNYTFX5yfOv4s4pIEht5R6vRnM8r3E/5txih3m9S+9fs nsAq+0zocEaKvPEBXjcZIZkDCVniyKTX1g== X-Received: by 2002:a9f:24d6:0:b0:348:d872:5917 with SMTP id 80-20020a9f24d6000000b00348d8725917mr4847247uar.118.1646304740321; Thu, 03 Mar 2022 02:52:20 -0800 (PST) Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com. [209.85.217.46]) by smtp.gmail.com with ESMTPSA id d13-20020ab0378d000000b00342bf7d383dsm290250uav.11.2022.03.03.02.52.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Mar 2022 02:52:20 -0800 (PST) Received: by mail-vs1-f46.google.com with SMTP id q9so5053751vsg.2; Thu, 03 Mar 2022 02:52:19 -0800 (PST) X-Received: by 2002:a67:c499:0:b0:320:2cd8:9e1a with SMTP id d25-20020a67c499000000b003202cd89e1amr2476378vsk.38.1646304739297; Thu, 03 Mar 2022 02:52:19 -0800 (PST) MIME-Version: 1.0 References: <20220228172528.3489-1-srinivas.kandagatla@linaro.org> <20220228172528.3489-2-srinivas.kandagatla@linaro.org> In-Reply-To: <20220228172528.3489-2-srinivas.kandagatla@linaro.org> From: Geert Uytterhoeven Date: Thu, 3 Mar 2022 11:52:08 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/3] soundwire: qcom: add runtime pm support To: Srinivas Kandagatla Cc: Rob Herring , Vinod , yung-chuan.liao@linux.intel.com, Pierre-Louis Bossart , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , ALSA Development Mailing List , quic_srivasam@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 Hi Srinivas, On Mon, Feb 28, 2022 at 7:13 PM Srinivas Kandagatla wrote: > Add support to runtime PM using SoundWire clock stop Mode0 on supported > controller instances and soft reset on instances that do not support > clock stop. > > Signed-off-by: Srinivas Kandagatla Thanks for your patch, which is now commit 74e79da9fd46a597 ("soundwire: qcom: add runtime pm support") in next-20220303. > --- a/drivers/soundwire/qcom.c > +++ b/drivers/soundwire/qcom.c > @@ -1345,6 +1399,105 @@ static int qcom_swrm_remove(struct platform_device *pdev) > return 0; > } > > +static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm) > +{ [...] > +} > + > +static int __maybe_unused swrm_runtime_suspend(struct device *dev) This is causing build failures if CONFIG_PM=n: drivers/soundwire/qcom.c:1460:12: error: 'swrm_runtime_resume' defined but not used [-Werror=unused-function] http://kisskb.ellerman.id.au/kisskb/buildresult/14704362/ > +{ [...] > +} > + > +static const struct dev_pm_ops swrm_dev_pm_ops = { > + SET_RUNTIME_PM_OPS(swrm_runtime_suspend, swrm_runtime_resume, NULL) > +}; > + > static const struct of_device_id qcom_swrm_of_match[] = { > { .compatible = "qcom,soundwire-v1.3.0", .data = &swrm_v1_3_data }, > { .compatible = "qcom,soundwire-v1.5.1", .data = &swrm_v1_5_data }, Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds