From patchwork Wed Mar 21 01:33:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 132167 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1561595ljb; Tue, 20 Mar 2018 18:34:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELvI7cV614Z2yWGxKozKN0fMyeOUNruFHOZBAMXFrTgE/neNaV4Kggg1uBiU2IArR9UcAK0S X-Received: by 10.28.220.130 with SMTP id t124mr1286018wmg.60.1521596045040; Tue, 20 Mar 2018 18:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521596045; cv=none; d=google.com; s=arc-20160816; b=lkZtJuw1JTGPHojTAMOy7jo22lk7zYU81CZITCDaGVbVi2iXWx1lvdqHtLWYGsd5P4 NzuRawtbdHPdzWTodbYrwiGz19RCaSeWh7yzL9WPtEl8UQyGxVygVD1/vqLDCvGKiQMk rp9BynViR0Ps0nSU7WiLVscYCaSM84JKkERtYPyhuD3gtwIAKfnQgK14C6TW0ycwhrDK HK2/mX9R3Ag7jKhzc5TKaWdlHhO6TPqftnqjtlEMk4h1NfKsa32jFmbf0Fls3Y/la1Vx I9R5dnCgYPr4JfAInfVuMftIysvguQPwignXt6p0ipJgqRN8ISPpmYVtkZ9IRvfwLWyK vGOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=l3vEC6tDwcfa7fN9ryiDGD3ys+W4SdUlrQqP10GNOrY=; b=A0MlL9J4MUcQ4ACu2caE15Gi5M6I/nWYOzQ4LsViWwsr5W6Nrx6wdcpDQkaNiB0hdA fnZHUZT2qhJrRFrgK5g9aSaPL9eqy0cbUIAcymtSpYM01fjRX1vWdq/swMTgFq1Oj+X7 uoqNWVMDQqbI1pfFmeuBvpzIPQisEFl9Fwptki5+0ItaeJxkPVMLOp5medMBAyLupq1/ qR7WlIF/90ifn9/XuXH3FEe64W2q1s3VO+R08a+pNRPlkZtOs1LRLV523E67CYoVevid NDTGeh1s/z9Vfm1oVx706V9c+gH5DwVIhqJpVHc53FnztaKLgIEHPGNYSKCyfiIkA7Ly ly+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=F/FeICQS; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id h78si2068694wmd.83.2018.03.20.18.34.04; Tue, 20 Mar 2018 18:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=F/FeICQS; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D106F267345; Wed, 21 Mar 2018 02:34:03 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 005DE267359; Wed, 21 Mar 2018 02:34:01 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 2C6D3267339 for ; Wed, 21 Mar 2018 02:34:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=kpmT516OnFMvyQAbgxc1FELDv/m8BRm3rJ4MtdcdZdw=; b=F/FeICQSsBD8 xxZZ01BqO7rQdIgz4QKHwDiswkaS1glONRssju6JXcr4UZBdP62Cg9Z4+DnYmSA0G9G42ytSN4Yom QitvOMA1ilqUaH482Gy0TY/Xv3izIZMmp0Awd3YrWiUIxQ5KIl+zOfXZOv4RVJWgKPs/BF491oDCc 1MK+8=; Received: from [218.255.99.6] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eySdZ-000062-Gu; Wed, 21 Mar 2018 01:33:58 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id DBB4544007A; Wed, 21 Mar 2018 01:33:54 +0000 (GMT) From: Mark Brown To: Nikita Yushchenko In-Reply-To: <20180320084115.23880-1-nikita.yoush@cogentembedded.com> Message-Id: <20180321013354.DBB4544007A@finisterre.ee.mobilebroadband> Date: Wed, 21 Mar 2018 01:33:54 +0000 (GMT) Cc: alsa-devel@alsa-project.org, Kuninori Morimoto , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Mark Brown , Arvind Yadav , Bhumika Goyal Subject: [alsa-devel] Applied "ASoC: rsnd: set pm_ops in hibernate-compatible way" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: rsnd: set pm_ops in hibernate-compatible way has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From f8a9a29c4fe9dd0dd2206cc4368efec95dc9defb Mon Sep 17 00:00:00 2001 From: Nikita Yushchenko Date: Tue, 20 Mar 2018 11:41:15 +0300 Subject: [PATCH] ASoC: rsnd: set pm_ops in hibernate-compatible way Use SET_SYSTEM_SLEEP_PM_OPS() macro instead of direct assignment to .suspend and .resume fields. This makes driver working after restore from hibernation. Signed-off-by: Nikita Yushchenko Signed-off-by: Mark Brown --- sound/soc/sh/rcar/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 5aafc37f5119..96526c91a94b 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -1569,8 +1569,7 @@ static int rsnd_resume(struct device *dev) } static const struct dev_pm_ops rsnd_pm_ops = { - .suspend = rsnd_suspend, - .resume = rsnd_resume, + SET_SYSTEM_SLEEP_PM_OPS(rsnd_suspend, rsnd_resume) }; static struct platform_driver rsnd_driver = {