[PATCH] eagle bulk mode bugfix

Stanislaw Gruszka stf_xl at wp.pl
Fri Nov 18 10:02:54 EST 2005


Hi Duncan
On Friday 18 of November 2005 15:11, Duncan Sands wrote:
> Applied with some small changes. 
Thanks for appling.

> I dropped this bit because 
> I couldn't see the point of it:
> @@ -965,7 +1004,17 @@ static int usbatm_heavy_init(struct usba
> 
>  static void usbatm_tasklet_schedule(unsigned long data)
>  {
> -       tasklet_schedule((struct tasklet_struct *) data);
> +       struct usbatm_channel *channel = (struct usbatm_channel *) data;
> +
> +       if (usb_pipein(channel->endpoint)) {
> +               /* when some error occures on urb
> +                * don't use old incoming atm cells order */
> +               tasklet_disable(&channel->tasklet);
> +               channel->usbatm->cell_len = 0;
> +               tasklet_enable(&channel->tasklet);
> +       }
> +
> +       tasklet_schedule(&channel->tasklet);
>  }
> 
>  static inline void usbatm_init_channel(struct usbatm_channel *channel)

This is pointless when buf_usage is nulled in usbatm_rx_process. 

__
Regards
Staszek Gruszka



More information about the Usbatm mailing list