From: Jim Zeus <zeusj@firstlinux.net>
To: all in MTD mailinglist <linux-mtd@lists.infradead.org>
Subject: (no subject)
Date: Mon, 29 Apr 2002 07:19:07 -0700 (PDT) [thread overview]
Message-ID: <20020429141907.000033ED3@sitemail.everyone.net> (raw)
Hi ,folks
I am reading MTD code now , and I meet some problem
in the /drivers/mtd/chips/cfi_probe.c
/* Check each previous chip to see if it's an alias */
for (i=0; i<cfi->numchips; i++) {
/* This chip should be in read mode if it's one
we've already touched. */
if (qry_present(map,chips[i].start,cfi)) {
/* Eep. This chip also had the QRY marker.
* Is it an alias for the new one? */
cfi_send_gen_cmd(0xF0, 0, chips[i].start, map, cfi, cfi->device_type, NULL);
/* If the QRY marker goes away, it's an alias */
if (!qry_present(map, chips[i].start, cfi)) {
printk(KERN_DEBUG "%s: Found an alias at 0x%x for the chip at 0x%lx\n",
map->name, base, chips[i].start);
return 0;
/*******I have no idea that the following query command for*******/
/**********I think it will never happen*******************/}
/* Yes, it's actually got QRY for data. Most
* unfortunate. Stick the new chip in read mode
* too and if it's the same, assume it's an alias. */
/* FIXME: Use other modes to do a proper check */
cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
if (qry_present(map, base, cfi)) {
printk(KERN_DEBUG "%s: Found an alias at 0x%x for the chip at 0x%lx\n",
map->name, base, chips[i].start);
return 0;
}
}
}
from the code I deduce that
1. if send the query command twice , the "QRY" will disappear.
2. if send the query command onec, the "QRY" will always be there even you read it many times.
Is my conclusion right?
I know its a stupid question to hardware engineer, but I am a software engineer:<
Any help will be appreciated.
_____________________________________________________________
Want a new web-based email account ? ---> http://www.firstlinux.net
_____________________________________________________________
Run a small business? Then you need professional email like you@yourbiz.com from Everyone.net http://www.everyone.net?tag
next reply other threads:[~2002-04-29 14:19 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-29 14:19 Jim Zeus [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-06-01 11:20 (no subject) Mnl
2009-05-18 15:18 Mnl
2009-05-18 12:20 Mnl
2006-03-10 13:57 Selmeci, Tamas
2005-10-20 16:05 Korolev, Alexey
2005-09-15 13:22 Konstantin Kletschke
2005-07-23 4:50 Mr.Derrick Tanner.
2005-07-18 12:06 murasfdg sjhfsd
2005-07-03 2:47 Amit Sharma
2005-07-03 12:04 ` Artem B. Bityuckiy
2005-06-21 14:48 David L
2004-11-16 13:48 Artem B. Bityuckiy
2004-11-16 13:55 ` David Woodhouse
2004-11-16 11:42 Artem B. Bityuckiy
2002-11-19 21:13 BBRAM Jörn Engel
2002-11-20 2:01 ` (no subject) Taeil Um
2002-11-20 7:20 ` David Woodhouse
2002-11-21 8:40 ` Taeil Um
2002-11-15 20:58 Wauviel
2002-07-15 10:25 Valls Pellicer,Joan
2002-07-02 17:00 Roy Lauer
2002-06-19 2:24 Áº²¨
2002-05-03 11:46 victor.martin
2002-04-19 3:23 swimming_fisher
2002-04-11 6:13 Jim Zeus
2002-03-27 8:01 Jim Zeus
2002-03-27 8:06 ` David Woodhouse
2002-03-19 7:59 Jim Zeus
2002-03-18 7:42 Jim Zeus
2002-03-18 8:38 ` David Woodhouse
2002-03-17 10:21 Jim Zeus
2002-03-17 10:32 ` David Woodhouse
2002-03-15 9:55 Jim Zeus
2002-03-15 10:15 ` David Woodhouse
2002-03-15 4:15 Jim Zeus
2002-03-15 9:27 ` David Woodhouse
2002-01-03 15:46 Allen Curtis
2001-12-28 23:48 Sheela Kashyap
2001-12-28 23:52 ` David Woodhouse
2002-01-02 23:57 ` Sheela Kashyap
2002-01-03 0:06 ` David Woodhouse
2002-01-03 0:27 ` Sheela Kashyap
2002-01-03 9:26 ` David Woodhouse
2002-01-03 18:57 ` Sheela Kashyap
2001-12-19 19:01 ilatypov
2001-09-14 20:11 Siders, Keith
2001-09-14 16:25 Siders, Keith
2001-09-14 16:32 ` David Woodhouse
2001-05-02 15:59 zud sdf
2001-05-02 15:29 zud sdf
2001-05-02 15:24 zud sdf
2001-05-02 15:32 ` David Woodhouse
2001-05-02 15:17 Zydla Tsui
2001-04-24 11:29 (No Subject) simon.munton
2001-04-24 14:46 ` David Woodhouse
2001-04-25 9:51 ` Masami Komiya
2001-04-25 10:26 ` David Woodhouse
2001-04-25 12:19 ` Masami Komiya
2001-04-25 12:26 ` David Woodhouse
2001-04-25 12:55 ` Masami Komiya
2001-04-25 13:30 ` David Woodhouse
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=20020429141907.000033ED3@sitemail.everyone.net \
--to=zeusj@firstlinux.net \
--cc=linux-mtd@lists.infradead.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