From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932188AbdGKFPr convert rfc822-to-8bit (ORCPT ); Tue, 11 Jul 2017 01:15:47 -0400 Received: from muru.com ([72.249.23.125]:54066 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932114AbdGKFPq (ORCPT ); Tue, 11 Jul 2017 01:15:46 -0400 Date: Mon, 10 Jul 2017 22:15:41 -0700 From: Tony Lindgren To: Mark Brown Cc: Sebastian Reichel , Sebastian Reichel , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] ASoC: codec: cpcap: new codec Message-ID: <20170711051540.GV3730@atomide.com> References: <20170707164229.5868-1-sebastian.reichel@collabora.co.uk> <20170707164229.5868-2-sebastian.reichel@collabora.co.uk> <20170710175152.2jglyjezvptamreq@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20170710175152.2jglyjezvptamreq@sirena.org.uk> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mark Brown [170710 10:52]: > On Fri, Jul 07, 2017 at 06:42:27PM +0200, Sebastian Reichel wrote: > > +#ifdef CONFIG_OF > > +static const struct of_device_id cpcap_audio_of_match[] = { > > + { .compatible = "motorola,cpcap-audio-codec", }, > > + {}, > > +}; > > +MODULE_DEVICE_TABLE(of, cpcap_audio_of_match); > > +#endif > > If this is part of a MFD shouldn't the parent device register it without > it needing to be in the DT? Having the MFD core part just do devm_of_platform_populate() leaves out dependencies between the MFD core and it's child devices. There are also a lot of board specific configuration to be done for many child devices such as ADC wiring, GPIO pins used, and macro firmware usage. Not sure what all board specific stuff needs to be configured for this driver yet, but it seems at least the macro interrupt wiring needs to be configured. I would not be surprised to find GPIOs or ADC being used for some connector detection too. Regards, Tony