Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp265480ybz; Thu, 23 Apr 2020 23:24:54 -0700 (PDT) X-Google-Smtp-Source: APiQypKm+NMXnT3ruTUzw/asZtWIZvMvn8J4/lP5kExT/w/tgzm+QvNhNsnRoHKZUhUy6fIqfNuU X-Received: by 2002:aa7:d718:: with SMTP id t24mr5981005edq.29.1587709493949; Thu, 23 Apr 2020 23:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587709493; cv=none; d=google.com; s=arc-20160816; b=K+vef++ZYNI/qp/S8R2RJL/ZqDa4frOI4LNfRFkLgkBpoiR7D1kVBEN9k3Ajsm4I9Q XnS8Ch7UffZkJrb5uL90SJ+EhC+zwJmaJEAX9scjTS5QviG9BzIZAma8fwtdYQwMtZqq SbmevzrwMLRGIg7dHoSfAxlFGPlEAZ262p6v+qEYwpChVQTkfCT/XtIe1IKVfBiP0jKH v4qLoC4Hpe9Kyn0cF/L5CDaAzen7AVJN2rkJaz2H/++x4arxPYzj0W05VZe9GTciHhFK i14kS9MpeWpQc4FkqadyrqOxM0YQuZKXGAJXFoIuzgn04vDeV6a3dh1kgnn3U3/NtLIV ARgw== 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:to:from; bh=XClk+foQZ0+NEZo6mHWMfzRyA+ZMRF1crJ9V4c4Kozo=; b=F1BEsc2/6IzdAq1bB6zyz6ASEObo2X6Vfy3Q/F62N7hJ2UlU3A7wue6w6nlfyO+sbU SkMQUSJ739q1rKu8YyTTYPnJ5HT+KFsEsmHFam/kdgRP7fQVKyqX5fnHANl6zgdk3CFC tjrwyT3BQcxANJmxxbur7cwgkG7lBizUZMNplHBM8Osaot43t6zBWU171Mru62itqJL9 a5nl78PkEmGnlTFkOB8Vn2uvypbfRwHNHlf+WU/jmspvSd1ls3e4Zsw1K6bvRE6G5z6C qWKYizEh0IMfzkRJzKmiafAb7gmb5BtI7mkYhaKJriiyjzHYnzj0iZSCQo/0fIDo4wwY rzUw== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si2593948ejs.290.2020.04.23.23.24.30; Thu, 23 Apr 2020 23:24:53 -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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726413AbgDXGUp (ORCPT + 99 others); Fri, 24 Apr 2020 02:20:45 -0400 Received: from inva021.nxp.com ([92.121.34.21]:44208 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgDXGUp (ORCPT ); Fri, 24 Apr 2020 02:20:45 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6438B2002E3; Fri, 24 Apr 2020 08:20:44 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D70A32002DD; Fri, 24 Apr 2020 08:20:39 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EDF1D402D8; Fri, 24 Apr 2020 14:20:33 +0800 (SGT) From: Shengjiu Wang To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, shengjiu.wang@nxp.com, tglx@linutronix.de, allison@lohutok.net, info@metux.net, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: wm8962: Force suspend/resume during system suspend/resume Date: Fri, 24 Apr 2020 14:12:07 +0800 Message-Id: <1587708727-13657-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use force_suspend/resume to make sure clocks are disabled/enabled accordingly during system suspend/resume. Signed-off-by: Shengjiu Wang --- sound/soc/codecs/wm8962.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 0a2cfff44441..80332c147da9 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3854,6 +3854,8 @@ static int wm8962_runtime_suspend(struct device *dev) static const struct dev_pm_ops wm8962_pm = { SET_RUNTIME_PM_OPS(wm8962_runtime_suspend, wm8962_runtime_resume, NULL) + SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, + pm_runtime_force_resume) }; static const struct i2c_device_id wm8962_i2c_id[] = { -- 2.21.0