[PATCH 1/3] iommu/fsl: Fix PAMU window size check.

Joerg Roedel joro at 8bytes.org
Fri Jul 4 20:44:30 EST 2014


On Tue, Jun 24, 2014 at 07:27:15PM +0530, Varun Sethi wrote:
>  	/* window size is 2^(WSE+1) bytes */
> -	return __ffs(addrspace_size) - 1;
> +	return fls64(addrspace_size) - 2;

This looks bogus, why do you replace ffs (find-first-bit) by fls
(find-last-bit)?


	Joerg




More information about the Linuxppc-dev mailing list