From mboxrd@z Thu Jan 1 00:00:00 1970 From: Javier Martinez Canillas Subject: Re: [PATCH v4 3/7] misc: Add cros_ec_lpc driver for x86 devices Date: Mon, 02 Feb 2015 12:57:08 +0100 Message-ID: <54CF6614.1040209@collabora.co.uk> References: <1422538676-4615-1-git-send-email-javier.martinez@collabora.co.uk> <1422538676-4615-4-git-send-email-javier.martinez@collabora.co.uk> <1422565889.10643.6.camel@x220> <54CB7E60.8040603@collabora.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from bhuna.collabora.co.uk ([93.93.135.160]:52530 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762AbbBBL5S (ORCPT ); Mon, 2 Feb 2015 06:57:18 -0500 In-Reply-To: <54CB7E60.8040603@collabora.co.uk> Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: Paul Bolle Cc: Lee Jones , Olof Johansson , Arnd Bergmann , Doug Anderson , Bill Richardson , Simon Glass , Gwendal Grignou , Jonathan Corbet , Varka Bhadram , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Hello, On 01/30/2015 01:51 PM, Javier Martinez Canillas wrote: > On 01/29/2015 10:11 PM, Paul Bolle wrote: >>> + help >>> + If you say Y here, you get support for talking to the ChromeOS EC >>> + over an LPC bus. This uses a simple byte-level protocol with a >>> + checksum. This is used for userspace access only. The kernel >>> + typically has its own communication methods. >>> + >> >> What happens when you say M? >> > > Since it is a tristate kconfig symbol, it can be built as a kernel module > but since there isn't a LPC subsystem, the platform device is registered > in the module_init() function. So, building as a module is trickier since > there won't be an uevent that can trigger a module auto-load based on the > modinfo aliases information. > FYI, I noticed that other x86 platform drivers use the dmi system information to fill dmi modaliases so the modules are auto-loaded. So I did the same and posted a new version 5 [0] of this series. Best regards, Javier [0]: https://lkml.org/lkml/2015/2/2/214