From patchwork Mon Oct 12 08:03:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hiroshi DOYU X-Patchwork-Id: 53067 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9C8BpxY007870 for ; Mon, 12 Oct 2009 08:11:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754227AbZJLIEq (ORCPT ); Mon, 12 Oct 2009 04:04:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754370AbZJLIEq (ORCPT ); Mon, 12 Oct 2009 04:04:46 -0400 Received: from smtp.nokia.com ([192.100.122.230]:47688 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754227AbZJLIEo (ORCPT ); Mon, 12 Oct 2009 04:04:44 -0400 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n9C838PA008413; Mon, 12 Oct 2009 11:03:12 +0300 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Oct 2009 11:03:07 +0300 Received: from mgw-sa01.ext.nokia.com ([147.243.1.47]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Oct 2009 11:03:07 +0300 Received: from oreo.research.nokia.com (esdhcp04130.research.nokia.com [172.21.41.30]) by mgw-sa01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n9C8342G026123 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Mon, 12 Oct 2009 11:03:04 +0300 Received: from doyu by oreo.research.nokia.com with local (Exim 4.69) (envelope-from ) id 1MxFs0-0007IS-Bn; Mon, 12 Oct 2009 11:03:04 +0300 From: Hiroshi DOYU To: linux-omap@vger.kernel.org Cc: srinivas.pulukuru@ti.com, pparveen@ti.com, saaguirre@ti.com, x0055901@ti.com, nikhil@ti.com, subramani.venkatesh@windriver.com, muthu@ti.com, s-miesen@ti.com, Hiroshi DOYU Subject: [PATCH 1/1] omap iommu: fix wrong condition check for SUPERSECTION Date: Mon, 12 Oct 2009 11:03:04 +0300 Message-Id: <1255334584-27916-1-git-send-email-Hiroshi.DOYU@nokia.com> X-Mailer: git-send-email 1.6.0.4 X-OriginalArrivalTime: 12 Oct 2009 08:03:07.0066 (UTC) FILETIME=[6E9B81A0:01CA4B12] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/plat-omap/iommu.c b/arch/arm/plat-omap/iommu.c index 4b60127..94584f1 100644 --- a/arch/arm/plat-omap/iommu.c +++ b/arch/arm/plat-omap/iommu.c @@ -664,7 +664,7 @@ static size_t iopgtable_clear_entry_core(struct iommu *obj, u32 da) nent = 1; /* for the next L1 entry */ } else { bytes = IOPGD_SIZE; - if (*iopgd & IOPGD_SUPER) { + if ((*iopgd & IOPGD_SUPER) == IOPGD_SUPER) { nent *= 16; /* rewind to the 1st entry */ iopgd = (u32 *)((u32)iopgd & IOSUPER_MASK);