From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753673AbdCOLkm (ORCPT ); Wed, 15 Mar 2017 07:40:42 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:47166 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753117AbdCOLj1 (ORCPT ); Wed, 15 Mar 2017 07:39:27 -0400 Subject: Re: [PATCH 4/4] eeprom: at24: Add OF device ID table To: Andy Shevchenko References: <20170314151638.23132-1-javier@osg.samsung.com> <20170314151638.23132-5-javier@osg.samsung.com> <8e233f15-4f91-b495-5270-5a7f982b31be@osg.samsung.com> <20170315075835.GA1438@katana> Cc: Wolfram Sang , "linux-kernel@vger.kernel.org" , linux-i2c@vger.kernel.org From: Javier Martinez Canillas Message-ID: <1bfce335-7a66-9905-b196-47366bf73d37@osg.samsung.com> Date: Wed, 15 Mar 2017 08:39:19 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: 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 Hello Andy, On 03/15/2017 08:21 AM, Andy Shevchenko wrote: > On Wed, Mar 15, 2017 at 12:58 PM, Javier Martinez Canillas > wrote: >> On 03/15/2017 04:58 AM, Wolfram Sang wrote: > >> Unfortunately some maintainers do and don't accept patches adding I2C tables >> only to have module autoloading working so I still think it should be fixed. > > Wait, how does it work for now?! > It only works if you have an I2C device ID table, but that may not be the case for DT-only drivers that could only have an OF device ID table. In the latter case module autoload won't work. > Sounds for me you are trying to solve non-existing issue. > It's an existing issue. You _must_ have an I2C device ID table if you want to autload a device driver which is superfluous for DT-only drivers. In other words, if you register an I2C device using OF the modalias will be: $ cat /sys/class/i2c-adapter/i2c-8/8-004b/modalias i2c:maxtouch While the correct thing to report should be: $ cat /sys/class/i2c-adapter/i2c-8/8-004b/modalias of:NtrackpadTCatmel,maxtouch >> [0]: https://patchwork.kernel.org/patch/6903991/ > Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America