From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Trumtrar Subject: Re: [PATCHv2 2/3] mmc: dw_mmc: Add support for SOCFPGA's platform specific implementation Date: Mon, 17 Feb 2014 21:20:18 +0100 Message-ID: <20140217202018.GC8839@pengutronix.de> References: <1392666911-15985-1-git-send-email-dinguyen@altera.com> <1392666911-15985-2-git-send-email-dinguyen@altera.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1392666911-15985-2-git-send-email-dinguyen@altera.com> Sender: linux-mmc-owner@vger.kernel.org To: dinguyen@altera.com Cc: linux-mmc@vger.kernel.org, dinh.linux@gmail.com, devicetree@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Seungwon Jeon , Jaehoon Chung , Chris Ball List-Id: devicetree@vger.kernel.org Hi Dinh! On Mon, Feb 17, 2014 at 01:55:10PM -0600, dinguyen@altera.com wrote: > From: Dinh Nguyen > > Like the rockchip, Altera's SOCFPGA platform specific implementation of the > dw_mmc driver requires using the HOLD register for SD commands. > > Signed-off-by: Dinh Nguyen > Acked-by: Steffen Trumtrar > Tested-by: Steffen Trumtrar > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Ian Campbell > Cc: Kumar Gala > Cc: Seungwon Jeon > Cc: Jaehoon Chung > Cc: Chris Ball > --- > v2: Use dw_mci_socfpga_prepare_command instead of > dw_mci_rockchip_prepare_command > --- > drivers/mmc/host/dw_mmc-pltfm.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c > index 5c49656..5b87cc2 100644 > --- a/drivers/mmc/host/dw_mmc-pltfm.c > +++ b/drivers/mmc/host/dw_mmc-pltfm.c > @@ -30,10 +30,19 @@ static void dw_mci_rockchip_prepare_command(struct dw_mci *host, u32 *cmdr) > *cmdr |= SDMMC_CMD_USE_HOLD_REG; > } > > +static void dw_mci_socfpga_prepare_command(struct dw_mci *host, u32 *cmdr) > +{ > + *cmdr |= SDMMC_CMD_USE_HOLD_REG; > +} > + > static const struct dw_mci_drv_data rockchip_drv_data = { > .prepare_command = dw_mci_rockchip_prepare_command, > }; > +static const struct dw_mci_drv_data socfpga_drv_data = { > + .prepare_command = dw_mci_socfpga_prepare_command, > +}; > + Why didn't you just rename the rockchip function, instead of adding the same thing with a different name? This seems rather "useless" or I'm missing something. Regards, Steffen -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |