Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755658Ab3HFJrq (ORCPT ); Tue, 6 Aug 2013 05:47:46 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:48093 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755509Ab3HFJrp (ORCPT ); Tue, 6 Aug 2013 05:47:45 -0400 X-AuditID: cbfee68e-b7f276d000002279-46-5200c63f574e From: Cho KyongHo To: "'Grant Grundler'" , "'Linux IOMMU'" Cc: "'Joerg Roedel'" , "'Sachin Kamat'" , "'Jiri Kosina'" , "'Wei Yongjun'" , "'Kukjin Kim'" , "'LKML'" References: <1372781307-7906-1-git-send-email-grundler@chromium.org> In-reply-to: Subject: RE: [PATCH] iommu/exynos: remove dead code (set_prefbuf) Date: Tue, 06 Aug 2013 18:47:43 +0900 Message-id: <001f01ce9289$ff4f1230$fded3690$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Content-language: ko Thread-index: AQFhsUmBlF5OCIOeXbucLAUwP0uSPwIxDMEDmlAoS9A= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGIsWRmVeSWpSXmKPExsVy+t8zY137YwxBBu/Oilm8OvKDyWLBfmuL 3XMWs1h0zt7AbtG74CqbxeVdc9gsTv7pZbTYua6T3YHD48nBeUwesxsusnjcubaHzWPyjeWM Hn1bVjF6nFlwhN1j6b2jjB6fN8kFcERx2aSk5mSWpRbp2yVwZexfuo2l4JlExdz7tQ2MD/i6 GDk5JARMJI5s+cEMYYtJXLi3nq2LkYtDSGAZo8Shpb+YYYo23m1mhEgsYpSY2fmHHcL5yyix dutXNpAqNgEtidVzjzOC2CICCRLzeieAFTELfGSUaDr7F2puN6PEgttbWEGqOAWCJTov/2QB sYUFHCWW/rwIFmcRUJW40rkQbCqvgKXEm+7HULagxI/J98DqmQXUJSbNW8QMYctLbF7zFup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bmbGMFJ5JnUDsaVDRaHGAU4GJV4eBOv/g8UYk0sK67MPcQo wcGsJMKrspMhSIg3JbGyKrUoP76oNCe1+BBjMtCjE5mlRJPzgQkuryTe0NjEzMjSyMzCyMTc nDRhJXHeA63WgUIC6YklqdmpqQWpRTBbmDg4pRoYbbe/Sq2sZO4REe8/ExHfa/JshVX3huub wxPU130+epFJ1qi1+s3PRb53Xb8mz5jRVRQeq/eaxXGq7O83S/PtH8kvPBP3JHNGlfaZ9Nzu nZ27CwSrVz3nmjm35SJvUd2VdallvL7TlkWcNnO4kdBo5afNlTq1JLU59UdHc7X676jcpUan nogosRRnJBpqMRcVJwIAwnYabWYDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3335 Lines: 89 > -----Original Message----- > From: grundler@google.com [mailto:grundler@google.com] On Behalf Of Grant Grundler > Sent: Tuesday, August 06, 2013 1:40 AM > > Ping? > > Adding linux-iommu ML. > > thanks, > grant > > On Tue, Jul 2, 2013 at 9:08 AM, Grant Grundler wrote: > > exynos_sysmmu_set_prefbuf() is not called any where. > > > > Signed-off-by: Grant Grundler Reviewed-by: Cho KyongHo Thank you. KyongHo. > > --- > > drivers/iommu/exynos-iommu.c | 44 -------------------------------------------- > > 1 file changed, 44 deletions(-) > > > > diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c > > index 3f32d64..0740189 100644 > > --- a/drivers/iommu/exynos-iommu.c > > +++ b/drivers/iommu/exynos-iommu.c > > @@ -247,50 +247,6 @@ static void __sysmmu_set_prefbuf(void __iomem *sfrbase, unsigned long base, > > __raw_writel(size - 1 + base, sfrbase + REG_PB0_EADDR + idx * 8); > > } > > > > -void exynos_sysmmu_set_prefbuf(struct device *dev, > > - unsigned long base0, unsigned long size0, > > - unsigned long base1, unsigned long size1) > > -{ > > - struct sysmmu_drvdata *data = dev_get_drvdata(dev->archdata.iommu); > > - unsigned long flags; > > - int i; > > - > > - BUG_ON((base0 + size0) <= base0); > > - BUG_ON((size1 > 0) && ((base1 + size1) <= base1)); > > - > > - read_lock_irqsave(&data->lock, flags); > > - if (!is_sysmmu_active(data)) > > - goto finish; > > - > > - for (i = 0; i < data->nsfrs; i++) { > > - if ((readl(data->sfrbases[i] + REG_MMU_VERSION) >> 28) == 3) { > > - if (!sysmmu_block(data->sfrbases[i])) > > - continue; > > - > > - if (size1 == 0) { > > - if (size0 <= SZ_128K) { > > - base1 = base0; > > - size1 = size0; > > - } else { > > - size1 = size0 - > > - ALIGN(size0 / 2, SZ_64K); > > - size0 = size0 - size1; > > - base1 = base0 + size0; > > - } > > - } > > - > > - __sysmmu_set_prefbuf( > > - data->sfrbases[i], base0, size0, 0); > > - __sysmmu_set_prefbuf( > > - data->sfrbases[i], base1, size1, 1); > > - > > - sysmmu_unblock(data->sfrbases[i]); > > - } > > - } > > -finish: > > - read_unlock_irqrestore(&data->lock, flags); > > -} > > - > > static void __set_fault_handler(struct sysmmu_drvdata *data, > > sysmmu_fault_handler_t handler) > > { > > -- > > 1.8.3 > > -- 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/