From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752920AbbCIMBH (ORCPT ); Mon, 9 Mar 2015 08:01:07 -0400 Received: from mailgw01.mediatek.com ([218.249.47.110]:57131 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751699AbbCIMBD (ORCPT ); Mon, 9 Mar 2015 08:01:03 -0400 X-Listener-Flag: 11101 Message-ID: <1425902271.13300.18.camel@mhfsdcap03> Subject: Re: [PATCH 1/5] soc: mediatek: Add SMI driver From: Yong Wu To: Paul Bolle CC: Rob Herring , Joerg Roedel , Matthias Brugger , Robin Murphy , Will Deacon , Daniel Kurtz , Tomasz Figa , Lucas Stach , Mark Rutland , "Catalin Marinas" , , Sasha Hauer , , , , , Date: Mon, 9 Mar 2015 19:57:51 +0800 In-Reply-To: <1425641445.24292.280.camel@x220> References: <1425638900-24989-1-git-send-email-yong.wu@mediatek.com> <1425638900-24989-2-git-send-email-yong.wu@mediatek.com> <1425641445.24292.280.camel@x220> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Paul, Thanks very much for your suggestion. On Fri, 2015-03-06 at 12:30 +0100, Paul Bolle wrote: > On Fri, 2015-03-06 at 18:48 +0800, yong.wu@mediatek.com wrote: > > --- a/drivers/soc/mediatek/Kconfig > > +++ b/drivers/soc/mediatek/Kconfig > > @@ -20,3 +20,10 @@ config MT8173_PMIC_WRAP > > PMIC wrapper is a proprietary hardware in MT8173 to make > > communication protocols to access PMIC device. > > This driver implement access protocols for MT8173. > > + > > +config MTK_SMI > > + bool > > Nit: make this one tab instead of 8 spaces, please. > > > + help > > + Smi help enable/disable iommu in mt8173 and control the > > + clock of each local arbiter. > > + It should be true while MTK_IOMMU enable. > > I don't think anyone using the *config tools will ever see this text, as > there's no prompt. So you might as well make this a comment or drop it > altogether. > We could search it in the tool even though we don't see it. In next version, I will try to make it a comment. > Is this selected by more than just MTK_IOMMU (see 2/5)? If not, I think > MTK_SMI will be set and unset in lockstep with MTK_IOMMU. In other > words, you could as well use one Kconfig symbol. > > Thanks, if we disable MTK_IOMMU, the MTK_SMI also should be selected.That is because if the multimedia h/w want to work, the clock of the local arbiters always should be opened. > > Paul Bolle >