Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752330AbbGQCXl (ORCPT ); Thu, 16 Jul 2015 22:23:41 -0400 Received: from regular1.263xmail.com ([211.150.99.135]:44062 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751861AbbGQCXk (ORCPT ); Thu, 16 Jul 2015 22:23:40 -0400 X-263anti-spam: KSV:0;BIG:0;ABS:1;DNS:0;ATT:0;SPF:S; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ADDR-CHECKED: 0 X-RL-SENDER: zhengxing@rock-chips.com X-FST-TO: pebolle@tiscali.nl X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: zhengxing@rock-chips.com X-UNIQUE-TAG: <0046abac22a96deeead0aeb47b5ca774> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Message-ID: <55A865B5.7020609@rock-chips.com> Date: Fri, 17 Jul 2015 10:17:25 +0800 From: zhengxing User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: Paul Bolle CC: Mark Brown , dgreid@chromium.org, dianders@chromium.org, heiko@sntech.de, sonnyrao@chromium.org, linux-rockchip@lists.infradead.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] ASoC: rockchip: Add machine driver for max98090 codec References: <1436930143-31361-1-git-send-email-zhengxing@rock-chips.com> <1436930143-31361-2-git-send-email-zhengxing@rock-chips.com> <1437033944.27428.11.camel@tiscali.nl> <20150716110032.GU11162@sirena.org.uk> <1437047261.28351.6.camel@tiscali.nl> <20150716125529.GG4039@sirena.org.uk> <1437056116.28351.19.camel@tiscali.nl> In-Reply-To: <1437056116.28351.19.camel@tiscali.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 41 Hi Paul, On 2015年07月16日 22:15, Paul Bolle wrote: > > That's exactly how I understood MODULE_ALIAS() to work. > > And it works, in short, because a platform device fires a > "MODALIAS=platform:[...]" uevent when it's created. And userspace uses > that uevent to load the module carrying that alias. > > Let's put it this was. If one does > sudo find /sys -perm -o=r -name uevent -exec grep -H MODALIAS=platform: {} \; > > or > sudo find /sys -perm -o=r -name modalias -exec grep -H platform: {} \; > > (both lists should be similar) > > on the systems this patch is targeting, will > platform:rockchip-snd-max98090 > > then show up? > > Thanks, > > > Paul Bolle > Thank you for your patience and detailed explanation. I tested your two ways and didn't find the "platform:rockchip-snd-max98090" in my device(kernel v3.14), and the driver path is: localhost rockchip-snd-max98090 # pwd /sys/bus/platform/drivers/rockchip-snd-max98090 Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/