[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20150604090212.GY6325@pengutronix.de>
Date: Thu, 4 Jun 2015 11:02:12 +0200
From: Sascha Hauer <s.hauer@...gutronix.de>
To: Chaotian Jing <chaotian.jing@...iatek.com>
Cc: Rob Herring <robh+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Chris Ball <chris@...ntf.net>,
Ulf Hansson <ulf.hansson@...aro.org>,
Mark Rutland <mark.rutland@....com>,
James Liao <jamesjj.liao@...iatek.com>,
srv_heupstream@...iatek.com, Arnd Bergmann <arnd@...db.de>,
devicetree@...r.kernel.org,
Hongzhou Yang <hongzhou.yang@...iatek.com>,
Catalin Marinas <catalin.marinas@....com>,
bin.zhang@...iatek.com, linux-mmc@...r.kernel.org,
linux-kernel@...r.kernel.org, Will Deacon <will.deacon@....com>,
linux-gpio@...r.kernel.org, linux-mediatek@...ts.infradead.org,
Sascha Hauer <kernel@...gutronix.de>,
"Joe.C" <yingjoe.chen@...iatek.com>,
Eddie Huang <eddie.huang@...iatek.com>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v4 2/7] mmc: mediatek: Add Mediatek MMC driver
On Thu, Jun 04, 2015 at 10:54:03AM +0800, Chaotian Jing wrote:
> On Tue, 2015-05-19 at 13:15 +0200, Sascha Hauer wrote:
> > On Tue, May 19, 2015 at 02:36:46PM +0800, Chaotian Jing wrote:
> > > Add Mediatek MMC driver code
> > > Support eMMC/SD/SDIO
> > >
> > > Signed-off-by: Chaotian Jing <chaotian.jing@...iatek.com>
> > > ---
> > > drivers/mmc/host/Kconfig | 8 +
> > > drivers/mmc/host/Makefile | 1 +
> > > drivers/mmc/host/mtk-sd.c | 1422 +++++++++++++++++++++++++++++++++++++++++++++
> > > 3 files changed, 1431 insertions(+)
> > > create mode 100644 drivers/mmc/host/mtk-sd.c
> > >
> > > +
> > > + host->src_clk = devm_clk_get(&pdev->dev, "source");
> > > + if (IS_ERR(host->src_clk)) {
> > > + ret = PTR_ERR(host->src_clk);
> > > + goto host_free;
> > > + }
> > > +
> > > + host->h_clk = devm_clk_get(&pdev->dev, "hclk");
> > > + if (IS_ERR(host->h_clk)) {
> > > + /* host->h_clk is optional, Only for MSDC0/3 at MT8173 */
> > > + dev_dbg(&pdev->dev,
> > > + "Invalied hclk from the device tree!\n");
> > > + }
> >
> > s/Invalied/Invalid/
> >
> > According to my reference manual the controller always needs a hclk. It
> > seems on some controllers it is just not software controllable. If
> > that's the case you should always provide a hclk to the driver and make
> > this clock mandatory.
> For MT8173, MSDC1, MSDC2's HCLK are in Infra, software cannot control
> it. So just set the HCLK to clk_null ?
Yes, please.
Sascha
--
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 linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists