Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754599Ab3FFUBY (ORCPT ); Thu, 6 Jun 2013 16:01:24 -0400 Received: from mail-oa0-f48.google.com ([209.85.219.48]:38367 "EHLO mail-oa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754277Ab3FFUBW convert rfc822-to-8bit (ORCPT ); Thu, 6 Jun 2013 16:01:22 -0400 MIME-Version: 1.0 In-Reply-To: <201306030059.03783.heiko@sntech.de> References: <201306030055.15413.heiko@sntech.de> <201306030059.03783.heiko@sntech.de> Date: Thu, 6 Jun 2013 23:01:21 +0300 Message-ID: Subject: Re: [PATCH 06/10] mmc: dw_mmc-pltfm: add Rockchip variant From: Andy Shevchenko To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , John Stultz , Thomas Gleixner , Mike Turquette , Seungwon Jeon , Jaehoon Chung , Chris Ball , "linux-mmc@vger.kernel.org" , Grant Likely , Rob Herring , Linus Walleij , Devicetree Discuss , Russell King , Arnd Bergmann , Olof Johansson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1506 Lines: 52 On Mon, Jun 3, 2013 at 1:59 AM, Heiko Stübner 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. > > There also seem to be no other modifications (additional register etc) > present, so to keep the footprint low, add this small variant to the > pltfm driver. Few comments below. > --- a/drivers/mmc/host/dw_mmc-pltfm.c > +++ b/drivers/mmc/host/dw_mmc-pltfm.c > @@ -24,6 +24,16 @@ > > #include "dw_mmc.h" > > + No need to add extra empty line here. > +static void dw_mci_rockchip_prepare_command(struct dw_mci *host, u32 *cmdr) > @@ -63,20 +73,6 @@ int dw_mci_pltfm_register(struct platform_device *pdev, > } > EXPORT_SYMBOL_GPL(dw_mci_pltfm_register); > > -static int dw_mci_pltfm_probe(struct platform_device *pdev) > -{ > - return dw_mci_pltfm_register(pdev, NULL); > -} > - > -int dw_mci_pltfm_remove(struct platform_device *pdev) > -{ > - struct dw_mci *host = platform_get_drvdata(pdev); > - > - dw_mci_remove(host); > - return 0; > -} > -EXPORT_SYMBOL_GPL(dw_mci_pltfm_remove); > - If you want to move those through code, please do separate patch. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/