On Tue, Apr 24, 2012 at 03:03:19PM +0200, Hiroshi Doyu wrote: > > > Only Tegra3 has SMMU. > > > > but all of them ? In that case, you could call this from probe itself, > > right ? But an ifdef won't work in all cases, so you need to do runtime > > detection based on some revision register or cpu detection... > > So far we don't have so many variants, and presently TEGRA_3x_SOC > always has a SMMU. If there were some variants of TEGRA_3x_SOC, where > some might not have SMMU, then runtime detection would make sense > there. Now it's something like TEGRA_3x_SOC == SMMU. the problem is when you have single kernel for TEGRA 2 and TEGRA 3. If you rely on ifdef, one of them won't work properly, right ? ;-) -- balbi
Attachment:
signature.asc
Description: Digital signature