From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757185AbbA2OPc (ORCPT ); Thu, 29 Jan 2015 09:15:32 -0500 Received: from mail-lb0-f174.google.com ([209.85.217.174]:46165 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756706AbbA2OPa (ORCPT ); Thu, 29 Jan 2015 09:15:30 -0500 MIME-Version: 1.0 In-Reply-To: <1422538676-4615-4-git-send-email-javier.martinez@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> Date: Thu, 29 Jan 2015 19:45:28 +0530 Message-ID: Subject: Re: [PATCH v4 3/7] misc: Add cros_ec_lpc driver for x86 devices From: Varka Bhadram To: Javier Martinez Canillas Cc: Lee Jones , Olof Johansson , Arnd Bergmann , Doug Anderson , Bill Richardson , Simon Glass , Gwendal Grignou , Jonathan Corbet , linux-samsung-soc@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 29, 2015 at 7:07 PM, Javier Martinez Canillas wrote: > From: Bill Richardson > > Chromebooks have an Embedded Controller (EC) that is used to > implement various functions such as keyboard, power and battery. > > The AP can communicate with the EC through different bus types > such as I2C, SPI or LPC. > > The cros_ec mfd driver is then composed of a core driver that > register the sub-devices as mfd cells and provide a high level > communication interface that is used by the rest of the kernel > and bus specific interfaces modules. > > Each connection method then has its own driver, which register > with the EC driver interface-agnostic interface. > > Currently, there are drivers to communicate with the EC over > I2C and SPI and this driver adds support for LPC. > > Signed-off-by: Bill Richardson > Signed-off-by: Javier Martinez Canillas > --- > > Changes since v3: > - Rename MYNAME to DRV_NAME > - Use devm_request_region() instead of request_region. > Suggested by Varka Bhadram. > - Remove release_region from cleanup handle logic by using devres API. > Suggested by Varka Bhadram. > - Use {dev,pr}_err() instead of {dev,pr}_warn() to log errors. > Addressed all of my comments... Thanks Reviewed-by: Varka Bhadram -- Regards, Varka Bhadram.