From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v1] ASoC: rt5677: Convert I2C driver to ->probe_new() Date: Thu, 24 Aug 2017 18:11:12 +0200 Message-ID: References: <20170824134110.63335-1-andriy.shevchenko@linux.intel.com> <20170824134924.uwzksz6ln43nurdd@sirena.org.uk> <20170824154947.li6yke5vv5llcxhh@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 60428266DE5 for ; Thu, 24 Aug 2017 18:11:14 +0200 (CEST) In-Reply-To: <20170824154947.li6yke5vv5llcxhh@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Oder Chiou , alsa-devel@alsa-project.org, Andy Shevchenko , Liam Girdwood List-Id: alsa-devel@alsa-project.org On Thu, 24 Aug 2017 17:49:47 +0200, Mark Brown wrote: > > On Thu, Aug 24, 2017 at 04:33:29PM +0200, Takashi Iwai wrote: > > Mark Brown wrote: > > > > On Thu, Aug 24, 2017 at 04:41:10PM +0300, Andy Shevchenko wrote: > > > > > > > There is no platform code that uses i2c module table. > > > > Remove it altogether and adjust ->probe() to be ->probe_new(). > > > > What is the value in doing this? Removing the ability to instantiate > > > via board files is just inconveniencing people doing that, it's not a > > > goal in itself. > > > But the id table is already empty...? > > Right, that seems like a bug though. Well, that's what the commit ddc9e69b9dc2 does after all: it cleans up the legacy usage, and moves all either OF or ACPI matching. If we want to take back old i2c ids, better to put the explicit i2c_match_id() check in rt5677_i2c_probe() instead of sticking with the old i2c probe callback. Takashi