Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp425106rdh; Wed, 7 Feb 2024 08:36:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDgDsVv6x4rCnarKvKNPrD8b4e1Cw1p48l9kvofnYCkDErZN5c6puHSrcR7XXMxVkhAejb X-Received: by 2002:a05:6512:b8b:b0:511:697a:3e71 with SMTP id b11-20020a0565120b8b00b00511697a3e71mr840433lfv.45.1707323810316; Wed, 07 Feb 2024 08:36:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVELkQa++20cYhpftEmaFCKAPLA+M7edF68xCCw6YrJnbfZcmt0OTHSQ1lx7BCVxKL5RSpbSatNoRIfiOE5u0pIa557/Z+nXbI7ZICmtQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u15-20020a170906408f00b00a365492ae71si1122971ejj.321.2024.02.07.08.36.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 08:36:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=Y56SWPo0; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-56773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56773-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 78F681F21D1E for ; Wed, 7 Feb 2024 16:36:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E27E281207; Wed, 7 Feb 2024 16:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Y56SWPo0" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D96401E48F for ; Wed, 7 Feb 2024 16:36:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707323769; cv=none; b=S/aX34lpqT8BNAjAmQQqfnTI7clfI2QyrEeWz7fuuenHsug1m8sXrXSrT5dRQ9V3OB97ovlskUOhFNzIjVjLU5ReFHRyYNA3LD3JJYRn26lVeVRdwL2pvbhhCBj/6EUWVEVdAYY/GU4+wPQgrSycTtPWN5kNUbJBm06RN611WO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707323769; c=relaxed/simple; bh=VoywwgjLXTwUOhSbbLxontbmbKuuFTrPOSRwdOlJD3g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bNUvjMpqLGirmeRNngcs0vw0RebFWvUCvZKw9NQDUNMwl1jb6vSt275BpWJHteru7Fto9nxUGzav1jtVvJVL46k+qoghLhM2NqT1dcvoNtjd5vTR2g8BLxJLb1An6QkoDS9nxCQn21ugkDMgY5zTY9tVHgWd8A0TWL9Rtn5DBac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Y56SWPo0; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707323765; x=1738859765; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VoywwgjLXTwUOhSbbLxontbmbKuuFTrPOSRwdOlJD3g=; b=Y56SWPo0ZKQCCGz/g+f+LRv5sAgXvUVFTecKv+yqypVVNuEkd25kT+9q b5qdfLeUAOal4+t3oV950nLQ7O//+LwZJm4sgOMXPHrjwhN4k1mOYfjhf ziXsH8ZmlSP3YCp4mYCLvKEJlpV1M/2RmWjraIrKb0USmZjwhGYq2USMJ +3KEfZL9eavUUqgiL1iSn8sJMpHMO1fVbPalSIL/mn1csiitCyUllb+CE MYe4eX/ohfh3T2XI9Hlc0Vem+XHOTSZ92IIYCH/SQazkRAfdQd/jWecIz uMeaKZjmUGcPihBXuMZ8U0W1tvx1kjPs2/ik+wWaVszNJ52pLwuOvuDtE w==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="12384561" X-IronPort-AV: E=Sophos;i="6.05,251,1701158400"; d="scan'208";a="12384561" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2024 08:36:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="910038493" X-IronPort-AV: E=Sophos;i="6.05,251,1701158400"; d="scan'208";a="910038493" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2024 08:35:59 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rXktw-00000002eqb-1cXu; Wed, 07 Feb 2024 18:35:56 +0200 Date: Wed, 7 Feb 2024 18:35:56 +0200 From: Andy Shevchenko To: Mark Brown Cc: Shenghao Ding , lgirdwood@gmail.com, perex@perex.cz, pierre-louis.bossart@linux.intel.com, 13916275206@139.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, liam.r.girdwood@intel.com, bard.liao@intel.com, mengdong.lin@intel.com, yung-chuan.liao@linux.intel.com, baojun.xu@ti.com, kevin-lu@ti.com, navada@ti.com, tiwai@suse.de, soyer@irl.hu Subject: Re: [PATCH v7] ASoc: tas2783: Add tas2783 codec driver Message-ID: References: <20240207054743.1504-1-shenghao-ding@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Feb 07, 2024 at 03:30:16PM +0000, Mark Brown wrote: > On Wed, Feb 07, 2024 at 04:40:38PM +0200, Andy Shevchenko wrote: > > On Wed, Feb 07, 2024 at 01:47:42PM +0800, Shenghao Ding wrote: .. > > > + .max_register = 0x44ffffff, > > > I'm always wondering how this can work in debugfs when one tries to dump all > > registers... > > regmap will filter out non-readable registers from what it shows in > debugfs so sparse regmaps will end up much smaller than they might look. > The debugfs code also has support for seeking into the output (since > each register is a fixed size) so we'll only actually render whatever is > being read in an individual read(). Thanks, good to know. .. > > > +static const struct dev_pm_ops tas2783_sdca_pm = { > > > + SET_SYSTEM_SLEEP_PM_OPS(tas2783_sdca_dev_suspend, > > > + tas2783_sdca_dev_resume) > > > + SET_RUNTIME_PM_OPS(tas2783_sdca_dev_suspend, > > > + tas2783_sdca_dev_resume, NULL) > > > +}; > > > Use new PM macros. > > ...which are? SYSTEM_SLEEP_PM_OPS() RUNTIME_PM_OPS() and pm_ptr() in the .driver.pm assignment. -- With Best Regards, Andy Shevchenko