Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755437AbbGPOPW (ORCPT ); Thu, 16 Jul 2015 10:15:22 -0400 Received: from lb3-smtp-cloud2.xs4all.net ([194.109.24.29]:49243 "EHLO lb3-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755080AbbGPOPU (ORCPT ); Thu, 16 Jul 2015 10:15:20 -0400 Message-ID: <1437056116.28351.19.camel@tiscali.nl> Subject: Re: [PATCH 1/2] ASoC: rockchip: Add machine driver for max98090 codec From: Paul Bolle To: Mark Brown Cc: Xing Zheng , 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 Date: Thu, 16 Jul 2015 16:15:16 +0200 In-Reply-To: <20150716125529.GG4039@sirena.org.uk> 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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.3 (3.16.3-2.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1117 Lines: 35 On do, 2015-07-16 at 13:55 +0100, Mark Brown wrote: > No, in that case you've not understood what the MODULE_ALIAS is > for. It's there so that userspace knows which module to load if it > gets > a device with no driver, it goes in the driver not in the code > registering the device. 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 -- 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/