Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933174AbbLOCk4 (ORCPT ); Mon, 14 Dec 2015 21:40:56 -0500 Received: from mailgw01.mediatek.com ([218.249.47.110]:27768 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753680AbbLOCkz (ORCPT ); Mon, 14 Dec 2015 21:40:55 -0500 X-Listener-Flag: 11101 Message-ID: <1450147239.22854.25.camel@mhfsdcap03> Subject: Re: [PATCH v6 4/5] iommu/mediatek: Add mt8173 IOMMU driver From: Yong Wu To: Matthias Brugger CC: Joerg Roedel , Thierry Reding , Mark Rutland , Robin Murphy , Will Deacon , Daniel Kurtz , Tomasz Figa , Lucas Stach , "Rob Herring" , Catalin Marinas , , Sasha Hauer , , , , , , , , , , Date: Tue, 15 Dec 2015 10:40:39 +0800 In-Reply-To: <566F0821.4080507@gmail.com> References: <1449568153-15643-1-git-send-email-yong.wu@mediatek.com> <1449568153-15643-5-git-send-email-yong.wu@mediatek.com> <566F0821.4080507@gmail.com> 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 Content-Length: 1117 Lines: 41 On Mon, 2015-12-14 at 19:19 +0100, Matthias Brugger wrote: > > On 08/12/15 10:49, Yong Wu wrote: > > This patch adds support for mediatek m4u (MultiMedia Memory Management > > Unit). > > > > Signed-off-by: Yong Wu > > --- [...] > > +static void mtk_iommu_config(struct mtk_iommu_data *data, > > + struct device *dev, bool enable) > > +{ > > + struct mtk_iommu_client_priv *head, *cur, *next; > > + > > + head = dev->archdata.iommu; > > + list_for_each_entry_safe(cur, next, &head->client, client) { > > + mtk_smi_config_port( > > + data->larbdev[MTK_M4U_TO_LARB(cur->mtk_m4u_id)], > > + MTK_M4U_TO_PORT(cur->mtk_m4u_id), enable); > > Use an extra variable for MTK_M4U_TO_LARB(cur->mtk-m4u_id), this makes > the code easier to read. OK. Thanks. I will fix it in next version. > > Regards, > Matthias > > > + } > > +} > > + [...] -- 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/