Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1418999yba; Thu, 16 May 2019 21:44:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSb5CubgmsFqijQHQwZK3RpT5rffDRJHB6gN5lPnBLl2Gw5+W8o4iwym8ZmS/0wAwn8+SC X-Received: by 2002:a63:6941:: with SMTP id e62mr49924566pgc.99.1558068241190; Thu, 16 May 2019 21:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558068241; cv=none; d=google.com; s=arc-20160816; b=pDJtHnMVtF71tktzYNzvE76wLB50jV3eJMa/8xTsjNU2mEVqD6n8gnPqdz7vdf3JoK qn5c6yGGT2gDFcI8/t15kBs4Drb0A0xSLkCtjCWvmZXlVykFY69PN84j/u5EP2JabtsJ V1fpu4iFMdursWjO9B21UMn25W9lK3qOpU2xHc3VARp/xio+AAtkqlC/xO7EnEwxbHzA F8lzzhKEwhRY9avxw/pp7g+ZntfQY1e64GgbitBrnLvdrAwj4GqhClkraEvklEXfXcNj suyJu4pn/OXmHDZl2dV5BB+WugT0rD74/ZtALJZPSyHmdIAh1SdQZ1g0rOgUGu23oGm7 NXtw== 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=KZm7lWpJjhDmiQ7fwwrYZcKVGp4JO1oOfZKBIfTUZQM=; b=j8vTkPF/08Gf2A5Wf/qc+bQDx17Qi8GwNcW8/7vAVCvKr8liTgusvP1SnpgEC3XY6v ZhH07OA0ec3lzj0X7uA6GMAAVid7IZPJRK0TygK3XpaGEVMIXUb+nBqrrhsi+FG4vksT lfhJ5W76afDJz8TE3CYQOxuCBPbT3XQUvOUz5MU/xTaMHg47SMyJHU4PpdtoNQ6Tj5/y 7obG8TqFd3ilhBDj3wln1pII59JijGlH5jTVoaImKj9Dibke6/3m5s7XTrFQalYrKhok gcfm2UmxaKOOSIcDeUTMbwSKMyeYstjGzerA0qfeYhtOSIbbplai6GkLE/Uq1DGe0hS8 8x0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=iMEg2Y0p; 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 t22si6959976pgg.292.2019.05.16.21.43.46; Thu, 16 May 2019 21:44:01 -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=iMEg2Y0p; 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 S1727626AbfEQDWx (ORCPT + 99 others); Thu, 16 May 2019 23:22:53 -0400 Received: from mail-eopbgr150087.outbound.protection.outlook.com ([40.107.15.87]:39566 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725929AbfEQDWx (ORCPT ); Thu, 16 May 2019 23:22:53 -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=KZm7lWpJjhDmiQ7fwwrYZcKVGp4JO1oOfZKBIfTUZQM=; b=iMEg2Y0pgVgzgzrl7w4c0Y59sPFVuxWAzg6hB7aqRZEiXDEq2tfNJq6OELofG9wR0UVjaeCIUw3/DXTABY/AV2ZxHyJ4XPYuO3FEFC+U79UHCLBaJdz0M6iKOC+4bFgXmHGjngqVHIySAfN4E5NsjZrfJMgyfy7P60tTdGZo2sc= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6640.eurprd04.prod.outlook.com (20.179.235.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.16; Fri, 17 May 2019 03:22:48 +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; Fri, 17 May 2019 03:22:48 +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 V2] ASoC: cs42xx8: Add regcache mask dirty Thread-Topic: [PATCH V2] ASoC: cs42xx8: Add regcache mask dirty Thread-Index: AQHVDF/NkmTtx09i40uM0x+rPzELzg== Date: Fri, 17 May 2019 03:22:48 +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: HK0PR03CA0080.apcprd03.prod.outlook.com (2603:1096:203:72::20) 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: 6711de96-fe39-4cbd-4358-08d6da76efb2 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:VE1PR04MB6640; x-ms-traffictypediagnostic: VE1PR04MB6640: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:248; x-forefront-prvs: 0040126723 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(376002)(396003)(366004)(136003)(346002)(199004)(189003)(66446008)(186003)(102836004)(6506007)(386003)(486006)(6512007)(99286004)(316002)(14454004)(66476007)(476003)(2616005)(6436002)(25786009)(64756008)(66946007)(26005)(66556008)(118296001)(110136005)(68736007)(52116002)(73956011)(66066001)(81166006)(2906002)(2501003)(305945005)(7736002)(53936002)(50226002)(6486002)(6116002)(36756003)(5660300002)(8936002)(3846002)(81156014)(478600001)(2201001)(256004)(14444005)(4744005)(4326008)(86362001)(71190400001)(8676002)(71200400001)(14143004);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6640;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: QQxMXvtmcUolt8215P/YhdmJfjd3PtMFr9y7RwoOdmWJRDYXHnVtSb/ZytteY80daT3EoPGvD/paoVN/2IXVkxTX83I2SL1GxSK41aJbkAZPQl+3LO6ajWK+JxeZzz8tWfED0xb4ikSbzzuxtbTFw5KircgGD+YSqfPCsAOdgGKnnCEzTxSDLCIpxSkd1UXmphwnPOUC3inJ4Ns/H+KHOXijckq1x23v45mjX/6l6bOa4tCHRJRLciIOi2OcFbqGrMezl73MyV5JODyB0Vj3nG87H1S5d4CUSV2opYpHCu9dvRfsH6b6EG5qBL4ZQWLWe75wvJGrHoxEc36zupva07sruis4wwqj+RulROt7X3RffM36EmJTmX3TJuyKA9/AlKWmJt20jKaNxLCOY0pYo66Jih7qjx+qGgQdMbhOkSI= Content-Type: text/plain; charset="iso-8859-1" Content-ID: <778F5B7AE505E94CBE4D7E1A85E36435@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6711de96-fe39-4cbd-4358-08d6da76efb2 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2019 03:22:48.6244 (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: VE1PR04MB6640 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/C= S42888") Cc: Signed-off-by: Shengjiu Wang --- Changs in V2 - Don't split Fixes tag. 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