Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753633AbeAAPRg (ORCPT + 1 other); Mon, 1 Jan 2018 10:17:36 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:45328 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753244AbeAAPRe (ORCPT ); Mon, 1 Jan 2018 10:17:34 -0500 Subject: Re: [PATCH v1 11/15] ASoC: fsl_ssi: Setup AC97 in dai_probe() To: Nicolin Chen Cc: timur@tabi.org, broonie@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, fabio.estevam@nxp.com, caleb@crome.org, arnaud.mouiche@invoxia.com, lukma@denx.de, kernel@pengutronix.de References: <1513702819-42310-1-git-send-email-nicoleotsuka@gmail.com> <1513702819-42310-12-git-send-email-nicoleotsuka@gmail.com> From: "Maciej S. Szmigiero" Message-ID: Date: Mon, 1 Jan 2018 16:17:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1513702819-42310-12-git-send-email-nicoleotsuka@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 19.12.2017 18:00, Nicolin Chen wrote: > AC97 configures some registers earlier to start a communication > with CODECs, so this patch moves those register settings to the > dai_probe() as well, along with other register configurations. > > It also applies _fsl_ssi_set_dai_fmt() to AC97 only since other > formats would be configured via fsl_ssi_set_dai_fmt() directly. > > Meanwhile, this patch adds fsl_ssi_dai_ac97_remove() to cleanup > some control bits for AC97. > > Signed-off-by: Nicolin Chen This patch breaks AC'97 CODEC probing. Namely, the fsl_ssi DAI probe callback is only called after the AC'97 CODEC probe callback, so when you move SSI AC'97 startup to its DAI probe callback it won't be done yet when the CODEC is probed (and this requires a working AC'97 interface to successfully complete). Maciej