Hi Dinh!

On Mon, Feb 17, 2014 at 01:55:10PM -0600, dingu...@altera.com wrote:
> From: Dinh Nguyen <dingu...@altera.com>
> 
> 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 <dingu...@altera.com>
> Acked-by: Steffen Trumtrar <s.trumt...@pengutronix.de>
> Tested-by: Steffen Trumtrar <s.trumt...@pengutronix.de>
> Cc: Rob Herring <robh...@kernel.org>
> Cc: Pawel Moll <pawel.m...@arm.com>
> Cc: Mark Rutland <mark.rutl...@arm.com>
> Cc: Ian Campbell <ijc+devicet...@hellion.org.uk>
> Cc: Kumar Gala <ga...@codeaurora.org>
> Cc: Seungwon Jeon <tgih....@samsung.com>
> Cc: Jaehoon Chung <jh80.ch...@samsung.com>
> Cc: Chris Ball <ch...@printf.net>
> ---
> 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 |
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to