linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zwane Mwaikambo <zwane@mwaikambo.name>
To: Greg Kroah-Hartmann <greg@kroah.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH][2.5] set pci dma mask for ohci-hcd
Date: Sun, 1 Sep 2002 16:11:26 +0200 (SAST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0209011610390.26729-100000@linux-box.realnet.co.sz> (raw)

Index: linux-2.5.33/drivers/usb/host/ohci-pci.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.33/drivers/usb/host/ohci-pci.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ohci-pci.c
--- linux-2.5.33/drivers/usb/host/ohci-pci.c	31 Aug 2002 22:30:41 -0000	1.1.1.1
+++ linux-2.5.33/drivers/usb/host/ohci-pci.c	1 Sep 2002 12:41:23 -0000
@@ -36,6 +36,11 @@
 	int		ret;
 
 	if (hcd->pdev) {
+		if (pci_set_dma_mask(hcd->pdev, 0xFFFFFFFF)) {
+			err("couldn't set PCI dma mask");
+			return -EIO;
+		}
+
 		ohci->hcca = pci_alloc_consistent (hcd->pdev,
 				sizeof *ohci->hcca, &ohci->hcca_dma);
 		if (!ohci->hcca)

-- 
function.linuxpower.ca


             reply	other threads:[~2002-09-01 13:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-01 14:11 Zwane Mwaikambo [this message]
2002-09-01 23:21 [PATCH][2.5] set pci dma mask for ohci-hcd David Brownell
2002-09-02  0:14 ` David S. Miller

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=Pine.LNX.4.44.0209011610390.26729-100000@linux-box.realnet.co.sz \
    --to=zwane@mwaikambo.name \
    --cc=greg@kroah.com \
    --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;
as well as URLs for NNTP newsgroup(s).