Re: [Linux-fbdev-devel] [PATCH 1/2] fb: add support for foreign endianness

From: Clemens Koller
Date: Wed Feb 20 2008 - 10:44:44 EST


Paul Mackerras schrieb:
Andrew Morton writes:

Bizarrely, the original author of the patch (Anton) has fallen off the cc. Could whoever did that please thwap himself?

Anyway, my head is now officially spinning. Did anyone actually have a
reason why we shouldn't proceed with Anton's patch?

I was wondering if it would be sufficient to provide alternative
versions of fb_readl, fb_writel etc. that do byte-swapping. That
would mean that all framebuffers would have to have the same
endianness, but that would suffice for embedded systems such as
Anton's and would end up a lot simpler IMHO.

Yes. At least the affected PowerPC platforms can do byte-swapping on
the fly, so this should be sufficient and without performance
penalty, AFAICS.

Regards,

Clemens
--
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/