From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752490AbdBCVeR (ORCPT ); Fri, 3 Feb 2017 16:34:17 -0500 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:55338 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752268AbdBCVeQ (ORCPT ); Fri, 3 Feb 2017 16:34:16 -0500 Subject: Re: [PATCH] Bluetooth: btqcomsmd: Fix module autoload To: linux-kernel@vger.kernel.org References: <1483362596-7843-1-git-send-email-javier@osg.samsung.com> Cc: Johan Hedberg , Marcel Holtmann , Gustavo Padovan , linux-bluetooth@vger.kernel.org From: Javier Martinez Canillas Message-ID: <85286a63-27b9-a410-d642-430bf3fb2444@osg.samsung.com> Date: Fri, 3 Feb 2017 18:34:09 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1483362596-7843-1-git-send-email-javier@osg.samsung.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 01/02/2017 10:09 AM, Javier Martinez Canillas wrote: > If the driver is built as a module, autoload won't work because the module > alias information is not filled. So user-space can't match the registered > device with the corresponding module. > > Export the module alias information using the MODULE_DEVICE_TABLE() macro. > > Before this patch: > > $ modinfo drivers/bluetooth/btqcomsmd.ko | grep alias > $ > > After this patch: > > $ modinfo drivers/bluetooth/btqcomsmd.ko | grep alias > alias: of:N*T*Cqcom,wcnss-btC* > alias: of:N*T*Cqcom,wcnss-bt > > Signed-off-by: Javier Martinez Canillas > --- Any comments about this patch? Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America