Re: [PATCH v5 4/6] memory: mediatek: Add SMI driver

2015-10-31 Thread Yong Wu
On Tue, 2015-10-27 at 13:24 +, Robin Murphy wrote: > On 09/10/15 03:23, Yong Wu wrote: > [...] > > +static int mtk_smi_probe(struct platform_device *pdev) > > +{ > > + struct device *dev = >dev; > > + struct mtk_smi_data *smidata; > > + int ret; > > + > > + if (!dev->pm_domain) > > +

Re: [PATCH v5 4/6] memory: mediatek: Add SMI driver

2015-10-27 Thread Robin Murphy
On 09/10/15 03:23, Yong Wu wrote: [...] +static int mtk_smi_probe(struct platform_device *pdev) +{ + struct device *dev = >dev; + struct mtk_smi_data *smidata; + int ret; + + if (!dev->pm_domain) + return -EPROBE_DEFER; + + smidata = devm_kzalloc(dev,

[PATCH v5 4/6] memory: mediatek: Add SMI driver

2015-10-08 Thread Yong Wu
This patch add SMI(Smart Multimedia Interface) driver. This driver is responsible to enable/disable iommu and control the clocks of each local arbiter Signed-off-by: Yong Wu --- drivers/memory/Kconfig | 8 ++ drivers/memory/Makefile| 1 +