From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753004AbcL2QUu (ORCPT ); Thu, 29 Dec 2016 11:20:50 -0500 Received: from mail-lf0-f51.google.com ([209.85.215.51]:34890 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752789AbcL2QUt (ORCPT ); Thu, 29 Dec 2016 11:20:49 -0500 From: Nikita Yushchenko Subject: Re: [alsa-devel] [PATCH] Revert "ASoC: core: replace aux_comp_list to component_dev_list" To: Sylwester Nawrocki References: <1483022987-28843-1-git-send-email-nikita.yoush@cogentembedded.com> <061fafe6-dc46-375d-9e57-cc59115a04aa@samsung.com> Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, Kuninori Morimoto , Chris Healy , linux-kernel@vger.kernel.org Message-ID: <92ff85cb-ba21-07b8-c26c-a86de73b786f@cogentembedded.com> Date: Thu, 29 Dec 2016 19:20:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: <061fafe6-dc46-375d-9e57-cc59115a04aa@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> This reverts commit 1a653aa44725668590b36bbe2d7fe4736a69f055 ("ASoC: >> core: replace aux_comp_list to component_dev_list"). >> >> That commit tries to remove card->aux_comp_list, using flagged entries >> in card->component_dev_list instead. >> >> However, components are added to card->component_dev_list in >> soc_probe_component(), which is called for aux devices by >> soc_probe_aux_devices(). Before that commit, it traversed >> card->aux_comp_list and found aux devices added by soc_bind_aux_dev(). >> After that commit, it traverses card->component_dev_list and finds no >> aux devices, because soc_probe_component() was not yet called for them. >> >> Thus all aux devices are lost and any setup that needs them no longer >> works. > > I think we can't simply revert that commit now, after commit > > 9178feb ASoC: add Component level suspend/resume > component_dev_list is also used for the component level suspend/resume, > if auxiliary devices would have been on a separate list they would be > missed in the suspend/resume sequences. I believe aux devices are on both lists.