From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: linux1394-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] ieee1394: add quirk fix for Freecom HDD
Date: Sat, 13 Dec 2008 23:09:12 +0100 (CET) [thread overview]
Message-ID: <tkrat.aa600853dd4a55d9@s5r6.in-berlin.de> (raw)
In-Reply-To: <49441769.1060209@s5r6.in-berlin.de>
Date: Sat, 13 Dec 2008 01:43:59 +0100 (CET)
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
Subject: ieee1394: add quirk fix for Freecom HDD
According to http://bugzilla.kernel.org/show_bug.cgi?id=12206, Freecom
FireWire Hard Drive 1TB reports max_rom=2 but returns garbage if block
read requests are used to read the config ROM. Force max_rom=0 to limit
them to quadlet read requests.
Reported-by: Christian Mueller <cm1@mumac.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---
Candidate patch for 2.6.28 and 2.6.27.y.
Christian, please test and confirm that I got this right.
drivers/ieee1394/nodemgr.c | 6 ++++++
1 file changed, 6 insertions(+)
Index: linux/drivers/ieee1394/nodemgr.c
===================================================================
--- linux.orig/drivers/ieee1394/nodemgr.c
+++ linux/drivers/ieee1394/nodemgr.c
@@ -115,8 +115,14 @@ static int nodemgr_bus_read(struct csr12
return error;
}
+#define OUI_FREECOM_TECHNOLOGIES_GMBH 0x0001db
+
static int nodemgr_get_max_rom(quadlet_t *bus_info_data, void *__ci)
{
+ /* Freecom FireWire Hard Drive firmware bug */
+ if (be32_to_cpu(bus_info_data[3]) >> 8 == OUI_FREECOM_TECHNOLOGIES_GMBH)
+ return 0;
+
return (be32_to_cpu(bus_info_data[2]) >> 8) & 0x3;
}
--
Stefan Richter
-=====-==--- ==-- -==-=
http://arcgraph.de/sr/
next parent reply other threads:[~2008-12-13 22:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20081212220902.10115108040@picon.linux-foundation.org>
[not found] ` <4942E4E0.2030109@s5r6.in-berlin.de>
[not found] ` <tkrat.cf2109296e2ea177@s5r6.in-berlin.de>
[not found] ` <49441769.1060209@s5r6.in-berlin.de>
2008-12-13 22:09 ` Stefan Richter [this message]
2008-12-13 22:11 ` Stefan Richter
2008-12-13 22:12 ` [PATCH 2/2] ieee1394: ignore nonzero Bus_Info_Block.max_rom, fetch config ROM in quadlets Stefan Richter
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=tkrat.aa600853dd4a55d9@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
/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®