public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: DiskOnChip 2000/Millennium driver merge.
@ 2000-12-04 16:44 Miguel Freitas
  2000-12-04 15:53 ` David Woodhouse
  0 siblings, 1 reply; 9+ messages in thread
From: Miguel Freitas @ 2000-12-04 16:44 UTC (permalink / raw)
  To: mtd

Ollie Lho wrote:

> > I note you changed DoC_Command() so it no longer finishes with
> > DoC_WaitReady(). Is there a situation in which DoC_Command shouldn't
> > wait for FR_B after sending the command? Does it do any harm to do
> > so, or is the removal just an optimisation?
> >
> 
> The reason that I removed DoC_WaitReady() for DoC_Command() is you are
> using DoC_Command to find how many flash chip on a single DoC. If
> there is no more chip, the ready bit will never get high. And the
> driver hangs.
> 
> Ollie

   Hummm, this is a little off-topic, but you have just explained me 
why my PIC routines to access DOC2000 were hanging!!! I saw 
exactly this with a logic analiser, but when using the same DOC on a 
PC it worked, don't ask me why...(and it never left the WaitReady by 
timeout)


Miguel Freitas



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: DiskOnChip 2000/Millennium driver merge.
@ 2000-12-03  9:45 Vadim Khamlinsky
  0 siblings, 0 replies; 9+ messages in thread
From: Vadim Khamlinsky @ 2000-12-03  9:45 UTC (permalink / raw)
  To: 'David Woodhouse'; +Cc: mtd, ollie, linuxbios

>Of course it works if I turn off CONFIG_MTD_DOCPROBE_55AA

Diskonchip 2000  always has 55aa signature at the beginning of 
the DiskOnChip window . DiskOnChip Millennium does not .
I'm not going to get into the hardware differences between these two
products . From the software point of view it depends on the DiskOnChip
Millennium low-level format .
If it was formatted with the following command :
  dformat /win:d000 /s:docxxx.exb  , then you should find 55AA signature .
If it was formatted as follows :
   dformat /win:d000 /s:docxxx.exb 

or docxxx.exb was somehow removed from the DiskOnChip Millennium
you will not see 55AA .
In short, don't depend on the 55aa probe when you work with
DiskOnChip-Millennium .

Regards,
Vadim  
 
  


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 9+ messages in thread
* DiskOnChip 2000/Millennium driver merge.
@ 2000-12-01 14:40 David Woodhouse
  2000-12-01 17:45 ` David Woodhouse
  2000-12-02  1:40 ` Ollie Lho
  0 siblings, 2 replies; 9+ messages in thread
From: David Woodhouse @ 2000-12-01 14:40 UTC (permalink / raw)
  To: mtd; +Cc: ollie, linuxbios

I've now cleaned up some of the differences between the new combined 
doc200[01] driver and the doc2001-only driver, and enabled 
DOC_SINGLE_DRIVER in the docprobe code.

I haven't removed the conditional stuff for two reasons -
	1. Ollie wants to keep the separate doc2001 driver for easier
		development and testing
	2. The doc2000 driver doesn't actually _work_ for writing. It
		exhibits the same behaviour with both types of device -
		writes to NFTL just don't appear to _stay_ written.

If you need write support for the Millennium right now, just comment out
the definition of DOC_SINGLE_DRIVER in docprobe.c and continue to use 
the doc2001 module.

As the doc2001 driver is working fine, I'm fairly sure it's a hardware
driver problem, not an NFTL code problem. Writes to the main body of the
flash appear to work too, so I currently suspect that it's an OOB data write
problem. 

If anyone else with Millennium hardware could take a look at the 
differences between doc2000.c and doc2001.c, especially Ollie who actually 
knows what he's doing, that'd be very much appreciated.

--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-12-04 15:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-04 16:44 DiskOnChip 2000/Millennium driver merge Miguel Freitas
2000-12-04 15:53 ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2000-12-03  9:45 Vadim Khamlinsky
2000-12-01 14:40 David Woodhouse
2000-12-01 17:45 ` David Woodhouse
2000-12-01 17:50   ` David Woodhouse
2000-12-02  1:40 ` Ollie Lho
2000-12-02 11:10   ` David Woodhouse
2000-12-04  2:08     ` Ollie Lho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox