Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1962121pxb; Fri, 24 Sep 2021 16:29:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3C9p85WQeyqrlu8VRA0YKLXCMQxljhEk8Ex0aiEgGaIgySlmXGoiq7KoGCJHVcDEXWGPt X-Received: by 2002:a05:6e02:2184:: with SMTP id j4mr10202119ila.323.1632526163227; Fri, 24 Sep 2021 16:29:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632526163; cv=pass; d=google.com; s=arc-20160816; b=LJIbcHVmU4aOYXPJkQe52U/MVtVQkq1zHiOtfzMqnIX8+koNdY5u3l/dCf3aLmik94 77aKLvHxxYOg64Io0nMn72fR18BKGop0RrXTsrNFXIoOdN2BuPR8fRmhmP5ABQiq8Yw6 DvAN76Xr6l3uumvvIOeZg/xBjR+q66hIiJ9OGFtvbFJsaKe+3odR7jeDO8xMe7qMCrsN fFL/HERsljyOIs/KoNib+qA11JG6iaNTmtv720iouwpDXUov0I3loNgqMn7vMDCiglnP wUtn4jIki2OkJU+0jF6HRnqEv9POOpQ6kin7vi78+a2XwJINgZ17HhcYrgxaMmKnRrz8 9slQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=xkHZBvJC40c0Fbav3wzpkR6tiSBp7610yCdhQgSXPcI=; b=maIgeRU3AxGEkqllahP4VMWbCItJlhtafaTSXfSq8nTvguF5bFJvZ/SlenEGCODWeY hDwFmv9wHmLC7ha1TgUBDJokxERU2MYMB/6TY7wKi4esjr9/wOjtTVN7J21uPVZBLnGx sgSJ4qiJDpZmh6jOWTXgleVMlGdlkvD91NsGLphPHONKJZW0+xekGKxrBvr4RgBrAj2j z2uY2UCZbLf/To1VCLvdA5xvQYFZJ4bPLToUoBFA35/S/bmFkDE/+/Kcx5g/8mPiJvAQ 3qKlkM/MCDWUILHisV8d1tiJ1UEtqvsCYFEYuhknRm1FWeRFF4f5rf4wZpAQ/eKATeQW y40g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@maximintegrated.onmicrosoft.com header.s=selector2-maximintegrated-onmicrosoft-com header.b=aX7S7G1q; arc=pass (i=1 spf=pass spfdomain=maximintegrated.com dkim=pass dkdomain=maximintegrated.com dmarc=pass fromdomain=maximintegrated.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si13571371iok.86.2021.09.24.16.29.11; Fri, 24 Sep 2021 16:29:23 -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; dkim=pass header.i=@maximintegrated.onmicrosoft.com header.s=selector2-maximintegrated-onmicrosoft-com header.b=aX7S7G1q; arc=pass (i=1 spf=pass spfdomain=maximintegrated.com dkim=pass dkdomain=maximintegrated.com dmarc=pass fromdomain=maximintegrated.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233113AbhIXWPe (ORCPT + 99 others); Fri, 24 Sep 2021 18:15:34 -0400 Received: from mail-dm3nam07on2116.outbound.protection.outlook.com ([40.107.95.116]:20193 "EHLO NAM02-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230139AbhIXWPd (ORCPT ); Fri, 24 Sep 2021 18:15:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ix3kgPvpppZMWNC5Bepgave1pvq14h3wqFWFdr/W09ljHeXZGk66kkwPnhhNyP1QYwExPAeQwx6ULTDqOw/jjswc56WMcxQ9Uzb7lj3/nb+ED12IzrlXy5tYyLRENTix8VK+KXurPMQ+GB0p5XBB4PCt2EddoIpa33DeWPN2ChFcU/9ogbZLDIooNq4/EG3DUxLb0LzXZeiP/ozo9mTCGvhNAklzsDXkRLsK2gBf4rTxavAHBIxfvWRK0hycldGadOHjdpTk8f6RekyeXaZ3Rl8AfGB/2KLbaIP7E/prZJg4PhKCPtXig+DZeLfOcDZc5puV4FBWlRRoGqYZHjsM3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xkHZBvJC40c0Fbav3wzpkR6tiSBp7610yCdhQgSXPcI=; b=Eck3EF1qdVsiGKp5Pytgs3wB2xaJ3aqHuRSd3szHflmZTSmbTOGhikIhypkg8s4Ilj0wiEI1qCN6EGz4qaZpRwnvfV/eD+t8xlq9tYLfLPXouujFJmzlA8H0qUPjH1NlmyK9kIB9kb2LrBkRw03SQj8Imb99heU0UyXvB3XoJMFRtK6QscWRvPMlJWDISlZS7bAGK5Xbx6U7ABCIEh24j+jJwlUIOY2aSfDkCoxh18vjEtWDhaTAJTivghUhxJf1x25fbAH05+UtW/U6Q4NcibiPfmUkeHjkAx3ASGDPbnZUnAf4swUdW78IeWmy1ya88ynSwCvKgNQc06D4CEQXTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=maximintegrated.com; dmarc=pass action=none header.from=maximintegrated.com; dkim=pass header.d=maximintegrated.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maximintegrated.onmicrosoft.com; s=selector2-maximintegrated-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xkHZBvJC40c0Fbav3wzpkR6tiSBp7610yCdhQgSXPcI=; b=aX7S7G1qOkxo88FWuA/DXIldnuyOuhGI56RmBhQ6ws+S0qEPGWJyWpawcNTOxvrggAHeqh+gCC7F+OzFAYDzV5gPugWteoz29BhuaUvnx8Lc3lFpqQupjdSFnmtq+CPFxJEUHO71oMlz68vMQ+v9V3vf651WB0VrIXrw0wjfzKQ= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=maximintegrated.com; Received: from SJ0PR11MB5661.namprd11.prod.outlook.com (2603:10b6:a03:3b9::5) by SJ0PR11MB5646.namprd11.prod.outlook.com (2603:10b6:a03:303::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.14; Fri, 24 Sep 2021 22:13:58 +0000 Received: from SJ0PR11MB5661.namprd11.prod.outlook.com ([fe80::31bb:4f91:1eb5:7178]) by SJ0PR11MB5661.namprd11.prod.outlook.com ([fe80::31bb:4f91:1eb5:7178%7]) with mapi id 15.20.4544.018; Fri, 24 Sep 2021 22:13:58 +0000 From: Ryan Lee To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, yung-chuan.liao@linux.intel.com, pierre-louis.bossart@linux.intel.com, guennadi.liakhovetski@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: sathya.prakash.m.r@intel.com, ryan.lee.maxim@gmail.com, Ryan Lee Subject: [PATCH] ASoC: max98373: Mark cache dirty before entering sleep Date: Fri, 24 Sep 2021 15:13:05 -0700 Message-Id: <20210924221305.17886-1-ryans.lee@maximintegrated.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: BYAPR03CA0012.namprd03.prod.outlook.com (2603:10b6:a02:a8::25) To SJ0PR11MB5661.namprd11.prod.outlook.com (2603:10b6:a03:3b9::5) MIME-Version: 1.0 Received: from localhost.localdomain (73.189.52.211) by BYAPR03CA0012.namprd03.prod.outlook.com (2603:10b6:a02:a8::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Fri, 24 Sep 2021 22:13:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 71c82b00-ce46-4ff0-7324-08d97fa89aeb X-MS-TrafficTypeDiagnostic: SJ0PR11MB5646: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:134; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5UTWASrYUdORacDtJhhq5dN4XWrVnOPzSZkX/5cmXP6gtXQ0TL0FvvU6dHMvTh7GKS2LP+yUPMDrXH3vJ3TMe3w02M8b7UERpVAy4P2m35fwKiSr6G8BF+BYVkC9Kxsdtqj/eHg+9bbM/SZrCYHoOqOu0g8e5hCAK0R32e5F0jAxiRAiW3ijoRx0sCgIyld+RfA5yPxMwXbA9z7wQNwZ1Q+UVg7yfvQRcHft4ZNhSqk0p3z2cxZMPrbIHOS/DisiNqpWKtrDqxkP5B7eB41b0ZXiGuwjrhYI1by6C8v1i6u3hNN7qW4pOZk1LHa6CszfTTluk1KFpIkl5wZVS3CaDsLFNhH0THrOpmIsKOcTk0Y72GtQ70nTIeCaSU1lTtH+uDNNRhSm7uOWLxBl81oUOxyttBaek53pvpu8ojQa1ldo8ftkniEE+UratfvY6WnAnK1cJrY7i80KQHG+eNI5veijB7gXvjW6Nll4b1qsYIDt5dMmJUmY07eoLOo62WZkLLx3aFbwnVvkJqlI2IFNN61XImZU4+E4nzIF1Uh6fKRG0JZX50WP/iXLJJE0ROvOGt7lF9D8md5rIgRgzRlyC5Vv/Jt0XFk3kORuQrA41SicmHXUek0DbgOmmiumi4j88c0kzLYFp349UD5s4QXkHRaT2QNhQFbX4N+sqNNjCUxgmrGprguNNUeePJNzcoKeH84HFE171IEeEjrBZVhV8Ml6JqrEHiiscK5vd6SLoIQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB5661.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(8676002)(956004)(6486002)(26005)(1076003)(6506007)(2616005)(36756003)(5660300002)(6666004)(4326008)(508600001)(6512007)(52116002)(38100700002)(107886003)(66556008)(66946007)(66476007)(2906002)(316002)(83380400001)(186003)(4744005)(8936002)(86362001)(7416002)(38350700002)(14143004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?rb+yh17rphPd6c9Fvzc9yPfvBabrR8UD8UhcF+TiU7D0tekM9urpnVTqdEAt?= =?us-ascii?Q?C3MfSr75l+sp5hQ2pw+HopCse7NWtEItUJZ0BVZbLMj2ZPNTZ2a41jvtDbCB?= =?us-ascii?Q?BrZMxj7OE4u+z6+q9TbaPAlm+1nD5MRH1P1o1fwmi/mn8zpnJc/zSIOy1sPU?= =?us-ascii?Q?hL6CbzhSadGMqRnpzibeOMVWwa/ddqBTUleeQphopejcEHiypbZUTu761iPg?= =?us-ascii?Q?pSc4I6LXbzV9ZqCRf9hqvGEj5BMMZJIqAzUI7mhYiL1K7JyZfnj0JgcHNiO8?= =?us-ascii?Q?jH5OCRiBOhnL9h8CGR3mX7lznk0eWbKjK/lhB3+VFMljhnQ4glfHoD2He9h3?= =?us-ascii?Q?OV0AUmg/1jb1eJ+BJzVjIGhH9RlGW1Iw9aXULxswp3K9tRCsDjrd8qZPrK17?= =?us-ascii?Q?IqS+4nAWLqzQIJe4CqQno9Zpsvzn9ICFZSsTxOsZsuAOF55h3TgWr3C89mGI?= =?us-ascii?Q?CaiPfIy3Lg6IEz3IBWIeE++Ol1oa6S+vzVcdu7Jaqx9WuPP8nNxj3dOAaVIt?= =?us-ascii?Q?wFhk8L3ADeTuc42G1PQOguQaIWwaD4yi+V0pTJ+jj3u2iz+y6TusI+QnKyI1?= =?us-ascii?Q?6fUQq4H7SUP8Iy/UUEjGoLHIZqX7cglQBuFvKHZPQwA2IGOVaaX2PuzOrEFD?= =?us-ascii?Q?4UCdpDYrFzF1hMFJTR4FjP6xT/OetEEfXbiuI4uUegugIp080H8N/jFjt0Z6?= =?us-ascii?Q?BKpyIojt/xdwYrTFTCuEn11iC3Q7jYEXkFhjNT7gEVNCplTlBl9TQn0K0yqC?= =?us-ascii?Q?cslg0gZ4R5b09joyp144M8eEkpiHikPFcxeS7FXN0IivtWPsra9LBpGP618d?= =?us-ascii?Q?K4Ek3zGseDLpAb2fPrOL93yQp9/vr/IeeX/FDjOvyakdBux1MoiqQMYu+wO0?= =?us-ascii?Q?TCHuTEKJwAUMuuwxYV+x3tsTvcKtagcyTD9BQ84mbTXB659JsUzwXsg01A/E?= =?us-ascii?Q?1i9d2MpDpA+OSWrQFS8oo078xJfcRhSCK46j4986ujmqsMc8Cz3aFsTFGjtT?= =?us-ascii?Q?E8wH/jewJTAprNsE9fpI8C5x/xfaInMn2Z0srkc5h9iRuI/s1oy032NH7uic?= =?us-ascii?Q?utNnwRHyTmiy6ejYgbcrnknZIpUZI3eoKw3OHp1QzwThCWigiRX7b0tVEkUu?= =?us-ascii?Q?SMcXNuUDdnPmkCWm5WLY0nLUzpUEIYH/Doioa7dG4pFJnKaUEQVjQ77PXBV7?= =?us-ascii?Q?HJVtUgGjtU+9FeWYDTjG0OZo8EHkK7ttwooROqfJHG4J5YHpJF7rY7wDNjLy?= =?us-ascii?Q?10a5nB+X1MRe9BSBAZebsoB4Xy7HgGQMPrfrnS/S2Hf/4XIXj3yvYPe2SFU7?= =?us-ascii?Q?gfrqck8aad1Zx0C58T1nbC2b?= X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71c82b00-ce46-4ff0-7324-08d97fa89aeb X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5661.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2021 22:13:58.1245 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fbd909df-ea69-4788-a554-f24b7854ad03 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sosKzA/SEcMFGsamjw6h73qLf4cvPtpqwuq5o+icb+1i26jmavoJ1v50GzpZfkZYANX+T5L334Ff92eYGradeQZD3CKZTr5tQoAHI9Tjk0M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5646 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Amp lose its register values in case amp power loss or 'ForceReset' over Soundwire SCP_ctrl register(0x0044) or HW_RESET pin control during the audio suspend and resume. Mark cache dirty before audio suspension to restore existing values when audio resume. Signed-off-by: Ryan Lee --- sound/soc/codecs/max98373-sdw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/max98373-sdw.c b/sound/soc/codecs/max98373-sdw.c index dc520effc61c..a7e4a6e880b0 100644 --- a/sound/soc/codecs/max98373-sdw.c +++ b/sound/soc/codecs/max98373-sdw.c @@ -259,6 +259,7 @@ static __maybe_unused int max98373_suspend(struct device *dev) regmap_read(max98373->regmap, max98373->cache[i].reg, &max98373->cache[i].val); regcache_cache_only(max98373->regmap, true); + regcache_mark_dirty(max98373->regmap); return 0; } -- 2.17.1