public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: mru@users.sourceforge.net (Måns Rullgård)
To: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: David Brownell <david-b@pacbell.net>, linux-kernel@vger.kernel.org
Subject: Re: USB and DMA on Alpha with 2.6.0-test7
Date: Fri, 10 Oct 2003 20:45:18 +0200	[thread overview]
Message-ID: <yw1x4qyhorsx.fsf@users.sourceforge.net> (raw)
In-Reply-To: <20031010221919.A650@den.park.msu.ru> (Ivan Kokshaysky's message of "Fri, 10 Oct 2003 22:19:19 +0400")

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

  reply	other threads:[~2003-10-10 18:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-10 17:18 USB and DMA on Alpha with 2.6.0-test7 David Brownell
2003-10-10 18:19 ` Ivan Kokshaysky
2003-10-10 18:45   ` Måns Rullgård [this message]
2003-10-10 18:59     ` Ivan Kokshaysky
2003-10-10 20:15       ` David Brownell
2003-10-10 19:43 ` David Brownell
2003-10-11 13:27   ` Ivan Kokshaysky
2003-10-11 16:26     ` David Brownell
2003-10-11 23:03       ` David Brownell
  -- strict thread matches above, loose matches on Subject: below --
2003-10-10  9:22 Måns Rullgård
2003-10-10 10:47 ` Ivan Kokshaysky
2003-10-10 11:38   ` Måns Rullgård
2003-10-10 13:31   ` Jamie Lokier
2003-10-10 13:41     ` Ivan Kokshaysky
2003-10-10 16:41       ` Måns Rullgård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yw1x4qyhorsx.fsf@users.sourceforge.net \
    --to=mru@users.sourceforge.net \
    --cc=david-b@pacbell.net \
    --cc=ink@jurassic.park.msu.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox