Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5486033imw; Wed, 20 Jul 2022 06:43:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYMNARGD+XSo7pfHTtWZe3sLlN6GJmLJXyjswZS8WQ6djBhvg0Q8Db7862mQ+cqYp9XE28 X-Received: by 2002:a05:6402:358d:b0:43a:c600:a678 with SMTP id y13-20020a056402358d00b0043ac600a678mr51134844edc.219.1658324619249; Wed, 20 Jul 2022 06:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658324619; cv=none; d=google.com; s=arc-20160816; b=DXNWwgWp0XwLYd2XsiiHYlsksqhxqp7tARGoborlrzCUDaAnN0+g+FlxZcM3JTOJ53 unZ9epx0idqSJ1mpBS3mKydQKYGS1LWuwx/wUvl8jl8V0KZYzucIvAIy9SSAn8wF1UoU TgfypU7JVuOnxmmthi6Jb00XeJN510sN8PKELyKWo6b1N55oD5+qpJFGZRRFoYZ2u+Cx /H1jm8GPI625JhDhICG6j1Sh/wp746cdZMld+foak3H5obqhNjWDUdsGO6tsjCZGpxOC 75946B2RkbJZASDmC74X+fLvuu21xoXbeByXXOepEtyfzdpfM9wiiJ+x3pOzc1FNUYSr 0diw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RfQmoS6in15vYYkLz2EFtIQI9aT+TVM880J6Bo1kgjM=; b=Xe1DfOxquNOa937b7EJz8KmJhV+RXMh/UUQ1asfmIh2LAKfgz9LL2o+YY4PgyPTF3k fa/6nv9Y0Bgvn04ctG/CZ8xeliT96WFKeaTV+GStP+4ZcwM1fBWJWf9ZjErUH6ZTwrTf VajoQMAKOXp87x4neqljfV5SxeNcNcj2ySYthPl9BpfGZek2+WpGOJ0wqnPfos3xWlT8 TK3n0PbJvJ7WzdDJ2c64CAJkNL8VQWDAu0TM4Oz9G7bqJj+9gpzH52f1qZzT/rkHj+N8 luVj26998VVOBeOTgSA9sMqwehECVyFgJBoZxbE5bKQg4xVfDk5AyRdR1r9F0Cufs8W9 r+Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MHVCXt0r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020aa7d48c000000b0043bb8206050si2178430edr.450.2022.07.20.06.43.14; Wed, 20 Jul 2022 06:43:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MHVCXt0r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234092AbiGTNY5 (ORCPT + 99 others); Wed, 20 Jul 2022 09:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiGTNY4 (ORCPT ); Wed, 20 Jul 2022 09:24:56 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC7444C61F; Wed, 20 Jul 2022 06:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658323496; x=1689859496; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=4gxar5AEPCnR9+FK95tI+w/Lpiv0BWnqimOZ6dlY+h8=; b=MHVCXt0rCS4H6gVwgARu1xsy9HFAiXILhrGDGcnGw331lENH6BgCpr4l 33BuJinX9++vTeVK5eDiaL6qX0/jrssD/2evwPJIEUDjALvdca48KyTOa n7A3Ceb9uqQlJlW6AtXoYGmM/Jg8dOYRDsUt6DgVi32h1ZnfN9ECNyA8C b5dewrIpTbnIJvp4Iwhwl9EGbK8dkpMkURl8OGwdVcsAGXCSfU70ZYl7F iabM/OOaDbCDpPbmPxxRO4BQk3jnNYFn6pCQsWIBnTI9AkJ+7LW0A8OxR Ybh1RqrC5Ph4x/ye368RnDtwlI0gjsBqJCA4m3ZyU2JmHn5b9TZfSqDtZ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10414"; a="287522273" X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="287522273" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 06:24:55 -0700 X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="573303123" Received: from tgeorge1-mobl.amr.corp.intel.com (HELO [10.212.79.208]) ([10.212.79.208]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 06:24:53 -0700 Message-ID: <8c839963-4244-3e22-3dea-f060603883c1@linux.intel.com> Date: Wed, 20 Jul 2022 08:24:52 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0 Subject: Re: [PATCH 1/2] ASoC: SOF: imx: Add i.MX8ULP HW support Content-Language: en-US To: Shengjiu Wang Cc: Shengjiu Wang , Liam Girdwood , peter.ujfalusi@linux.intel.com, yung-chuan.liao@linux.intel.com, ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com, Daniel Baluta , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , Rob Herring , krzysztof.kozlowski+dt@linaro.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , sound-open-firmware@alsa-project.org, alsa-devel@alsa-project.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" References: <1658208367-24376-1-git-send-email-shengjiu.wang@nxp.com> From: Pierre-Louis Bossart In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/22 03:57, Shengjiu Wang wrote: > > +static int imx8ulp_resume(struct snd_sof_dev *sdev) > > +{ > > +     struct imx8ulp_priv *priv = (struct imx8ulp_priv > *)sdev->pdata->hw_pdata; > > +     int i; > > + > > +     imx8_enable_clocks(sdev, priv->clks); > > + > > +     for (i = 0; i < DSP_MU_CHAN_NUM; i++) > > +             imx_dsp_request_channel(priv->dsp_ipc, i); > > + > > +     return 0; > > is the assymetry between suspend and resume intentional? You are missing > the update_bit for EXECUTE_BIT? > > > Yes, intentional. After resume the firmware is reloaded and  EXECUTE_BIT > will be updated at trigger DSP start. That's worthy of a comment to help reviewers, thanks.