Re: [PATCH 3/4] Fix remaining big endian issue of hfcmulti

From: Linus Torvalds
Date: Tue Aug 05 2008 - 17:37:50 EST




On Tue, 5 Aug 2008, Sean MacLennan wrote:
>
> Why not select PIO or MMIO at config time?

Umm. Then you can't run a generic driver that can do either. That's the
worst choice of all.

As to where in the stack to do the choice - I suspect it's easier if it's
done at the lowest level, but that can cause performance issues (ie
testing that flag over and over again). The mmio code avoids some of the
performance issues exactly by doing the "repeat" versions - so for some
cases you can do the check once at the top, and then just repeat.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/