mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ben Collins <bcollins@debian.org>
To: Subodh Shrivastava <subodh@btopenworld.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sbp2 module not initialising external hdd connected on firewire port.
Date: Sun, 29 Feb 2004 09:37:56 -0500	[thread overview]
Message-ID: <20040229143756.GB1078@phunnypharm.org> (raw)
In-Reply-To: <40409D0A.8040903@btopenworld.com>

On Sat, Feb 28, 2004 at 01:52:10PM +0000, Subodh Shrivastava wrote:
> Hi Ben,
> 
> I am trying to connect my external HDD on firewire port. Linux is not 
> recognising this disk. Same disk is recognised in windows, also its 
> recognised in linux when connected on USB port. Attached here is my 
> .config file, lspci output, dmesg output.

Can you try the latest code from our repo at linux1394.org? Or atleast
try this patch applied to 2.6.4-rc1.


--- ieee1394-2.6/drivers/ieee1394/csr1212.c	(revision 1120)
+++ ieee1394-2.6/drivers/ieee1394/csr1212.c	(working copy)
@@ -704,10 +704,11 @@
 			if (k->key.type == CSR1212_KV_TYPE_DIRECTORY) {
 				/* If the current entry is a directory, then move all
 				 * the entries to the destruction list. */
-				tail->next = k->value.directory.dentries_head;
-				if (k->value.directory.dentries_head)
+				if (k->value.directory.dentries_head) {
+					tail->next = k->value.directory.dentries_head;
 					k->value.directory.dentries_head->prev = tail;
-				tail = k->value.directory.dentries_tail;
+					tail = k->value.directory.dentries_tail;
+                                }
 			}
 			free_keyval(k);
 			k = a;
@@ -1347,6 +1348,12 @@
 	case CSR1212_KV_TYPE_DIRECTORY:
 		for (i = 0; i < kvi_len; i++) {
 			csr1212_quad_t ki = kvi->data[i];
+
+			/* Some devices put null entries in their unit
+			 * directories.  If we come across such and entry,
+			 * then skip it. */
+			if (ki == 0x0)
+				continue;
 			ret = csr1212_parse_dir_entry(kv, ki,
 						      (kv->offset +
 						       quads_to_bytes(i + 1)),

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/

  parent reply	other threads:[~2004-02-29 14:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-28 13:52 Subodh Shrivastava
2004-02-28 14:41 ` Ben Collins
2004-02-28 16:51   ` Subodh Shrivastava
2004-02-29 14:37 ` Ben Collins [this message]
2004-02-29 17:58   ` Subodh Shrivastava

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=20040229143756.GB1078@phunnypharm.org \
    --to=bcollins@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=subodh@btopenworld.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®