From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id A9713DDEC7 for ; Thu, 18 Jan 2007 11:30:56 +1100 (EST) Subject: Re: [PATCH 13/19] powerpc: Supporting iommu for Celleb From: Benjamin Herrenschmidt To: Ishizaki Kou In-Reply-To: <200701120113.l0C1D5WP000520@toshiba.co.jp> References: <200701120113.l0C1D5WP000520@toshiba.co.jp> Content-Type: text/plain Date: Thu, 18 Jan 2007 11:31:20 +1100 Message-Id: <1169080280.4965.21.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > +static int __init celleb_init_iommu(void) > +{ This needs a: if (!machine_is(celleb)) return 0; Since the initcall will always be called wether your platform was selected at boot or not as long as it's built into the kernel. > + celleb_init_direct_mapping(); > + pci_dma_ops = &dma_direct_ops; > + bus_register_notifier(&of_platform_bus_type, &celleb_of_bus_notifier); > + > + return 0; > +} > + > +arch_initcall(celleb_init_iommu); > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev