From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751923AbdKUAnm (ORCPT ); Mon, 20 Nov 2017 19:43:42 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:55292 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbdKUAnl (ORCPT ); Mon, 20 Nov 2017 19:43:41 -0500 Subject: Re: [alsa-devel] [PATCH 1/2] ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure To: Nicolin Chen Cc: Timur Tabi , Xiubo Li , alsa-devel@alsa-project.org, linux-kernel , Takashi Iwai , Liam Girdwood , Mark Brown , Fabio Estevam , linuxppc-dev@lists.ozlabs.org References: <20171121003239.GC14136@Asurada-Nvidia> From: "Maciej S. Szmigiero" Message-ID: <52c327d2-9be2-dd7a-68d4-41d304077309@maciej.szmigiero.name> Date: Tue, 21 Nov 2017 01:43:33 +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: <20171121003239.GC14136@Asurada-Nvidia> 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 On 21.11.2017 01:32, Nicolin Chen wrote: > On Mon, Nov 20, 2017 at 11:14:55PM +0100, Maciej S. Szmigiero wrote: (..) >> @@ -1460,12 +1460,6 @@ static int fsl_ssi_probe(struct platform_device *pdev) >> sizeof(fsl_ssi_ac97_dai)); >> >> fsl_ac97_data = ssi_private; > > By the way, is there any better way to register the ops for AC97 > while we could pass the ssi_private so as to remove the global > fsl_ac97_data? This might be possible (if SSI private data is provided to AC'97 codec in codecs/ac97.c in platform device data which then is modified to make use of it), but currently ASoC AC'97 only supports one controller per system so for a real gain this limitation would have to be addressed first. Maciej