Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp228824yba; Wed, 15 May 2019 23:07:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEivL6QVdF6LnYGiaX91zB/E4Ya7TDwihXi50evYgp7xF0hwxKlpiggHn39ElPNEbU/sKw X-Received: by 2002:a17:902:b490:: with SMTP id y16mr19252858plr.161.1557986843880; Wed, 15 May 2019 23:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557986843; cv=none; d=google.com; s=arc-20160816; b=Lr8VW6B+aygbeuSXsMsbmTNbVG01dz7f5gU9NB9XZZG0fCJWoCjwER7Lch37jX0ad6 i4bGfCe9mKWDMQShsCT85WE0jhuyxS9gURzMyBydRR27Wjfl/jDy5dx4LlcGwf7jvCFK QcRzli1+9LJ6BxNe/Nt4YhwXR6oyJBGES/2mG/DQ/naczMHh1f107XOdhOxmlnt34UNr aatpTKE2E10OiEnnBe1vsBpBgdJdUHJ7nzJFRuzJmqgkr5ydg81TLkyFkIMV/C/lFhEj eT/sc1bsF42lrDmnIfAPQq0IQqoWI88nqwSNyYhsOcLbl5U31VoyAYBreeJ1rz0hlWrM 2aQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Ljiq/1PTiA8Mr2syMDR+fu5fVN7nMjGs2Y3fxmRYdCE=; b=iHB1Wm+zcY1gnu3BdWOcccf6Kc4uGRkeQZ+wQP1mosq3aY3p/nN0JU5Uelb4v5vOCH AWQGyrDP02op00JwarndvBnJl2dm0YySy+bqqE74G48XLtIELdvCAPEkDfOo69VwSL2x Co5SNrs707MAnAF+7UJuHi+D1p+JL+b7eCKk5Du4PB9b3Xyd1FAt+v3GiNao/Y4Y4Szy 0JtWR6qmAkFgGaNarW49kt7dJ9gdGxlCtJE+KmhjXcoUFAekUbHnqjqSEj3/BG8DobXw JcPVufAIPhhCwApKQV6dAK3UPrA39PJfuwOed0f30kfDf6FPusdyPa3zxSEOY8FUNZn2 /ggg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=PNXWJJbE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g19si3998165pgk.532.2019.05.15.23.07.07; Wed, 15 May 2019 23:07:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=PNXWJJbE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726454AbfEPGEe (ORCPT + 99 others); Thu, 16 May 2019 02:04:34 -0400 Received: from mail-eopbgr60041.outbound.protection.outlook.com ([40.107.6.41]:12290 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726344AbfEPGEe (ORCPT ); Thu, 16 May 2019 02:04:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ljiq/1PTiA8Mr2syMDR+fu5fVN7nMjGs2Y3fxmRYdCE=; b=PNXWJJbED1I69b1aAK/wymFmeLJ4WzlySjQqXGCw9iTqHrLePyCC6O3e1UZgRtH0GjoMZ1eYuF+MUGuObz1s2+jbTApxWXc7zC2RDp2YAuiifiWW/kfQRDrlb9IuqvpA0ulMnJ//JVPi/lgbeqpepsbXMRP2UhJ4MsHh6Vyfp34= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6527.eurprd04.prod.outlook.com (20.179.233.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16; Thu, 16 May 2019 06:04:29 +0000 Received: from VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::a5b5:13f5:f89c:9a30]) by VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::a5b5:13f5:f89c:9a30%7]) with mapi id 15.20.1900.010; Thu, 16 May 2019 06:04:29 +0000 From: "S.j. Wang" To: "brian.austin@cirrus.com" , "Paul.Handrigan@cirrus.com" , "lgirdwood@gmail.com" , "broonie@kernel.org" , "perex@perex.cz" , "tiwai@suse.com" , "alsa-devel@alsa-project.org" CC: "linux-kernel@vger.kernel.org" Subject: [PATCH] ASoC: cs42xx8: Add regcache mask dirty Thread-Topic: [PATCH] ASoC: cs42xx8: Add regcache mask dirty Thread-Index: AQHVC605E7iIehgt5kyF+I4ocng7XA== Date: Thu, 16 May 2019 06:04:29 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.21.0 x-clientproxiedby: HK0PR01CA0064.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::28) To VE1PR04MB6479.eurprd04.prod.outlook.com (2603:10a6:803:11e::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=shengjiu.wang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0c244b77-d618-4694-4175-08d6d9c45bad x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:VE1PR04MB6527; x-ms-traffictypediagnostic: VE1PR04MB6527: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:376; x-forefront-prvs: 0039C6E5C5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(396003)(39860400002)(376002)(136003)(199004)(189003)(6506007)(66066001)(386003)(36756003)(81156014)(81166006)(52116002)(68736007)(14454004)(71190400001)(305945005)(2501003)(2906002)(4744005)(26005)(99286004)(71200400001)(53936002)(8936002)(6512007)(4326008)(8676002)(102836004)(5660300002)(7736002)(256004)(14444005)(2616005)(6486002)(2201001)(86362001)(110136005)(476003)(3846002)(6116002)(50226002)(25786009)(316002)(6436002)(118296001)(478600001)(186003)(64756008)(66446008)(66946007)(66476007)(66556008)(73956011)(486006)(14143004);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6527;H:VE1PR04MB6479.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: uIZLgW5BY0kjMyqwQQpOhpQri2X/dzBYfFmlMvT6UDOKnFoR69cmHbaalfWI1sX2JXDEUXvxV0t/HbXn2UUkwNIHaX8n/rtv+oqzuP/kMtjddpfK7eO1gZ66OJq5ApB+U01b2VMxPRh7s59EFLiVaoAdUbIjyoszz42mONf7UcDc3FERmoRxfcbsLRIXh9gqrXiOP4gsO+XGCP6Hadnq8UGF5mYZCde/LOvgnUn+3VY4H3O0t4C4aZdr6bRkDH0yNUiAU6B2Uh2T2KvVbDqz++vSFwI6z8EvSXchDyduKutqKs8rEOYlpuzyvheh4Gxnr3XF7K6SzOd3vcoK4UD9vI58x12uZbrU6JpdJKgQaghBaUk0h/Bw7uP9WRa1YZ7qHLnxUJL7KzcPXAlfhPgyNkjzWAu7Tjq98uf8R63cZpk= Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c244b77-d618-4694-4175-08d6d9c45bad X-MS-Exchange-CrossTenant-originalarrivaltime: 16 May 2019 06:04:29.8540 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6527 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add regcache_mark_dirty before regcache_sync for power of codec may be lost at suspend, then all the register need to be reconfigured. Fixes: 0c516b4ff85c ("ASoC: cs42xx8: Add codec driver support for CS42448/CS42888") Cc: Signed-off-by: Shengjiu Wang --- sound/soc/codecs/cs42xx8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c index ebb9e0cf8364..28a4ac36c4f8 100644 --- a/sound/soc/codecs/cs42xx8.c +++ b/sound/soc/codecs/cs42xx8.c @@ -558,6 +558,7 @@ static int cs42xx8_runtime_resume(struct device *dev) msleep(5); =20 regcache_cache_only(cs42xx8->regmap, false); + regcache_mark_dirty(cs42xx8->regmap); =20 ret =3D regcache_sync(cs42xx8->regmap); if (ret) { --=20 2.21.0