Messages in this thread Patch in this message | | | Subject | Re: USB and DMA on Alpha with 2.6.0-test7 | From | (Måns Rullgård) | Date | Fri, 10 Oct 2003 20:45:18 +0200 |
| |
Ivan Kokshaysky <ink@jurassic.park.msu.ru> writes:
> I'd suggest following (untested) patch.
There was a little typo in there. This seems to work.
--- t7/drivers/usb/net/usbnet.c Wed Oct 8 23:24:07 2003 +++ linux/drivers/usb/net/usbnet.c Fri Oct 10 22:10:24 2003 @@ -2970,7 +2970,7 @@ usbnet_probe (struct usb_interface *udev memcpy (net->dev_addr, node_id, sizeof node_id); // possible with some EHCI controllers - if (dma_supported (&udev->dev, 0xffffffffffffffffULL)) + if (*udev->dev.dma_mask == 0xffffffffffffffffULL)) net->features |= NETIF_F_HIGHDMA; net->change_mtu = usbnet_change_mtu; --- t7/drivers/usb/net/kaweth.c Wed Oct 8 23:24:26 2003 +++ linux/drivers/usb/net/kaweth.c Fri Oct 10 22:11:21 2003 @@ -1120,7 +1120,7 @@ static int kaweth_probe( usb_set_intfdata(intf, kaweth); - if (dma_supported (&intf->dev, 0xffffffffffffffffULL)) + if (*intf->dev.dma_mask == 0xffffffffffffffffULL)) kaweth->net->features |= NETIF_F_HIGHDMA; SET_NETDEV_DEV(netdev, &intf->dev); -- Måns Rullgård mru@users.sf.net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |