From: Greg KH <greg@kroah.com>
To: Marco Roeland <marco.roeland@xs4all.nl>
Cc: linux-kernel@vger.kernel.org, Alan Cox <alan@redhat.com>
Subject: Re: Linux 2.5.44-ac3
Date: Tue, 29 Oct 2002 14:12:34 -0800 [thread overview]
Message-ID: <20021029221234.GA29085@kroah.com> (raw)
In-Reply-To: <20021025125514.GA30278@localhost>
On Fri, Oct 25, 2002 at 02:55:14PM +0200, Marco Roeland wrote:
>
> > Linux 2.5.44-ac2
> > o Rip out lots of the left over pcibios_ stuff (Greg Kroah-Hartmann)
>
> Since -ac2 there's a pcibios_read_config_dword left in drivers/pcmcia/cist.c
> preventing (CardBus) PCMCIA to compile.
>
> The following makes it compile again, whether it _works_ I've absolutely no
> idea, lacking amongst others any kernel knowledge or even a cardbus card.
> Compiles for me (TM) ;-)
Here's a working patch (well, works for me (tm)) for this problem:
thanks,
greg k-h
diff -Nru a/drivers/pcmcia/cistpl.c b/drivers/pcmcia/cistpl.c
--- a/drivers/pcmcia/cistpl.c Wed Oct 30 13:59:29 2002
+++ b/drivers/pcmcia/cistpl.c Wed Oct 30 13:59:29 2002
@@ -429,7 +429,10 @@
#ifdef CONFIG_CARDBUS
if (s->state & SOCKET_CARDBUS) {
u_int ptr;
- pcibios_read_config_dword(s->cap.cb_dev->subordinate->number, 0, 0x28, &ptr);
+ struct pci_dev *dev = pci_find_slot (s->cap.cb_dev->subordinate->number, 0);
+ if (!dev)
+ return CS_BAD_HANDLE;
+ pci_read_config_dword(dev, 0x28, &ptr);
tuple->CISOffset = ptr & ~7;
SPACE(tuple->Flags) = (ptr & 7);
} else
next prev parent reply other threads:[~2002-10-29 22:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-25 10:19 Linux 2.5.44-ac3 Alan Cox
2002-10-25 12:55 ` Marco Roeland
2002-10-29 22:12 ` Greg KH [this message]
2002-10-25 14:38 ` patch: Linux 2.5.44-ac3, i386/config.in typo, "make xconfig" broken Alex Riesen
2002-10-25 14:39 ` Linux 2.5.44-ac3 Jurriaan
2002-10-25 15:34 ` Jason Williams
2002-10-28 15:15 ` Doug Ledford
2002-10-28 16:08 ` Alan Cox
2002-10-28 16:25 ` Alan Cox
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=20021029221234.GA29085@kroah.com \
--to=greg@kroah.com \
--cc=alan@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marco.roeland@xs4all.nl \
/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