Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751557AbdCCLjJ (ORCPT ); Fri, 3 Mar 2017 06:39:09 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:34078 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751474AbdCCLjG (ORCPT ); Fri, 3 Mar 2017 06:39:06 -0500 Date: Fri, 3 Mar 2017 08:38:47 -0300 From: Sergio Prado To: Jaehoon Chung Cc: ulf.hansson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ben-linux@fluff.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 2/2] mmc: host: s3cmci: allow probing from device tree Message-ID: <20170303113847.GA17377@sprado-desktop> References: <1488417536-15110-1-git-send-email-sergio.prado@e-labworks.com> <1488417536-15110-3-git-send-email-sergio.prado@e-labworks.com> <39c2b81b-6519-826b-2c8d-344725ce2882@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39c2b81b-6519-826b-2c8d-344725ce2882@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1543 Lines: 52 On Fri, Mar 03, 2017 at 11:14:29AM +0900, Jaehoon Chung wrote: > On 03/02/2017 10:18 AM, Sergio Prado wrote: > > Allows configuring Samsung S3C24XX MMC/SD/SDIO controller using a device > > tree. > > > > Signed-off-by: Sergio Prado > > --- > > drivers/mmc/host/s3cmci.c | 298 ++++++++++++++++++++++++---------------------- > > drivers/mmc/host/s3cmci.h | 3 +- > > 2 files changed, 158 insertions(+), 143 deletions(-) > > > > diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c > > index 7a173f8c455b..d066dbdb957c 100644 > > --- a/drivers/mmc/host/s3cmci.c > > +++ b/drivers/mmc/host/s3cmci.c > > @@ -24,6 +24,10 @@ > > #include > > #include > > #include > > +#include > > +#include > > +#include > > +#include > > > > #include > > #include > > @@ -128,6 +132,22 @@ enum dbg_channels { > > dbg_conf = (1 << 8), > > }; > > > > +struct s3cmci_variant_data { > > + int s3c2440_compatible; > > +}; > > I didn't understand why this structure needs. > > Before this patch, > host->is2440; > > After this patch, > host->variant->s3c2440_compatible; > > Just add the one pointer for checking s3c2400 compatible.. > Is it really meaningful? > (I didn't read the previous comments fully.) Although just a pointer would be enought, having a structure makes it more flexible to extend it in the future. Best regards, Sergio Prado