Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4591C433EF for ; Tue, 22 Mar 2022 15:58:59 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id CE832171E; Tue, 22 Mar 2022 16:58:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CE832171E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1647964737; bh=xEI63XS5UWPSVRbdAteV+Q1ZpDNlsQjUI7yBKiy+LsU=; h=Date:Subject:To:References:From:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=udeHYIS5odmGQpgtJQ3n+EUKSbt25+/5O3fL38pb2dMXOlittGHoEdf3tPV+Nnwan Cx1aXnFswgGwLqtCHoRe3f1+meY0rbM7Yruhsl5mDZJbJIIHDaju8Xj/ellocWdxvW 04S5qRYUCgxtnbuoUDPzSWjf486iB+J+95GpCXdA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 55AC3F8012A; Tue, 22 Mar 2022 16:58:07 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1625EF800F5; Tue, 22 Mar 2022 16:58:06 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6BDEBF800F5 for ; Tue, 22 Mar 2022 16:57:58 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6BDEBF800F5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="M212B8PN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647964680; x=1679500680; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=xEI63XS5UWPSVRbdAteV+Q1ZpDNlsQjUI7yBKiy+LsU=; b=M212B8PNqF9uCAspa3ijdX3BVNunp1/nuIzf9wZ9DG5Nj4+IoBNNEXB6 Lt8JihQ/0CcpKkDc0Q5/uHjRsHVYTB6JLPSB6BkE30zoMSJxs6k3PZzcM QE9ZvibB1tRZZ+US0Oxsbfz1vcwANT7pdL9Zfj5OyyToxddQyoWmV8QYf JveRDVmjVDaq8x4UjdEY+OV+jaoeE/CvaCdMKErPfd37tYmyAdHw2EI+N bxHlwrjln0Eza0BrshzLNcITaueJzDDSDErIsMTdRTMTKSGiJ5sNCH5jb nPrWT3krdE+SxQUMTRl3P2BGYjzZgHR8GJmGmKIp4O6wX0EETk0TiX6Qg g==; X-IronPort-AV: E=McAfee;i="6200,9189,10294"; a="255420296" X-IronPort-AV: E=Sophos;i="5.90,201,1643702400"; d="scan'208";a="255420296" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2022 08:57:56 -0700 X-IronPort-AV: E=Sophos;i="5.90,201,1643702400"; d="scan'208";a="583312154" Received: from rbrar-mobl.amr.corp.intel.com (HELO [10.251.31.171]) ([10.251.31.171]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2022 08:57:55 -0700 Message-ID: Date: Tue, 22 Mar 2022 10:57:54 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.0 Subject: Re: [PATCH] ASoC: intel: atom: Remove superfluous flush_scheduled_work() Content-Language: en-US To: Takashi Iwai , alsa-devel@alsa-project.org References: <20220322154826.19400-1-tiwai@suse.de> From: Pierre-Louis Bossart In-Reply-To: <20220322154826.19400-1-tiwai@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Tetsuo Handa , Cezary Rojewski , Mark Brown X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 3/22/22 10:48, Takashi Iwai wrote: > It seems that flush_scheduled_work() is called without any real > purpose at sst_context_cleanup() (the driver doesn't put works on the > global queue at all). As the flush_schedule_work() function is going > to be abolished in near future, let's drop it now. > > Cc: Tetsuo Handa > Signed-off-by: Takashi Iwai > --- > sound/soc/intel/atom/sst/sst.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/sound/soc/intel/atom/sst/sst.c b/sound/soc/intel/atom/sst/sst.c > index e21e11dac000..3a42d68c0247 100644 > --- a/sound/soc/intel/atom/sst/sst.c > +++ b/sound/soc/intel/atom/sst/sst.c > @@ -360,7 +360,6 @@ void sst_context_cleanup(struct intel_sst_drv *ctx) > sst_unregister(ctx->dev); > sst_set_fw_state_locked(ctx, SST_SHUTDOWN); > sysfs_remove_group(&ctx->dev->kobj, &sst_fw_version_attr_group); > - flush_scheduled_work(); > destroy_workqueue(ctx->post_msg_wq); It could also be a confusion, there are calls to flush_workqueue(ctx->post_msg_wq); for suspend-resume, so wondering if the right sequence could be flush_workqueue(ctx->post_msg_wq); destroy_workqueue(ctx->post_msg_wq); ? > cpu_latency_qos_remove_request(ctx->qos); > kfree(ctx->fw_sg_list.src);