Hi there,

On Fri, 26 Dec 2003, Dimitri Torfs wrote:

>   "Chip" identification of the pegasus driver does not work correctly on
>   big endian machines, resulting in incorrect packet lengths for
>   received ethernet packets. These patches (against 2.4.24-pre2 and
>   2.6.0) should fix it.

Have you tried these patches by the way?

> --- linux-2.4.24-pre2/drivers/usb/pegasus.c.orig      2003-12-26 16:29:06.000000000 
> +0100
> +++ linux-2.4.24-pre2/drivers/usb/pegasus.c   2003-12-26 16:29:20.000000000 +0100
> @@ -532,7 +532,7 @@
>       if (!count)
>               goto goon;
>
> -     rx_status = le32_to_cpu(*(int *) (pegasus->rx_buff + count - 4));
> +     rx_status = le32_to_cpup((u32*)(pegasus->rx_buff + count - 4));

I don't see how this makes any difference.  Either way the result should
be the same...

> -     u16 data = 0xa5;
> +     u8 data = 0xa5;

All right, it seems that register 0x83 is 8bit so "data" type should be u8
instead of u16.  I'll submit the changes to Greg in a few days.


happy holidays,
        Petko


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to