From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko =?utf-8?q?St=C3=BCbner?= Subject: Re: [PATCH 06/10] mmc: dw_mmc-pltfm: add Rockchip variant Date: Wed, 5 Jun 2013 16:11:21 +0200 Message-ID: <201306051611.21669.heiko@sntech.de> References: <201306030055.15413.heiko@sntech.de> <201306030059.03783.heiko@sntech.de> <001601ce61f5$11b37b20$351a7160$%jun@samsung.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from gloria.sntech.de ([95.129.55.99]:43928 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753913Ab3FEOLd (ORCPT ); Wed, 5 Jun 2013 10:11:33 -0400 In-Reply-To: <001601ce61f5$11b37b20$351a7160$%jun@samsung.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Seungwon Jeon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, 'John Stultz' , 'Thomas Gleixner' , 'Mike Turquette' , 'Jaehoon Chung' , 'Chris Ball' , linux-mmc@vger.kernel.org, 'Grant Likely' , 'Rob Herring' , 'Linus Walleij' , devicetree-discuss@lists.ozlabs.org, 'Russell King' , 'Arnd Bergmann' , 'Olof Johansson' Am Mittwoch, 5. Juni 2013, 16:00:43 schrieb Seungwon Jeon: > On 06/03/13 7:59 AM, Heiko St=C3=BCbner wrote: > > Cortex-A9 SoCs from Rockchip use a slightly modified variant of dw_= mmc > > controllers that seems to require the SDMMC_CMD_USE_HOLD_REG bit to > > always be set. > >=20 > > There also seem to be no other modifications (additional register e= tc) > > present, so to keep the footprint low, add this small variant to th= e > > pltfm driver. > >=20 > > Signed-off-by: Heiko Stuebner > > --- > >=20 > > drivers/mmc/host/dw_mmc-pltfm.c | 48 > > +++++++++++++++++++++++++++----------- 1 files changed, 34 > > insertions(+), 14 deletions(-) > >=20 > > diff --git a/drivers/mmc/host/dw_mmc-pltfm.c > > b/drivers/mmc/host/dw_mmc-pltfm.c index 0048da8..7d041b5 100644 > > --- a/drivers/mmc/host/dw_mmc-pltfm.c > > +++ b/drivers/mmc/host/dw_mmc-pltfm.c > > @@ -24,6 +24,16 @@ > >=20 > > #include "dw_mmc.h" > >=20 > > + > > +static void dw_mci_rockchip_prepare_command(struct dw_mci *host, u= 32 > > *cmdr) +{ > > + *cmdr |=3D SDMMC_CMD_USE_HOLD_REG; >=20 > Currently, SDMMC_CMD_USE_HOLD_REG is defined in dw_mmc-exynos.c > It should be moved to dw_mmc.h It's already done in another patch "mmc: dw_mmc: Add support DW SD/MMC = driver=20 on SOCFPGA" from Dinh Nguyen , which I therefore n= amed as=20 dependency in the cover letter. Don't know if it's better to also include the move here again and let t= he=20 merging person sort out the conflict?