mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: Olaf Hering <olh@suse.de>
Cc: Andreas Koch <koch@esa.informatik.tu-darmstadt.de>,
	linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
	Greg KH <greg@kroah.com>, Marcus Wegner <wegner3000@hotmail.com>
Subject: Re: 2.6.13: Crash in Yenta initialization
Date: Tue, 13 Sep 2005 15:45:29 +0400	[thread overview]
Message-ID: <20050913154529.C15709@jurassic.park.msu.ru> (raw)
In-Reply-To: <20050913063053.GA24158@suse.de>; from olh@suse.de on Tue, Sep 13, 2005 at 08:30:53AM +0200

On Tue, Sep 13, 2005 at 08:30:53AM +0200, Olaf Hering wrote:
> The reporter has updated the bug.
> 
> https://bugzilla.novell.com/attachment.cgi?id=49717
> https://bugzilla.novell.com/attachment.cgi?id=49715
> https://bugzilla.novell.com/attachment.cgi?id=49716

Thanks, that helped.

The reason was that Acer BIOS left only _two_ bus numbers available
for _three_ cardbus controllers, so pci_scan_bridge() assigns both
numbers to the first controller and leaves two other ones uninitialized.

Please try the patch here, but note that you'll apparently have only
one cardbus slot working. If you want more, use "pci=assign-busses"
boot option.

Ivan.

--- 2.6.14-rc1/drivers/pcmcia/yenta_socket.c	Tue Sep 13 14:16:34 2005
+++ linux/drivers/pcmcia/yenta_socket.c	Tue Sep 13 14:40:40 2005
@@ -1045,7 +1045,18 @@ static int __devinit yenta_probe (struct
 {
 	struct yenta_socket *socket;
 	int ret;
-	
+
+	/*
+	 * If we failed to assign proper bus numbers for this cardbus
+	 * controller during PCI probe, its subordinate pci_bus is NULL.
+	 * Bail out if so.
+	 */
+	if (!dev->subordinate) {
+		printk(KERN_ERROR "Yenta: no bus associated with %s!\n",
+			pci_name(dev));
+		return -ENODEV;
+	}
+
 	socket = kmalloc(sizeof(struct yenta_socket), GFP_KERNEL);
 	if (!socket)
 		return -ENOMEM;

  reply	other threads:[~2005-09-13 11:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-02 23:38 Andreas Koch
2005-09-03  0:37 ` Andrew Morton
2005-09-03  0:45 ` Andreas Koch
2005-09-03 18:34   ` Ivan Kokshaysky
2005-09-12 17:42     ` Olaf Hering
2005-09-12 20:07       ` Ivan Kokshaysky
2005-09-13  6:30         ` Olaf Hering
2005-09-13 11:45           ` Ivan Kokshaysky [this message]
2005-09-14  4:10             ` Olaf Hering
2005-09-20 10:02             ` Continuing PCI and Yenta troubles in 2.6.13.1 and 2.6.14-rc1 Andreas Koch
2005-09-20 12:59               ` Ivan Kokshaysky
     [not found]                 ` <200509202006.19193.koch@esa.informatik.tu-darmstadt.de>
2005-09-21 15:55                   ` Ivan Kokshaysky
2005-09-13 12:36     ` 2.6.13: Crash in Yenta initialization Andreas Koch
2005-09-13 12:43       ` Andreas Koch
2005-09-12 20:13 Marcus Wegner
2005-09-12 20:17 Marcus Wegner

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=20050913154529.C15709@jurassic.park.msu.ru \
    --to=ink@jurassic.park.msu.ru \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=koch@esa.informatik.tu-darmstadt.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olh@suse.de \
    --cc=wegner3000@hotmail.com \
    /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

all inboxes | Powered by JetHome®